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

# Create a campaign

> Creates a campaign with its leads and starts it, or schedules it for `startsAt`. It calls from a phone number, calls on WhatsApp, or sends each lead a WhatsApp message template (`channel`). The policy is the one the workspace's campaign settings give the agent on that channel, with the groups `policy` sends instead; it is fixed once the campaign exists. Calls wait for a calling window. A WhatsApp template is checked with Meta when the campaign is created and again when it starts. The key's creator must have agreed to the outbound communications terms for the channel in the dashboard. A repeat with the same idempotency key, or with no key and the same body, within 24 hours returns the campaign it created with `created` false. Needs a Full access key.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/campaigns
openapi: 3.1.0
info:
  title: Centillion Labs API
  description: >-
    The public API of Centillion Labs: agents, their branches and versions,
    knowledge, tools and the secrets they send, chat, conversations, contacts,
    campaigns, batch calls, agent testing, issues and Helpdesk.
  version: 2.0.0
servers:
  - url: https://app.cntillion.com
security:
  - workspaceApiKey: []
  - workspaceApiKeyHeader: []
tags:
  - name: Agents
    description: Create, read, change, clone and delete agents.
  - name: Branches and versions
    description: Branches, drafts, immutable versions, merges, publishing and traffic.
  - name: Workflow and voice
    description: A branch's workflow and its voice settings.
  - name: Tools
    description: 'Workspace tools: HTTP, client, MCP server and code tools.'
  - name: Secrets
    description: >-
      Named credentials, such as an API key, that HTTP tools and MCP servers
      send as a header by naming the secret's id in
      `configuration.secretHeaders`. A value is encrypted when saved and never
      returned. A new value reaches every tool and published agent that uses the
      secret on its next call, with nothing to publish, and a secret can be
      deleted only once no tool and no published agent sends it.
  - name: Auth connections
    description: >-
      How the workspace's tools sign in to an API, kept once and named by id in
      an HTTP tool's or an MCP server's `configuration.authConnectionId` (or
      `configuration.page.authConnectionId` for a web form's link request).
      Secrets are encrypted when saved and never returned. A change reaches
      every tool and published agent that uses the connection on its next call,
      and a connection can be deleted only once nothing signs in with it.
  - name: Knowledge sources
    description: What an agent knows, and training it on that.
  - name: Chat
    description: Talk to an agent from your own systems.
  - name: Conversations
    description: Conversations, their messages, feedback and analysis.
  - name: Leads and contacts
    description: The leads and contacts an agent collected.
  - name: Contacts and enrollments
    description: Upsert contacts and enroll them in always-open campaigns.
  - name: Batch calls
    description: Outbound call batches, their recipients and their runs.
  - name: Campaigns
    description: >-
      Managed outbound calling: campaigns that call each lead within calling
      windows and retry, call back or redirect as their lead policy allows,
      their leads, calls and attention items, and the workspace's campaign
      settings.
  - name: WhatsApp
    description: WhatsApp templates and template messages.
  - name: Agent testing
    description: Workspace tests, agent suites, execution, and results.
  - name: Issues
    description: >-
      Issues an agent raised or a teammate flagged about how it behaves: triage,
      comment, merge and resolve.
  - name: Helpdesk
    description: Helpdesk tickets, their messages, teams and statuses.
  - name: Status
    description: Whether the API is up.
paths:
  /api/v2/campaigns:
    post:
      tags:
        - Campaigns
      summary: Create a campaign
      description: >-
        Creates a campaign with its leads and starts it, or schedules it for
        `startsAt`. It calls from a phone number, calls on WhatsApp, or sends
        each lead a WhatsApp message template (`channel`). The policy is the one
        the workspace's campaign settings give the agent on that channel, with
        the groups `policy` sends instead; it is fixed once the campaign exists.
        Calls wait for a calling window. A WhatsApp template is checked with
        Meta when the campaign is created and again when it starts. The key's
        creator must have agreed to the outbound communications terms for the
        channel in the dashboard. A repeat with the same idempotency key, or
        with no key and the same body, within 24 hours returns the campaign it
        created with `created` false. Needs a Full access key.
      operationId: createCampaign
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Between 1 and 128 characters. A retry with the same key and body
            gets the first answer back and writes nothing; the same key with
            another body is refused with `409`.
          schema:
            type: string
            minLength: 1
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCampaignRequest'
      responses:
        '200':
          description: A repeat of an earlier request.
          headers:
            Idempotent-Replayed:
              description: >-
                `true` when this is the stored answer to an earlier request with
                the same key.
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCampaignResponse201'
        '201':
          description: Created.
          headers:
            Idempotent-Replayed:
              description: >-
                `true` when this is the stored answer to an earlier request with
                the same key.
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCampaignResponse201'
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '413':
          $ref: '#/components/responses/Error413'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    CreateCampaignRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        agentId:
          type: string
          minLength: 1
          maxLength: 128
        channel:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: phone
                phoneLineId:
                  description: >-
                    The workspace phone number to call from: an active one that
                    can dial out. Send `phoneLineId` or `phoneLineIds`.
                  type: string
                  minLength: 1
                  maxLength: 128
                phoneLineIds:
                  description: >-
                    Pool of active workspace phone numbers to rotate across when
                    dialing, respecting each number's daily cap.
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 128
                ringingTimeoutSeconds:
                  default: 60
                  type: integer
                  minimum: 5
                  maximum: 120
                answeringMachineDetection:
                  default: true
                  description: >-
                    Whether calls detect voicemail and settle as unanswered when
                    they reach it.
                  type: boolean
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  const: whatsapp
                whatsappAccountId:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: >-
                    The WhatsApp account to call or message from: an active one
                    assigned to the agent.
                mode:
                  type: string
                  enum:
                    - voice
                    - text
                  description: >-
                    `voice` calls each lead on WhatsApp, as a phone campaign
                    calls; `text` sends each lead one approved message template
                    and the agent answers whoever replies.
                template:
                  description: >-
                    `text`: the message template every lead is sent, required.
                    `voice`: an approved template with a call permission
                    request, sent once to a lead who has not allowed calls yet.
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 512
                    language:
                      type: string
                      minLength: 1
                      maxLength: 35
                      description: The template's language code, such as `en_US`.
                    variables:
                      default: {}
                      type: object
                      properties:
                        body:
                          type: object
                          propertyNames:
                            type: string
                            minLength: 1
                            maxLength: 64
                          additionalProperties:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: The name of a lead variable.
                        header:
                          type: object
                          propertyNames:
                            type: string
                            minLength: 1
                            maxLength: 64
                          additionalProperties:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: The name of a lead variable.
                        buttons:
                          type: object
                          propertyNames:
                            type: string
                            pattern: ^\d{1,2}$
                          additionalProperties:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: The name of a lead variable.
                        headerMedia:
                          type: string
                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          description: The name of a lead variable.
                      additionalProperties: false
                      description: >-
                        Which lead variable fills each of the template's values,
                        keyed as the WhatsApp template list names them: text
                        placeholders by name or number under `body` and
                        `header`, buttons by position from 1, and a media
                        header's public link as `headerMedia`. A value left out
                        is read from the lead variable of its own name; a
                        numbered placeholder such as `{{1}}` must be named here.
                  required:
                    - name
                    - language
                  additionalProperties: false
                ringingTimeoutSeconds:
                  default: 60
                  type: integer
                  minimum: 5
                  maximum: 120
              required:
                - type
                - whatsappAccountId
                - mode
              additionalProperties: false
        recipients:
          default: []
          description: >-
            Up to 1,000 leads. Send more, or send them over time, to a campaign
            created with `keepOpen` through the leads endpoint.
          maxItems: 1000
          type: array
          items:
            $ref: '#/components/schemas/CampaignLeadInput'
        startsAt:
          default: null
          description: >-
            When calling may start; left out, at once. Calls still wait for a
            calling window.
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        timezone:
          description: >-
            The IANA timezone the calling windows are read in, instead of the
            policy's.
          type: string
          minLength: 1
          maxLength: 64
        branchId:
          default: null
          description: >-
            A published branch of the agent to call with; left out, the agent's
            traffic split decides.
          anyOf:
            - type: string
              minLength: 1
              maxLength: 128
            - type: 'null'
        concurrencyLimit:
          default: null
          anyOf:
            - type: integer
              minimum: 1
              maximum: 1000
            - type: 'null'
        callsPerMinute:
          default: 20
          type: integer
          minimum: 1
          maximum: 20
        allowedOverrides:
          default:
            - prompt
            - first_message
            - language
            - voice_id
          maxItems: 4
          type: array
          items:
            type: string
            enum:
              - prompt
              - first_message
              - language
              - voice_id
        variant:
          description: >-
            Left out, `advanced`, or `simple` for a WhatsApp text campaign,
            which sends each lead one message.
          type: string
          enum:
            - simple
            - advanced
        policy:
          $ref: '#/components/schemas/CampaignPolicyOverrides'
        keepOpen:
          default: false
          description: >-
            Keep the campaign open for leads added after it starts: it does not
            complete when every lead is finished, only when it is cancelled.
            Only an open campaign takes new leads.
          type: boolean
        idempotencyKey:
          description: >-
            Makes the request safe to retry, as the `Idempotency-Key` header
            does; send one or the other. Without either, a request repeating an
            earlier one's body exactly returns that campaign.
          type: string
          minLength: 1
          maxLength: 128
      required:
        - name
        - agentId
        - channel
      additionalProperties: false
    CreateCampaignResponse201:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Campaign'
        created:
          type: boolean
          description: False when the request repeated an earlier one.
        callingStartsAt:
          type: string
          format: date-time
          description: >-
            When the first call may go out: the start, or the next calling
            window after it.
        withinCallingWindow:
          type: boolean
          description: Whether calling starts now rather than later.
      required:
        - data
        - created
        - callingStartsAt
        - withinCallingWindow
    CampaignLeadInput:
      type: object
      properties:
        phoneNumber:
          type: string
          pattern: ^\+[1-9]\d{7,14}$
          description: >-
            The first number to call, in E.164 format; on a WhatsApp campaign,
            the lead's WhatsApp number.
        phoneNumbers:
          default: []
          description: >-
            Up to four more numbers, called in order once calls to the one
            before keep failing (`maxConsecutiveFailures`). Phone campaigns
            only.
          maxItems: 4
          type: array
          items:
            type: string
            pattern: ^\+[1-9]\d{7,14}$
        recipientId:
          description: >-
            Your own id for this person, returned on the lead and in its webhook
            event. Unique in the campaign: a lead sent again with the same id is
            not added twice.
          type: string
          minLength: 1
          maxLength: 128
        name:
          default: ''
          type: string
          maxLength: 200
        variables:
          default: {}
          description: >-
            Dynamic variables for this lead's calls. At most 56: every campaign
            call adds the four `campaign__` follow-up variables, and a call
            carries 60.
          type: object
          propertyNames:
            type: string
            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
          additionalProperties:
            anyOf:
              - type: string
                maxLength: 12000
              - type: number
              - type: boolean
        overrides:
          default: {}
          description: >-
            Per-lead conversation overrides, each allowed by the campaign's
            `allowedOverrides`.
          type: object
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 8000
            first_message:
              type: string
              minLength: 1
              maxLength: 2000
            language:
              type: string
              enum:
                - en
                - es
                - it
            voice_id:
              type: string
              minLength: 1
              maxLength: 200
      required:
        - phoneNumber
      additionalProperties: false
    CampaignPolicyOverrides:
      type: object
      properties:
        timezone:
          type: string
          minLength: 1
          maxLength: 64
        useRecipientTimezone:
          type: boolean
        callingWindows:
          minItems: 1
          maxItems: 14
          type: array
          items:
            type: object
            properties:
              weekdays:
                minItems: 1
                maxItems: 7
                type: array
                items:
                  type: integer
                  minimum: 0
                  maximum: 6
              intervals:
                minItems: 1
                maxItems: 12
                type: array
                items:
                  type: object
                  properties:
                    start:
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                    end:
                      type: string
                  required:
                    - start
                    - end
            required:
              - weekdays
              - intervals
        retries:
          type: object
          properties:
            maxTotalCalls:
              type: integer
              minimum: 1
              maximum: 30
            maxShortRetries:
              type: integer
              minimum: 0
              maximum: 29
            maxCallbacks:
              type: integer
              minimum: 0
              maximum: 29
            maxRedirects:
              type: integer
              minimum: 0
              maximum: 29
            maxConsecutiveFailures:
              anyOf:
                - type: integer
                  minimum: 1
                  maximum: 30
                - type: 'null'
            retryDelaySeconds:
              type: integer
              minimum: 1
              maximum: 604800
            intervalPlacement:
              type: string
              enum:
                - start
                - random
                - rotate
            rotateStepSeconds:
              type: integer
              minimum: 1
              maximum: 86400
          required:
            - maxTotalCalls
            - maxShortRetries
            - maxCallbacks
            - maxRedirects
            - maxConsecutiveFailures
            - retryDelaySeconds
            - intervalPlacement
            - rotateStepSeconds
        dataCollection:
          type: object
          properties:
            callbacks:
              type: boolean
            redirects:
              type: boolean
            doNotCall:
              type: boolean
            mappings:
              maxItems: 20
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    minLength: 1
                    maxLength: 100
                  variable:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                required:
                  - field
                  - variable
          required:
            - callbacks
            - redirects
            - doNotCall
            - mappings
        followUpContext:
          type: object
          properties:
            callType:
              type: boolean
            previousConversationId:
              type: boolean
            previousSummary:
              type: boolean
            previousTranscript:
              type: boolean
          required:
            - callType
            - previousConversationId
            - previousSummary
            - previousTranscript
      description: >-
        Policy groups to use instead of the workspace's: each group sent
        replaces that whole group of the policy the workspace settings give the
        agent.
    Campaign:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        agentId:
          type: string
        agentName:
          type: string
        status:
          type: string
          enum:
            - active
            - paused
            - needs_attention
            - cancelling
            - cancelled
            - completed
            - failed
          description: >-
            `active` covers a campaign calling or waiting for its start.
            `needs_attention` is a campaign that paused itself, such as after
            repeated call failures; `lastError` says why. `cancelling` is a
            cancelled campaign whose calls already placed are still finishing.
            `failed` is a completed campaign none of whose leads could be
            processed.
        variant:
          type: string
          enum:
            - simple
            - advanced
          description: >-
            `advanced` calls inside the policy's calling windows and retries,
            calls back and redirects as it allows. `simple` gives every lead one
            call to its first number, at any time, and has no policy.
        source:
          type: string
          enum:
            - dashboard
            - api
          description: Whether a person created it, or a workspace API key.
        channel:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: phone
                phoneLineId:
                  type:
                    - string
                    - 'null'
                phoneLineIds:
                  type: array
                  items:
                    type: string
                phoneNumber:
                  type:
                    - string
                    - 'null'
                ringingTimeoutSeconds:
                  type: integer
                answeringMachineDetection:
                  type: boolean
              required:
                - type
                - phoneLineId
                - phoneNumber
                - ringingTimeoutSeconds
                - answeringMachineDetection
            - type: object
              properties:
                type:
                  type: string
                  const: whatsapp
                whatsappAccountId:
                  type:
                    - string
                    - 'null'
                mode:
                  type: string
                  enum:
                    - voice
                    - text
                template:
                  anyOf:
                    - type: object
                      properties:
                        name:
                          type: string
                        language:
                          type: string
                      required:
                        - name
                        - language
                    - type: 'null'
                  description: >-
                    The message a text campaign sends, or a voice campaign's
                    call permission request; null when a voice campaign sends
                    none.
              required:
                - type
                - whatsappAccountId
                - mode
                - template
        policy:
          anyOf:
            - $ref: '#/components/schemas/CampaignPolicy'
            - type: 'null'
          description: >-
            The policy the campaign took when it was created; null on a simple
            campaign. Later changes to the workspace settings do not change it.
        timezone:
          type: string
        startsAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        branchId:
          type:
            - string
            - 'null'
        concurrencyLimit:
          type:
            - integer
            - 'null'
        callsPerMinute:
          type: integer
        keepOpen:
          type: boolean
        lastError:
          description: Why the campaign paused itself, while it is paused.
          type:
            - string
            - 'null'
        counts:
          type: object
          properties:
            leads:
              type: integer
            finishedLeads:
              type: integer
            openAttention:
              type: integer
          required:
            - leads
            - finishedLeads
            - openAttention
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        launchedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        pausedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        completedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        cancelledAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
      required:
        - id
        - name
        - agentId
        - agentName
        - status
        - variant
        - source
        - channel
        - policy
        - timezone
        - startsAt
        - branchId
        - concurrencyLimit
        - callsPerMinute
        - keepOpen
        - lastError
        - counts
        - createdAt
        - updatedAt
        - launchedAt
        - pausedAt
        - completedAt
        - cancelledAt
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: A stable code, such as `NOT_FOUND`.
            message:
              type: string
              description: What went wrong, for a person.
            details:
              description: More about the failure, on some endpoints.
          required:
            - code
            - message
      required:
        - error
    CampaignPolicy:
      type: object
      properties:
        timezone:
          type: string
          minLength: 1
          maxLength: 64
        useRecipientTimezone:
          default: false
          type: boolean
        callingWindows:
          minItems: 1
          maxItems: 14
          type: array
          items:
            type: object
            properties:
              weekdays:
                minItems: 1
                maxItems: 7
                type: array
                items:
                  type: integer
                  minimum: 0
                  maximum: 6
              intervals:
                minItems: 1
                maxItems: 12
                type: array
                items:
                  type: object
                  properties:
                    start:
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                    end:
                      type: string
                  required:
                    - start
                    - end
            required:
              - weekdays
              - intervals
        retries:
          type: object
          properties:
            maxTotalCalls:
              type: integer
              minimum: 1
              maximum: 30
            maxShortRetries:
              type: integer
              minimum: 0
              maximum: 29
            maxCallbacks:
              type: integer
              minimum: 0
              maximum: 29
            maxRedirects:
              type: integer
              minimum: 0
              maximum: 29
            maxConsecutiveFailures:
              anyOf:
                - type: integer
                  minimum: 1
                  maximum: 30
                - type: 'null'
            retryDelaySeconds:
              type: integer
              minimum: 1
              maximum: 604800
            intervalPlacement:
              type: string
              enum:
                - start
                - random
                - rotate
            rotateStepSeconds:
              type: integer
              minimum: 1
              maximum: 86400
          required:
            - maxTotalCalls
            - maxShortRetries
            - maxCallbacks
            - maxRedirects
            - maxConsecutiveFailures
            - retryDelaySeconds
            - intervalPlacement
            - rotateStepSeconds
        dataCollection:
          type: object
          properties:
            callbacks:
              type: boolean
            redirects:
              type: boolean
            doNotCall:
              type: boolean
            mappings:
              maxItems: 20
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    minLength: 1
                    maxLength: 100
                  variable:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                required:
                  - field
                  - variable
          required:
            - callbacks
            - redirects
            - doNotCall
            - mappings
        followUpContext:
          default:
            callType: true
            previousConversationId: true
            previousSummary: true
            previousTranscript: true
          type: object
          properties:
            callType:
              type: boolean
            previousConversationId:
              type: boolean
            previousSummary:
              type: boolean
            previousTranscript:
              type: boolean
          required:
            - callType
            - previousConversationId
            - previousSummary
            - previousTranscript
      required:
        - timezone
        - useRecipientTimezone
        - callingWindows
        - retries
        - dataCollection
        - followUpContext
      description: >-
        A lead policy: the timezone and weekly calling windows (weekdays 0 to 6
        from Monday, `HH:MM` times, `24:00` for midnight), the retry limits,
        what a call can ask for, and which follow-up variables later calls get.
  responses:
    Error400:
      description: The request is invalid. `error.message` names the first problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error401:
      description: No valid workspace API key was sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error403:
      description: The key or the workspace's plan does not allow this request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error404:
      description: The endpoint, or a record it names, was not found in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error409:
      description: The record changed since it was read, or its state does not allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error413:
      description: The request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error415:
      description: The request body is not of a media type this endpoint accepts.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error429:
      description: Too many requests. Wait for `Retry-After` seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error500:
      description: The request could not be completed. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error504:
      description: The request took too long. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    workspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: cl_api_...
      description: >-
        A workspace API key from Workspace settings > API keys, sent as
        `Authorization: Bearer cl_api_...`. A Read only key can call the GET
        endpoints; every other method needs a Full access key.
    workspaceApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        The same workspace API key, for a gateway that keeps `Authorization` for
        itself.

````

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