Change a client's status
set_client_statusSets or clears one status on a client, as the card's Manage menu does: deactivate (hides them from the clients list by default) or unsubscribe (do-not-contact; on:true needs a short reason and stops every campaign and lead follow-up on that channel). on:false clears it (or re-subscribes). scope all or marketing and channel sms or email narrow an unsubscribe. These are the client's own statuses, not anyone's access to Sergio. Pass the same idempotency_key when retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_id": "<client_id>",
"action": "<action>",
"on": "<on>",
"idempotency_key": "<idempotency_key>"
},
"name": "set_client_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| scope | No | ||
| action | Yes | ||
| reason | No | ||
| channel | No | ||
| client_id | Yes | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |