> ## 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.

# Get the campaign settings

> The workspace's default lead policy and its overrides, which new campaigns take a copy of, with the version to send when replacing them.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/campaign-settings
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/campaign-settings:
    get:
      tags:
        - Campaigns
      summary: Get the campaign settings
      description: >-
        The workspace's default lead policy and its overrides, which new
        campaigns take a copy of, with the version to send when replacing them.
      operationId: getCampaignSettings
      parameters: []
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCampaignSettingsResponse'
        '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'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    GetCampaignSettingsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            version:
              type: integer
              description: Goes up by one on every save; 0 for the defaults.
            settings:
              $ref: '#/components/schemas/CampaignSettings'
          required:
            - version
            - settings
      required:
        - data
    CampaignSettings:
      type: object
      properties:
        defaultPolicy:
          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
        whatsappVoice:
          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
        agentOverrides:
          maxItems: 200
          type: array
          items:
            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
              agentId:
                type: string
                minLength: 1
                maxLength: 100
            required:
              - agentId
      required:
        - defaultPolicy
        - whatsappVoice
        - agentOverrides
      description: >-
        The workspace's default lead policy, WhatsApp voice overrides and
        per-agent overrides. A group an override sets replaces the default's
        group whole.
    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
  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'
    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.