Skip to main content
PATCH
Update a chat button

Authorizations

Authorization
string
header
required

A secret key (dk_live_…). Scopes: conversations:read, contacts:read, contacts:write, meetings:read, analytics:read, events:read, webhooks:write, knowledge:read, knowledge:write, agent:read, agent:write, experiments:read, experiments:write, privacy:write, chat:write.

Headers

Idempotency-Key
string

Retry safely: the first response is replayed for 24 hours (not for streamed answers).

Maximum string length: 255

Path Parameters

id
string
required

Body

application/json
label
string

What the visitor reads on the button.

Required string length: 1 - 40
message
string

send: the visitor's first message. fill: typed into the chat box for them to edit. agent: what the agent is told, so it speaks first. outcome: the form's id (out_…).

Maximum string length: 200
behavior
enum<string>

What a click does once the chat opens. Default send. outcome opens one of the agent's forms; message is its out_… id.

Available options:
send,
fill,
agent,
outcome
style
enum<string>

Default brand: the chat's own colors.

Available options:
brand,
soft,
outline,
link
size
enum<string>
Available options:
sm,
md,
lg,
custom
corners
enum<string>

match: the same corners as the chat.

Available options:
match,
square,
pill,
custom
width
enum<string>

auto fits the label; full fills the width of what it is pasted into.

Available options:
auto,
full
colors
object

Hex colors; empty takes the style's color from the chat. border can be "none".

custom
object

Pixels, used when size or corners is custom.

nofollow
boolean

Adds rel="nofollow" to the button's link.

Response

OK

id
string
required
Pattern: ^btn_
Example:

"btn_k3j9x2m4p7"

object
string
required
Allowed value: "chat_button"
label
string
required
message
string
required
behavior
enum<string>
required
Available options:
send,
fill,
agent,
outcome
style
enum<string>
required
Available options:
brand,
soft,
outline,
link
size
enum<string>
required
Available options:
sm,
md,
lg,
custom
corners
enum<string>
required
Available options:
match,
square,
pill,
custom
width
enum<string>
required
Available options:
auto,
full
colors
object
required
custom
object
required
nofollow
boolean
required
html
string
required

The paste-in HTML: a plain link that opens the chat already on the page.