Channels
Update a channel
Rotate the credential, update the kind's config (waba_id / credential_source for WhatsApp, modes for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
patch/v1/projects/{project_id}/channels/{channel_id}
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/channels/{channel_id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Request body
Example request
{
"default": {
"action": "agent",
"agent_id": "agent_V1StGXR8Z5jdHi6B",
"text": "Subscribe at https://example.com/pricing",
"language": "en-US"
},
"max_context_messages": 20,
"access_token": "EAAG...ZDZD",
"waba_id": "104444444444444",
"credential_source": "embedded_signup",
"bot_token": "MT2...bot-token",
"modes": {
"dms": true
},
"status": "disabled"
}Response
Channel updated.
Example response
{
"id": "chan_V1StGXR8Z5jdHi6B",
"project_id": "proj_V1StGXR8Z5jdHi6B",
"channel": "whatsapp",
"status": "active",
"credential_source": "byot",
"phone_number_id": "109999999999999",
"waba_id": "104444444444444",
"display_phone_number": "+55 11 90000-0001",
"verified_name": "Acme Suporte",
"application_id": "1290000000000000000",
"modes": {
"dms": true
},
"default": {
"action": "agent",
"agent_id": "agent_V1StGXR8Z5jdHi6B",
"text": "Subscribe at https://example.com/pricing",
"language": "en-US",
"config": {
"media": {
"audio": "transcribe"
},
"discord": {
"allowed_role_ids": [
"1290000000000000042"
]
}
}
},
"max_context_messages": 20,
"has_credential": true,
"gateway_error": {
"close_code": 4004
},
"created_at": "2026-07-23T00:00:00.000Z",
"updated_at": "2026-07-23T00:00:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.