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

# Create a notification channel



## OpenAPI

````yaml /openapi.json post /notification-channels
openapi: 3.1.0
info:
  title: Hebeat API
  version: '2026-11-21'
  description: >-
    Workspace-scoped REST API authenticated with API keys (`Authorization:
    Bearer hb_…`). Each operation requires the scope shown in its security
    requirement; a group's write scope includes its read scope.
servers:
  - url: https://api.hebeat.com
security: []
paths:
  /notification-channels:
    post:
      tags:
        - Notification channels
      summary: Create a notification channel
      operationId: postNotificationChannels
      parameters:
        - name: Hebeat-Version
          in: header
          required: false
          description: >-
            API version (`YYYY-MM-DD`). Defaults to the version pinned on the
            key at creation; every response echoes the version that served it.
          schema:
            type: string
            enum:
              - '2026-11-21'
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: email
                    name:
                      type: string
                      minLength: 1
                      maxLength: 200
                    enabled:
                      type: boolean
                    events:
                      type: object
                      properties:
                        alert:
                          type: boolean
                        recovery:
                          type: boolean
                        degraded:
                          type: boolean
                      required:
                        - alert
                        - recovery
                        - degraded
                      additionalProperties: false
                    config:
                      type: object
                      properties:
                        address:
                          type: string
                          maxLength: 320
                      required:
                        - address
                      additionalProperties: false
                  required:
                    - type
                    - name
                    - enabled
                    - events
                    - config
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: discord
                    name:
                      type: string
                      minLength: 1
                      maxLength: 200
                    enabled:
                      type: boolean
                    events:
                      type: object
                      properties:
                        alert:
                          type: boolean
                        recovery:
                          type: boolean
                        degraded:
                          type: boolean
                      required:
                        - alert
                        - recovery
                        - degraded
                      additionalProperties: false
                    config:
                      type: object
                      properties:
                        discord_guild_id:
                          type: string
                          format: uuid
                        channel_id:
                          type: string
                          pattern: ^[0-9]{17,20}$
                      required:
                        - discord_guild_id
                        - channel_id
                      additionalProperties: false
                  required:
                    - type
                    - name
                    - enabled
                    - events
                    - config
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: webhook
                    name:
                      type: string
                      minLength: 1
                      maxLength: 200
                    enabled:
                      type: boolean
                    events:
                      type: object
                      properties:
                        alert:
                          type: boolean
                        recovery:
                          type: boolean
                        degraded:
                          type: boolean
                      required:
                        - alert
                        - recovery
                        - degraded
                      additionalProperties: false
                    config:
                      type: object
                      properties:
                        url:
                          type: string
                          minLength: 1
                          maxLength: 2048
                        headers:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                pattern: ^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$
                                minLength: 1
                                maxLength: 64
                              value:
                                type: string
                                pattern: ^[\x20-\x7e]*$
                                maxLength: 1024
                            required:
                              - name
                            additionalProperties: false
                          maxItems: 5
                          default: []
                      required:
                        - url
                      additionalProperties: false
                  required:
                    - type
                    - name
                    - enabled
                    - events
                    - config
                  additionalProperties: false
      responses:
        '201':
          description: Success.
          headers:
            X-RateLimit-Limit:
              description: Requests this key may make per minute (its plan's budget).
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Remaining:
              description: Requests left for this key in the current minute.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                type: object
                properties:
                  channel:
                    oneOf:
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          enabled:
                            type: boolean
                          events:
                            type: object
                            properties:
                              alert:
                                type: boolean
                              recovery:
                                type: boolean
                              degraded:
                                type: boolean
                            required:
                              - alert
                              - recovery
                              - degraded
                            additionalProperties: false
                          broken:
                            type:
                              - object
                              - 'null'
                            properties:
                              reason:
                                type: string
                              since:
                                type: string
                                format: date-time
                            required:
                              - reason
                              - since
                            additionalProperties: false
                          monitor_count:
                            type: integer
                            minimum: 0
                          created_at:
                            type: string
                            format: date-time
                          updated_at:
                            type: string
                            format: date-time
                          type:
                            type: string
                            const: email
                          config:
                            type: object
                            properties:
                              address:
                                type: string
                            required:
                              - address
                            additionalProperties: false
                          address_status:
                            type: string
                            enum:
                              - member
                              - confirmed
                              - pending_confirmation
                              - unsubscribed
                        required:
                          - id
                          - name
                          - enabled
                          - events
                          - broken
                          - monitor_count
                          - created_at
                          - updated_at
                          - type
                          - config
                          - address_status
                        additionalProperties: false
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          enabled:
                            type: boolean
                          events:
                            type: object
                            properties:
                              alert:
                                type: boolean
                              recovery:
                                type: boolean
                              degraded:
                                type: boolean
                            required:
                              - alert
                              - recovery
                              - degraded
                            additionalProperties: false
                          broken:
                            type:
                              - object
                              - 'null'
                            properties:
                              reason:
                                type: string
                              since:
                                type: string
                                format: date-time
                            required:
                              - reason
                              - since
                            additionalProperties: false
                          monitor_count:
                            type: integer
                            minimum: 0
                          created_at:
                            type: string
                            format: date-time
                          updated_at:
                            type: string
                            format: date-time
                          type:
                            type: string
                            const: discord
                          config:
                            type: object
                            properties:
                              discord_guild_id:
                                type: string
                                format: uuid
                              guild_name:
                                type: string
                              channel_id:
                                type: string
                              channel_name:
                                type: string
                            required:
                              - discord_guild_id
                              - guild_name
                              - channel_id
                              - channel_name
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - enabled
                          - events
                          - broken
                          - monitor_count
                          - created_at
                          - updated_at
                          - type
                          - config
                        additionalProperties: false
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          enabled:
                            type: boolean
                          events:
                            type: object
                            properties:
                              alert:
                                type: boolean
                              recovery:
                                type: boolean
                              degraded:
                                type: boolean
                            required:
                              - alert
                              - recovery
                              - degraded
                            additionalProperties: false
                          broken:
                            type:
                              - object
                              - 'null'
                            properties:
                              reason:
                                type: string
                              since:
                                type: string
                                format: date-time
                            required:
                              - reason
                              - since
                            additionalProperties: false
                          monitor_count:
                            type: integer
                            minimum: 0
                          created_at:
                            type: string
                            format: date-time
                          updated_at:
                            type: string
                            format: date-time
                          type:
                            type: string
                            const: webhook
                          config:
                            type: object
                            properties:
                              url:
                                type: string
                              headers:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                  required:
                                    - name
                                  additionalProperties: false
                            required:
                              - url
                              - headers
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - enabled
                          - events
                          - broken
                          - monitor_count
                          - created_at
                          - updated_at
                          - type
                          - config
                        additionalProperties: false
                  signing_secret:
                    type: string
                required:
                  - channel
                additionalProperties: false
        '400':
          description: >-
            Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`,
            `invalid_version`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '401':
          description: Missing, unknown, revoked or expired API key (`unauthenticated`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '403':
          description: >-
            The key lacks the operation's scope (`insufficient_scope`) or a plan
            limit applies.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '404':
          description: Not found in the key's workspace (`not_found`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '422':
          description: >-
            The input does not match the contract (`invalid_input`, with
            `issues`: each has `path`, a stable validation `code`, optional
            `params` and the English `message`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '429':
          description: >-
            The key's per-minute budget or an abuse budget is spent
            (`rate_limited`, with `Retry-After`).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Limit:
              description: Requests this key may make per minute (its plan's budget).
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Remaining:
              description: Requests left for this key in the current minute.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
      security:
        - api_key:
            - notifications:write
components:
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      description: A workspace API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.