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

# Create

> Create an email, signed webhook, or Slack channel. Endpoint credentials are encrypted; a generated signing secret is shown only once.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/alert-channels
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/alert-channels:
    post:
      tags:
        - alertChannels
      summary: Create
      description: >-
        Create an email, signed webhook, or Slack channel. Endpoint credentials
        are encrypted; a generated signing secret is shown only once.
      operationId: alertChannels.create
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[a-z][a-z0-9-]{1,61}$
                kind:
                  type: string
                  enum:
                    - email
                    - signed_webhook
                    - slack
                email:
                  type: string
                  format: email
                webhookUrl:
                  type: string
                  format: uri
                  description: >-
                    HTTPS endpoint or incoming Slack webhook. Stored encrypted
                    and never returned.
              required:
                - name
                - kind
              additionalProperties: false
      responses:
        '201':
          description: >-
            Alert channel created. A signed webhook secret is shown exactly
            once.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                  kind:
                    type: string
                    enum:
                      - email
                      - signed_webhook
                      - slack
                  destinationMasked:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Masked email address or endpoint. Full destinations are
                      never returned.
                  secretHint:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Non-secret suffix that identifies which stored credential
                      is active.
                  verified:
                    type: boolean
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  signingSecret:
                    type:
                      - string
                      - 'null'
                    description: >-
                      For a signed webhook, the delivery verification secret
                      shown exactly once; null for other channel kinds.
                required:
                  - id
                  - name
                  - kind
                  - destinationMasked
                  - secretHint
                  - verified
                  - createdAt
                  - updatedAt
                  - signingSecret
                additionalProperties: false
        '409':
          description: An alert channel with that name already exists.
        '422':
          description: Channel kind and destination do not match or are invalid.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````