Skip to main content
PUT
Update an agent's chat widget styles

Authorizations

Authorization
string
header
required

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.

Path Parameters

agentId
string
required
Required string length: 1 - 128

Body

application/json
displayName
string
default:""
Maximum string length: 80
initialMessages
string[]
messagePlaceholder
string
default:Message...
Maximum string length: 120
Maximum string length: 200
suggestedMessages
object[]
Maximum array length: 8
showSuggestedMessages
boolean
default:true
keepSuggestedMessages
boolean
default:false
theme
enum<string>
default:light
Available options:
light,
dark
accentColor
string
accentEnabled
boolean
default:true
accentHeader
boolean
default:false
accentSend
boolean
default:false
radius
enum<string>
default:pill
Available options:
sharp,
soft,
round,
pill
fontFamily
enum<string>
default:Inter
Available options:
Inter,
System,
Arial,
Helvetica,
Georgia
fontSize
enum<string>
default:16
Available options:
12,
14,
16,
18,
20
bubblePosition
enum<string>
default:right
Available options:
left,
right,
center
bubbleColor
string
bubbleIcon
enum<string>
default:centillion

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.

Available options:
centillion,
filled,
outline,
minimal
showAgentBubble
boolean
default:true
collectFeedback
boolean
default:true
rateConversation
boolean
default:true
copyMessage
boolean
default:false
interfaceOptions
object
richContent
object
styleTokens
object

Changes only the tokens sent. null removes a token, so the widget takes the theme's value again.

textLabels
object

Changes only the texts sent. An empty string brings back the built-in text.

terms
object
shareablePage
object
callDescription
string
default:""
Maximum string length: 160
launcherIcon
enum<string>
Available options:
orb,
picture,
link
launcherVariant
enum<string>
default:orb-and-text
Available options:
orb-and-text,
orb-only
widgetEdge
enum<string>
default:bottom
Available options:
bottom,
top
orbColors
object | null
Maximum string length: 2000

Response

Success.

data
object
required