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

# Connect a chat channel

> Connects a Slack or Discord channel through an incoming-webhook URL (Slack: https://api.slack.com/messaging/webhooks; Discord: Channel Settings > Integrations > Webhooks > New Webhook > Copy Webhook URL). A short confirmation message is posted to the channel first; if the webhook does not accept it, nothing is saved (400). The URL is stored encrypted and never returned.



## OpenAPI

````yaml /openapi.json post /v1/quick/chat-channels
openapi: 3.1.0
info:
  title: LumisReach v1 API
  version: 1.0.0
  description: >-
    Programmatic access to the LumisReach voice platform — calls, numbers,
    caller trust, and brands.
  contact:
    name: LumisReach
    email: founders@lumisreach.com
servers:
  - url: https://api.lumisreach.com/api
security:
  - bearerAuth: []
tags:
  - name: Contacts
  - name: Calls
  - name: Messages
  - name: Emails
  - name: Phone Numbers
  - name: Caller IDs
  - name: Enterprise Registration
  - name: Branded Calling
  - name: Dialer Calls
  - name: SMS
  - name: WebRTC
  - name: Reputation
  - name: Usage
  - name: Account
  - name: Billing
  - name: Documents
  - name: Lincoln AI
  - name: Quick Agent Actions
  - name: Sub-entities
  - name: Video schedules
  - name: Videos
paths:
  /v1/quick/chat-channels:
    post:
      tags:
        - Quick Agent Actions
      summary: Connect a chat channel
      description: >-
        Connects a Slack or Discord channel through an incoming-webhook URL
        (Slack: https://api.slack.com/messaging/webhooks; Discord: Channel
        Settings > Integrations > Webhooks > New Webhook > Copy Webhook URL). A
        short confirmation message is posted to the channel first; if the
        webhook does not accept it, nothing is saved (400). The URL is stored
        encrypted and never returned.
      operationId: v1_quick_chat_channels_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            A UUID. When present, deduplicates repeat submissions. See
            /api-reference/idempotency.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                platform:
                  type: string
                  enum:
                    - slack
                    - discord
                  description: Which chat app the webhook belongs to.
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                  description: A label for the channel, e.g. "#sales".
                webhook_url:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    The incoming-webhook URL:
                    https://hooks.slack.com/services/... for Slack,
                    https://discord.com/api/webhooks/<id>/<token> for Discord.
              required:
                - platform
                - name
                - webhook_url
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      platform:
                        type: string
                        enum:
                          - slack
                          - discord
                      name:
                        type: string
                      created_at:
                        type: string
                      last_used_at:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - platform
                      - name
                      - created_at
                      - last_used_at
                    additionalProperties: false
                required:
                  - data
                additionalProperties: false
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Conflict (incl. idempotency conflicts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: object
              additionalProperties:
                type: string
            doc_url:
              type: string
              format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````