Skip to main content
POST
Subscriber Bot & AI Status
Each subscriber has two switches: bot replies (your bot flows) and AI agent replies. This endpoint reads them, or pauses and resumes either one for that subscriber alone. The usual case is a hand-over: pause both while a team member answers the customer, then resume them.

Read the current status

Send only the subscriber, with neither bot_status nor ai_agent_status:

Pause or resume

Add bot_status, ai_agent_status or both: 0 pauses, 1 resumes. A switch you leave out keeps its setting.
The status is in message when you read it and in data after a change. Both statuses are strings: "1" (resumed) and "0" (paused).
A paused bot stays paused for that subscriber until something resumes it. If you pause it for a hand-over, resume it when the conversation is done, or the customer’s next message gets no automatic reply.
A value other than 0 or 1 is refused (The selected bot status is invalid.), and an unknown subscriber is answered with {"status":"0","message":"Subscriber not found"}. The endpoint accepts GET and POST.

Body

application/x-www-form-urlencoded
apiToken
string
required

Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.

Example:

"API-KEY"

phone_number_id
string
required

The WhatsApp account's phone number ID. Where to find it.

Example:

"PHONE-NUMBER-ID"

phone_number
string
required

The subscriber's phone number, with country code, digits only. For a contact that has no phone number, the chat ID as Subscriber List shows it.

Example:

"PHONE-NUMBER"

bot_status
enum<integer>

1 resumes the bot's automatic replies for this subscriber, 0 pauses them. Leave it out to keep the current setting (and, with ai_agent_status also left out, just read the status).

Available options:
0,
1
ai_agent_status
enum<integer>

1 resumes the AI agent's replies for this subscriber, 0 pauses them. Leave it out to keep the current setting.

Available options:
0,
1

Response

Standard ChatSyncs response. status is "1" on success and "0" on failure.

status
string
message
any