Skip to content

Turn a messaging integration on or off

post/toggle-bot-activation
Any key

Toggle or set the activation status of a WhatsApp, Messenger, Instagram or LINE integration for a specific chatbot. Telegram and WhatsappWebAPI cannot be toggled: the call returns active: null and changes nothing.

Request body

Sending 3 of 4 fields
Required
chatbotIdstring
The unique identifier of the chatbot.
typestring
The type of third-party messaging platform.
idstring
The ID of the integration to toggle — the phone number ID for WhatsApp, the page ID for Messenger/Instagram, or the integration's own ID for LINE. For WhatsApp, Messenger and Instagram, you can find it in the ID column of the integration modal.

Only these fields are sent (application/json).

Try it · POST /toggle-bot-activation
curl 'https://api.chat-data.com/api/v2/toggle-bot-activation' \  -H "Authorization: Bearer $CHAT_DATA_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "chatbotId": "6650f1c2a9e4b83d2c7a1f05",  "type": "Whatsapp",  "id": "109876543210987"}'
Loading…

Responses

Successful response.

Content type: application/json

FieldDescription
statusstringOne of: success.
activebooleanThe updated activation status. null when the chatbot's integration of this type has no phone number or page with this id; nothing is changed then.

Example

{  "status": "success",  "active": true}

Last updated October 14, 2026