---
title: "Create a notification channel"
method: POST
path: "/v1/notification-channels"
tags: ["Notification Channels"]
---

# Create a notification channel

`POST /v1/notification-channels`

Create a new notification channel with the specified driver and configuration.

## Request body

- object
  - `name` string, required — Unique channel name
  - `description` string — Channel description
  - `driverName` string, required — Notification driver name
  - `configuration` string — Driver-specific configuration (XML or NXSL script)

## Response `201`

Notification channel created successfully

- NotificationChannel
  - `name` string — Channel name
  - `description` string — Channel description
  - `driverName` string — Notification driver name
  - `configuration` string — Driver-specific configuration
  - `driverInitialized` boolean — Whether the driver was initialized successfully
  - `needSubject` boolean — Whether the driver requires a subject field
  - `needRecipient` boolean — Whether the driver requires a recipient field
  - `errorMessage` string — Last error message
  - `sendStatus` integer — Last send status code
  - `healthCheckStatus` boolean — Health check status
  - `lastMessageTime` string — Timestamp of last sent message
  - `messageCount` integer — Total messages sent
  - `failureCount` integer — Total send failures
  - `digestedCount` integer — Total messages absorbed into digest
  - `queueSize` integer — Current message queue size
  - `providedByChatBot` boolean — Whether the channel is provided by a chat bot (such channels cannot be modified, renamed, or deleted)

## Other responses

- `400` — Invalid or missing required fields
- `403` — Access denied
- `409` — Channel with this name already exists

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/versions/14d93e5115dd/schema)
