Chatwoot
Activate integration
Provision the Chatwoot integration: creates the inbox in Chatwoot and enables message routing
POST
Activate integration
Auth:
Unreachable host:
TokenAccount or TokenInstance • Rate limit: Global (100/min) • Idempotent: no
Description
Activates the Chatwoot integration for an instance. RyzeAPI creates an inbox in Chatwoot and keeps the realtime connection. ThechatwootApiToken is encrypted at rest with AES-256-GCM and is not returned by this endpoint (it is exposed in plaintext only by GET /api/chatwoot/list/:instance).
Example
Success response
201 Created
| Field | Description |
|---|---|
instance | Name of the instance where the integration was activated. |
status | "active" when activation completed. |
bridge_integration_id | Internal integration ID, used as a reference in the other operations. |
message | Fixed confirmation message. |
Path parameters
Instance name (e.g.,
suporte).Headers
TokenAccount or TokenInstance.application/jsonRequest body
URL of the Chatwoot installation (RFC 3986). The trailing
/ is removed. Example: https://chatwoot.example.com.Numeric ID of the Chatwoot account. Must be greater than
0.API token (
access_token) of the Chatwoot agent. Encrypted at rest with AES-256-GCM. Not returned by this endpoint, but exposed in plaintext by GET /api/chatwoot/list/:instance.Name of the inbox to be created in Chatwoot.
When
true, prefixes messages sent by RyzeAPI with the Chatwoot agent’s signature.When
true, group events are not routed to Chatwoot.When
true, new conversations start as pending (instead of open).When
true, new messages on conversations marked as resolved automatically reopen them.Errors
The API classifies the failure and returns a useful HTTP status with an actionable message. The raw root-cause text (coming from Chatwoot) is included afterDetail:.
| HTTP | error.message | Cause |
|---|---|---|
| 400 | Chatwoot account or endpoint not found - verify chatwootBaseUrl (...) and chatwootAccountId (...). Detail: ... | Wrong account ID, invalid URL, or Chatwoot returned 404/422. |
| 400 | Chatwoot rejected the request as invalid ... Detail: ... | Chatwoot 422 error (payload validation). |
| 400 | invalid body: ... | Malformed body or missing required fields. |
| 401 | Chatwoot rejected the API token - verify chatwootApiToken. Detail: ... | Invalid Chatwoot token (Chatwoot returned HTTP 401: Invalid Access Token). |
| 403 | Chatwoot denied the request - verify the API token has admin scope on account <id>. Detail: ... | Token lacks admin scope on the account. |
| 404 | instance not found | Instance does not exist in RyzeAPI. |
| 500 | chatwoot integration failed: persist integration: ... | Local persistence failure (DB). |
| 502 | Chatwoot is unreachable at <url> - verify chatwootBaseUrl and that the host is reachable from the server. Detail: ... | DNS, connection refused, i/o timeout, dial tcp, or Chatwoot returned 5xx. |
| 503 | integration gateway not configured | Chatwoot module not enabled on the server. |
Error payload examples
Invalid token:Next
View status / info
Check the
status and last_error of the integration.Deactivate integration
Remove the integration (the Chatwoot inbox is preserved).