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

# Update an agent's chat widget styles

> Changes only the styles sent; the others keep their values. Answers with the styles saved. Needs a Full access key.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v2/agents/{agentId}/styles
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/agents/{agentId}/styles:
    put:
      tags:
        - Agents
      summary: Update an agent's chat widget styles
      description: >-
        Changes only the styles sent; the others keep their values. Answers with
        the styles saved. Needs a Full access key.
      operationId: updateAgentStyles
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAgentStylesRequest'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAgentStylesResponse'
        '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:
    UpdateAgentStylesRequest:
      type: object
      properties:
        displayName:
          default: ''
          type: string
          maxLength: 80
        initialMessages:
          type: array
          items:
            type: string
        messagePlaceholder:
          default: Message...
          type: string
          maxLength: 120
        footer:
          default: ''
          type: string
          maxLength: 200
        suggestedMessages:
          default: []
          maxItems: 8
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 80
              label:
                type: string
                minLength: 1
                maxLength: 120
              type:
                default: basic
                type: string
                enum:
                  - basic
                  - nested
              icon:
                default: none
                type: string
                enum:
                  - none
                  - sparkles
                  - help
                  - book
              options:
                default: []
                maxItems: 5
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 80
                    label:
                      type: string
                      minLength: 1
                      maxLength: 120
                  required:
                    - id
                    - label
            required:
              - id
              - label
        showSuggestedMessages:
          default: true
          type: boolean
        keepSuggestedMessages:
          default: false
          type: boolean
        theme:
          default: light
          type: string
          enum:
            - light
            - dark
        accentColor:
          type: string
        accentEnabled:
          default: true
          type: boolean
        accentHeader:
          default: false
          type: boolean
        accentSend:
          default: false
          type: boolean
        radius:
          default: pill
          type: string
          enum:
            - sharp
            - soft
            - round
            - pill
        fontFamily:
          default: Inter
          type: string
          enum:
            - Inter
            - System
            - Arial
            - Helvetica
            - Georgia
        fontSize:
          default: '16'
          type: string
          enum:
            - '12'
            - '14'
            - '16'
            - '18'
            - '20'
        bubblePosition:
          default: right
          type: string
          enum:
            - left
            - right
            - center
        bubbleColor:
          type: string
        bubbleIcon:
          description: >-
            The icon on the round launcher of an agent with a video avatar.
            Accepted for every agent, but the website pill no longer draws it:
            the pill shows the agent's avatar, the Centillion orb or a picture.
          default: centillion
          type: string
          enum:
            - centillion
            - filled
            - outline
            - minimal
        showAgentBubble:
          default: true
          type: boolean
        collectFeedback:
          default: true
          type: boolean
        rateConversation:
          default: true
          type: boolean
        copyMessage:
          default: false
          type: boolean
        interfaceOptions:
          type: object
          properties:
            chatOnly:
              default: false
              type: boolean
            textDuringCall:
              default: true
              type: boolean
            liveTranscript:
              default: true
              type: boolean
            revealTranscriptWithSpeech:
              default: true
              type: boolean
            languageDropdown:
              default: false
              type: boolean
            muteButton:
              default: true
              type: boolean
            actionIndicator:
              default: false
              type: boolean
            showConversationId:
              default: true
              type: boolean
            hideAudioTags:
              default: true
              type: boolean
            resizeButton:
              default: false
              type: boolean
            mobileFullscreen:
              default: true
              type: boolean
            confirmEnd:
              default: false
              type: boolean
          additionalProperties: false
        richContent:
          type: object
          properties:
            agentQuickReplies:
              default: true
              type: boolean
            widgetCards:
              default: true
              type: boolean
          additionalProperties: false
        styleTokens:
          description: >-
            Changes only the tokens sent. `null` removes a token, so the widget
            takes the theme's value again.
          type: object
          properties:
            colors:
              type: object
              propertyNames:
                type: string
                enum:
                  - base
                  - baseHover
                  - baseActive
                  - baseBorder
                  - baseSubtle
                  - baseText
                  - error
                  - accentHover
                  - accentActive
                  - accentBorder
                  - accentSubtle
                  - accentText
              additionalProperties:
                type:
                  - string
                  - 'null'
            shapes:
              type: object
              propertyNames:
                type: string
                enum:
                  - buttonRadius
                  - inputRadius
                  - bubbleRadius
                  - cardRadius
                  - launcherRadius
                  - menuRadius
                  - cardPadding
              additionalProperties:
                anyOf:
                  - type: integer
                    minimum: 0
                    maximum: 48
                  - type: 'null'
          additionalProperties: false
        textLabels:
          description: >-
            Changes only the texts sent. An empty string brings back the
            built-in text.
          type: object
          propertyNames:
            type: string
            enum:
              - minimize
              - startCall
              - backToCall
              - endCall
              - endCallQuestion
              - connectingCall
              - endingCall
              - switchToChat
              - moreOptions
              - resetConversation
              - startOverQuestion
              - endConversation
              - endConversationQuestion
              - endConversationFailed
              - cancel
              - deleteConversation
              - viewTickets
              - connectingStatus
              - listeningStatus
              - speakingStatus
              - voicePlaceholder
              - chooseSuggestion
              - youEnded
              - agentEnded
              - youEndedCall
              - callEnded
              - ratingPrompt
              - ratingStar
              - commentPlaceholder
              - submit
              - ratingThanks
              - ratingFailed
              - newConversationPlaceholder
              - send
              - attachFiles
              - tryAsking
              - thinking
              - copyMessage
              - helpfulResponse
              - unhelpfulResponse
              - dismissNotice
              - startDictation
              - stopDictation
              - sendFailed
              - feedbackFailed
              - attachmentFailed
              - fileEmpty
              - fileTooLarge
              - fileTypeUnsupported
              - fileLimitReached
              - conversationId
              - copy
              - copied
              - agentWorking
              - agentDone
              - agentError
              - mute
              - unmute
              - changeLanguage
              - expand
              - shrink
              - terms
              - termsAccept
              - termsDecline
              - conversationEnded
              - startNewConversation
          additionalProperties:
            type: string
            maxLength: 160
        terms:
          type: object
          properties:
            enabled:
              default: false
              type: boolean
            markdown:
              default: ''
              type: string
              maxLength: 10000
            storageKey:
              default: ''
              type: string
              pattern: ^[A-Za-z0-9_-]{0,100}$
          additionalProperties: false
        linkPolicy:
          type: object
          properties:
            allowAll:
              default: true
              type: boolean
            allowedHosts:
              type: array
              items:
                type: string
            includeWww:
              default: true
              type: boolean
            allowHttp:
              default: false
              type: boolean
          additionalProperties: false
        shareablePage:
          type: object
          properties:
            description:
              default: ''
              type: string
              maxLength: 500
            requireTerms:
              default: false
              type: boolean
          additionalProperties: false
        callDescription:
          default: ''
          type: string
          maxLength: 160
        launcherIcon:
          type: string
          enum:
            - orb
            - picture
            - link
        launcherVariant:
          default: orb-and-text
          type: string
          enum:
            - orb-and-text
            - orb-only
        widgetEdge:
          default: bottom
          type: string
          enum:
            - bottom
            - top
        orbColors:
          anyOf:
            - type: array
              prefixItems:
                - type: string
                - type: string
              items:
                type: string
              minItems: 2
              maxItems: 2
            - type: 'null'
        avatarLink:
          default: ''
          type: string
          maxLength: 2000
      additionalProperties: false
    UpdateAgentStylesResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AgentStyles'
      required:
        - data
    AgentStyles:
      type: object
      properties:
        displayName:
          type: string
          maxLength: 80
        initialMessages:
          minItems: 1
          maxItems: 5
          type: array
          items:
            type: string
            maxLength: 500
        messagePlaceholder:
          type: string
          maxLength: 120
        footer:
          type: string
          maxLength: 200
        suggestedMessages:
          maxItems: 8
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 80
              label:
                type: string
                minLength: 1
                maxLength: 120
              type:
                default: basic
                type: string
                enum:
                  - basic
                  - nested
              icon:
                default: none
                type: string
                enum:
                  - none
                  - sparkles
                  - help
                  - book
              options:
                default: []
                maxItems: 5
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 80
                    label:
                      type: string
                      minLength: 1
                      maxLength: 120
                  required:
                    - id
                    - label
            required:
              - id
              - label
              - type
              - icon
              - options
        showSuggestedMessages:
          type: boolean
        keepSuggestedMessages:
          type: boolean
        theme:
          type: string
          enum:
            - light
            - dark
        accentColor:
          type: string
          pattern: ^#[0-9a-f]{6}$
        accentEnabled:
          type: boolean
        accentHeader:
          type: boolean
        accentSend:
          type: boolean
        radius:
          type: string
          enum:
            - sharp
            - soft
            - round
            - pill
        fontFamily:
          type: string
          enum:
            - Inter
            - System
            - Arial
            - Helvetica
            - Georgia
        fontSize:
          type: string
          enum:
            - '12'
            - '14'
            - '16'
            - '18'
            - '20'
        bubblePosition:
          type: string
          enum:
            - left
            - right
            - center
        bubbleColor:
          type: string
          pattern: ^#[0-9a-f]{6}$
        bubbleIcon:
          description: >-
            The icon on the round launcher of an agent with a video avatar.
            Accepted for every agent, but the website pill no longer draws it:
            the pill shows the agent's avatar, the Centillion orb or a picture.
          type: string
          enum:
            - centillion
            - filled
            - outline
            - minimal
        showAgentBubble:
          type: boolean
        collectFeedback:
          type: boolean
        rateConversation:
          type: boolean
        copyMessage:
          type: boolean
        interfaceOptions:
          type: object
          properties:
            chatOnly:
              default: false
              type: boolean
            textDuringCall:
              default: true
              type: boolean
            liveTranscript:
              default: true
              type: boolean
            revealTranscriptWithSpeech:
              default: true
              type: boolean
            languageDropdown:
              default: false
              type: boolean
            muteButton:
              default: true
              type: boolean
            actionIndicator:
              default: false
              type: boolean
            showConversationId:
              default: true
              type: boolean
            hideAudioTags:
              default: true
              type: boolean
            resizeButton:
              default: false
              type: boolean
            mobileFullscreen:
              default: true
              type: boolean
            confirmEnd:
              default: false
              type: boolean
          required:
            - chatOnly
            - textDuringCall
            - liveTranscript
            - revealTranscriptWithSpeech
            - languageDropdown
            - muteButton
            - actionIndicator
            - showConversationId
            - hideAudioTags
            - resizeButton
            - mobileFullscreen
            - confirmEnd
        richContent:
          type: object
          properties:
            agentQuickReplies:
              default: true
              type: boolean
            widgetCards:
              default: true
              type: boolean
          required:
            - agentQuickReplies
            - widgetCards
        styleTokens:
          type: object
          properties:
            colors:
              type: object
              propertyNames:
                type: string
                enum:
                  - base
                  - baseHover
                  - baseActive
                  - baseBorder
                  - baseSubtle
                  - baseText
                  - error
                  - accentHover
                  - accentActive
                  - accentBorder
                  - accentSubtle
                  - accentText
              additionalProperties:
                type: string
                pattern: ^#[0-9a-f]{6}$
            shapes:
              type: object
              propertyNames:
                type: string
                enum:
                  - buttonRadius
                  - inputRadius
                  - bubbleRadius
                  - cardRadius
                  - launcherRadius
                  - menuRadius
                  - cardPadding
              additionalProperties:
                type: integer
                minimum: 0
                maximum: 48
          required:
            - colors
            - shapes
        textLabels:
          type: object
          propertyNames:
            type: string
            enum:
              - minimize
              - startCall
              - backToCall
              - endCall
              - endCallQuestion
              - connectingCall
              - endingCall
              - switchToChat
              - moreOptions
              - resetConversation
              - startOverQuestion
              - endConversation
              - endConversationQuestion
              - endConversationFailed
              - cancel
              - deleteConversation
              - viewTickets
              - connectingStatus
              - listeningStatus
              - speakingStatus
              - voicePlaceholder
              - chooseSuggestion
              - youEnded
              - agentEnded
              - youEndedCall
              - callEnded
              - ratingPrompt
              - ratingStar
              - commentPlaceholder
              - submit
              - ratingThanks
              - ratingFailed
              - newConversationPlaceholder
              - send
              - attachFiles
              - tryAsking
              - thinking
              - copyMessage
              - helpfulResponse
              - unhelpfulResponse
              - dismissNotice
              - startDictation
              - stopDictation
              - sendFailed
              - feedbackFailed
              - attachmentFailed
              - fileEmpty
              - fileTooLarge
              - fileTypeUnsupported
              - fileLimitReached
              - conversationId
              - copy
              - copied
              - agentWorking
              - agentDone
              - agentError
              - mute
              - unmute
              - changeLanguage
              - expand
              - shrink
              - terms
              - termsAccept
              - termsDecline
              - conversationEnded
              - startNewConversation
          additionalProperties:
            type: string
            maxLength: 160
        terms:
          type: object
          properties:
            enabled:
              default: false
              type: boolean
            markdown:
              default: ''
              type: string
              maxLength: 10000
            storageKey:
              default: ''
              type: string
              pattern: ^[A-Za-z0-9_-]{0,100}$
          required:
            - enabled
            - markdown
            - storageKey
        linkPolicy:
          type: object
          properties:
            allowAll:
              default: true
              type: boolean
            allowedHosts:
              default: []
              maxItems: 50
              type: array
              items:
                type: string
                maxLength: 253
            includeWww:
              default: true
              type: boolean
            allowHttp:
              default: false
              type: boolean
          required:
            - allowAll
            - allowedHosts
            - includeWww
            - allowHttp
        shareablePage:
          type: object
          properties:
            description:
              default: ''
              type: string
              maxLength: 500
            requireTerms:
              default: false
              type: boolean
          required:
            - description
            - requireTerms
        callDescription:
          type: string
          maxLength: 160
        launcherIcon:
          type: string
          enum:
            - orb
            - picture
            - link
        launcherVariant:
          type: string
          enum:
            - orb-and-text
            - orb-only
        widgetEdge:
          type: string
          enum:
            - bottom
            - top
        orbColors:
          anyOf:
            - type: array
              prefixItems:
                - type: string
                  pattern: ^#[0-9a-f]{6}$
                - type: string
                  pattern: ^#[0-9a-f]{6}$
              items:
                type: string
                pattern: ^#[0-9a-f]{6}$
              minItems: 2
              maxItems: 2
            - type: 'null'
        avatarLink:
          type: string
          maxLength: 2000
    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'
    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.