---
title: "This endpoint is used for creating the channels."
method: POST
path: "/api/v2/notifications/channels"
tags: ["Notifications Channels"]
---

# This endpoint is used for creating the channels.

`POST /api/v2/notifications/channels`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/notifications/channels`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/notifications/channels/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows you to create a notification channel.

## Request body

- JumpcloudNotificationsCreateChannelRequest: CreateChannelRequest represents the request to create a channel.
  - `channel` JumpcloudNotificationsChannel: Channel represents the notification channel.
    - `config` JumpcloudNotificationsChannelTypeConfig: ChannelTypeConfig represents the configuration for the channel type.
      - `email` JumpcloudNotificationsEmailRecipientConfig: EmailRecipientConfig represents the email recipient.
        - `role` JumpcloudNotificationsEmailRecipientConfigRole[]
          - `objectId` string, byte: represents the role identifier.
          - `roleObjectId` string, byte: represents the role object identifier.
        - `user` JumpcloudNotificationsEmailRecipientConfigUser[]
          - `address` string: represents the recipient email address.
          - `name` string: represents the recipient name.
          - `objectId` string, byte: represents the address identifier.
      - `slack` JumpcloudNotificationsSlackConfig: SlackConfig represents the slack notification config.
        - `slackChannel` JumpcloudNotificationsSlackChannelConfig[]: represents the slack channel ID where notifications will be sent.
          - `objectId` string, byte
          - `slackChannelId` string: represents the slack channel identifier.
          - `slackTeamId` string: represents the slack team identifier.
          - `slackWorkspaceName` string: represents the slack workspace name.
      - `webhook` JumpcloudNotificationsWebhookConfig: WebhookConfig represents the webhook configuration.
        - `authPassword` string
        - `authToken` string
        - `authType` 'WEBHOOK_AUTH_TYPE_UNSPECIFIED' | 'WEBHOOK_AUTH_TYPE_BASIC' | 'WEBHOOK_AUTH_TYPE_BEARER': WebhookAuthType represents the authentication type for the webhook. - WEBHOOK_AUTH_TYPE_UNSPECIFIED: WEBHOOK_AUTH_TYPE_UNSPECIFIED represents an invalid authentication type. - WEBHOOK_AUTH_TYPE_BASIC: WEBHOOK_AUTH_TYPE_BASIC represents basic authentication. - WEBHOOK_AUTH_TYPE_BEARER: WEBHOOK_AUTH_TYPE_BEARER represents bearer token authentication.
        - `authUsername` string
        - `customHeaders` JumpcloudNotificationsCustomHeaders[]
          - `key` string
          - `masked` boolean
          - `objectId` string, byte
          - `value` string
        - `maskedUrlPortion` JumpcloudNotificationsMaskedURLPortion[]
          - `key` string
          - `objectId` string, byte
          - `value` string
        - `objectId` string, byte: represents the webhook identifier.
        - `sslVerification` boolean
        - `url` string: represents the webhook url.
        - `urlMasked` boolean
    - `createdAt` string, date-time
    - `createdBy` string, byte
    - `description` string: represents the description of the channel.
    - `enabled` boolean: represents the status of the channel.
    - `name` string: represents the name of the channel.
    - `objectId` string, byte: Channel represents a medium through which notifications are sent, such as email notifications.
    - `organizationObjectId` string, byte
    - `type` 'CHANNEL_TYPE_UNSPECIFIED' | 'CHANNEL_TYPE_EMAIL' | 'CHANNEL_TYPE_WEBHOOK' | 'CHANNEL_TYPE_SLACK': ChannelType represents the type of the channel. - CHANNEL_TYPE_UNSPECIFIED: CHANNEL_TYPE_UNSPECIFIED represents an invalid channel type. - CHANNEL_TYPE_EMAIL: CHANNEL_TYPE_EMAIL represents the email channel type. - CHANNEL_TYPE_WEBHOOK: CHANNEL_TYPE_WEBHOOK represents the webhook channel type. - CHANNEL_TYPE_SLACK: CHANNEL_TYPE_SLACK represents the slack channel type.
    - `updatedAt` string, date-time
    - `updatedBy` string, byte

## Response `200`

A successful response.

- JumpcloudNotificationsCreateChannelResponse: CreateChannelResponse represents the response for creating a channel.
  - `channel` JumpcloudNotificationsChannel: Channel represents the notification channel.
    - `config` JumpcloudNotificationsChannelTypeConfig: ChannelTypeConfig represents the configuration for the channel type.
      - `email` JumpcloudNotificationsEmailRecipientConfig: EmailRecipientConfig represents the email recipient.
        - `role` JumpcloudNotificationsEmailRecipientConfigRole[]
          - `objectId` string, byte: represents the role identifier.
          - `roleObjectId` string, byte: represents the role object identifier.
        - `user` JumpcloudNotificationsEmailRecipientConfigUser[]
          - `address` string: represents the recipient email address.
          - `name` string: represents the recipient name.
          - `objectId` string, byte: represents the address identifier.
      - `slack` JumpcloudNotificationsSlackConfig: SlackConfig represents the slack notification config.
        - `slackChannel` JumpcloudNotificationsSlackChannelConfig[]: represents the slack channel ID where notifications will be sent.
          - `objectId` string, byte
          - `slackChannelId` string: represents the slack channel identifier.
          - `slackTeamId` string: represents the slack team identifier.
          - `slackWorkspaceName` string: represents the slack workspace name.
      - `webhook` JumpcloudNotificationsWebhookConfig: WebhookConfig represents the webhook configuration.
        - `authPassword` string
        - `authToken` string
        - `authType` 'WEBHOOK_AUTH_TYPE_UNSPECIFIED' | 'WEBHOOK_AUTH_TYPE_BASIC' | 'WEBHOOK_AUTH_TYPE_BEARER': WebhookAuthType represents the authentication type for the webhook. - WEBHOOK_AUTH_TYPE_UNSPECIFIED: WEBHOOK_AUTH_TYPE_UNSPECIFIED represents an invalid authentication type. - WEBHOOK_AUTH_TYPE_BASIC: WEBHOOK_AUTH_TYPE_BASIC represents basic authentication. - WEBHOOK_AUTH_TYPE_BEARER: WEBHOOK_AUTH_TYPE_BEARER represents bearer token authentication.
        - `authUsername` string
        - `customHeaders` JumpcloudNotificationsCustomHeaders[]
          - `key` string
          - `masked` boolean
          - `objectId` string, byte
          - `value` string
        - `maskedUrlPortion` JumpcloudNotificationsMaskedURLPortion[]
          - `key` string
          - `objectId` string, byte
          - `value` string
        - `objectId` string, byte: represents the webhook identifier.
        - `sslVerification` boolean
        - `url` string: represents the webhook url.
        - `urlMasked` boolean
    - `createdAt` string, date-time
    - `createdBy` string, byte
    - `description` string: represents the description of the channel.
    - `enabled` boolean: represents the status of the channel.
    - `name` string: represents the name of the channel.
    - `objectId` string, byte: Channel represents a medium through which notifications are sent, such as email notifications.
    - `organizationObjectId` string, byte
    - `type` 'CHANNEL_TYPE_UNSPECIFIED' | 'CHANNEL_TYPE_EMAIL' | 'CHANNEL_TYPE_WEBHOOK' | 'CHANNEL_TYPE_SLACK': ChannelType represents the type of the channel. - CHANNEL_TYPE_UNSPECIFIED: CHANNEL_TYPE_UNSPECIFIED represents an invalid channel type. - CHANNEL_TYPE_EMAIL: CHANNEL_TYPE_EMAIL represents the email channel type. - CHANNEL_TYPE_WEBHOOK: CHANNEL_TYPE_WEBHOOK represents the webhook channel type. - CHANNEL_TYPE_SLACK: CHANNEL_TYPE_SLACK represents the slack channel type.
    - `updatedAt` string, date-time
    - `updatedBy` string, byte

## Other responses

- `201`: Created

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
