Skip to main content
PATCH
Update a channel's settings

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Path Parameters

channel
enum<string>
required

The channel to update.

Available options:
whatsapp,
instagram,
messenger,
telegram

Body

application/json

Unknown parameters return 422.

agent_id
string
required
Maximum string length: 64
ai_replies
boolean

Whether the agent replies on this channel.

language
enum<string>

A language code. Sets the language of the channel's system messages, such as the chat ended notice, error messages, and button labels. The AI's replies follow its own instructions.

Available options:
sq,
ar,
hy,
az,
bn,
bs,
pt-br,
bg,
ca,
zh-cn,
zh-tw,
hr,
cs,
da,
nl,
en,
et,
fi,
fr,
de,
el,
he,
hi,
hu,
id,
it,
ja,
ko,
lv,
lt,
ms,
mn,
no,
fa,
pl,
pt,
ro,
ru,
sr,
sk,
sl,
es,
sv,
th,
tr,
uk,
ur,
vi
session_timeout_minutes
integer | null

From 10 minutes to 180 days. null turns the timeout off.

Required range: 10 <= x <= 259200

Response

The updated channel.

object
any
required
channel
enum<string>
required
Available options:
whatsapp,
instagram,
messenger,
telegram
agent
object
required

The agent this belongs to.

status
enum<string>
required

connected channels receive and send messages. setup_incomplete means WhatsApp is connected but its phone number isn't registered yet. disabled_by_meta means Meta rejected or disabled the WhatsApp account. disabled_by_plan means WhatsApp was turned off because the plan no longer includes it. disconnected means the account was connected before. For Instagram, disconnected_reason says why.

Available options:
not_connected,
connected,
setup_incomplete,
disabled_by_meta,
disabled_by_plan,
disconnected
available
boolean
required

Whether the project's plan includes the channel.

account
object | null
required

The connected account, or null if the channel was never connected.

disconnected_reason
enum<string> | null
required

Instagram only, if disconnected: whether the access expired, was revoked, or the app was removed from the account.

Available options:
token_expired,
token_revoked,
deauthorized,
null
disconnected_at
string<date-time> | null
required

Instagram only: when the account was disconnected, if known.

connected_at
string<date-time> | null
required

Time at which the account was connected, or null if it never was.

settings
object | null
required

null if the channel was never connected.