> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> Create a new channel.

# Create a new channel



## OpenAPI

````yaml post /channels
openapi: 3.0.0
info:
  title: Campaigns Service API
  description: Campaigns Service REST API
  version: '1.0'
  contact: {}
servers:
  - url: https://{appId}.api-{region}.cometchat.io/v3/campaigns
    variables:
      appId:
        default: appId
        description: (Required) App ID
      region:
        enum:
          - us
          - eu
          - in
        default: us
        description: Select Region
security:
  - apikey: []
tags:
  - name: Notification Feed
    description: Operations on the per-user in-app notification feed.
  - name: Channels
    description: Manage channel instances and per-type availability.
  - name: Templates
    description: Manage templates and their versions.
  - name: Template Categories
    description: Manage template categories for feed filtering.
  - name: Campaigns
    description: Create, schedule, and manage notification campaigns.
  - name: Notifications
    description: Send notifications directly via API.
  - name: Push Notifications
    description: Manage push notification delivery and engagement.
  - name: Analytics
    description: Delivery and engagement analytics.
paths:
  /channels:
    post:
      tags:
        - Channels
      summary: Create a new channel
      operationId: ChannelsController_create
      parameters:
        - name: appid
          in: header
          description: Tenant application ID
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChannelDto'
      responses:
        '201':
          description: Channel created
        '400':
          description: Called with onbehalfof
        '403':
          description: Channel type restricted
        '409':
          description: Duplicate channelId or limit reached
components:
  schemas:
    CreateChannelDto:
      type: object
      properties:
        name:
          type: string
          description: Channel display name
          example: My Push Channel
        type:
          type: string
          description: Channel type
          enum:
            - in_app
            - push
            - sms
            - email
            - whatsapp
            - custom
          example: push
        channelId:
          type: string
          description: Channel slug (auto-generated from name if omitted)
          example: cc-notification-channel-my-push
        enabled:
          type: boolean
          description: Whether the channel is enabled
          default: false
        metadata:
          type: object
          description: Channel-specific metadata
          example:
            apiKey: xxx
            senderId: yyy
      required:
        - name
        - type
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: apikey
      description: Your CometChat REST API Key.

````