Skip to main content
PUT
Create or update a device's Chatwoot config

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

device_id
string
required

Device ID (or WhatsApp JID) whose Chatwoot config is addressed

Example:

"my-device-id"

Body

application/json
chatwoot_url
string
required
Example:

"https://chatwoot.example.com"

account_id
integer
required
Example:

1

inbox_id
integer
required
Example:

5

api_token
string

Chatwoot agent/bot API token. Required on create; empty (or the masked value) keeps the stored token on update.

webhook_secret
string

Webhook secret of this inbox's API channel. When set it protects every webhook routed to this device (on /chatwoot/webhook/{device_id} and on the shared /chatwoot/webhook) instead of CHATWOOT_WEBHOOK_SECRET. Omit to keep the stored value; send an empty string to remove it. Never returned by the API.

enabled
boolean
default:true

Response

Config saved

code
string
Example:

"SUCCESS"

message
string
Example:

"Chatwoot device config saved"

results
object

Per-device Chatwoot routing config (API token masked on every read)