Take a number offline without unlinking it
disconnect_numberTake a WhatsApp number offline on purpose, keeping its link to the phone.
The stored credentials survive, so connect_number brings it straight
back with no pairing. Nothing is deleted. Disconnecting does not stop billing:
an extra number is billed every cycle until it is removed.
Returns immediately, before the number is offline. The answer has the
number's alias, status set to disconnecting and at, the moment the
request was accepted. disconnecting is not a status that get_number
reports: it keeps showing the previous status and its own at until the
number is offline.
While disconnected the number cannot send: a send, reply or reaction
through it is refused at once with number_not_connected, never held
to go out later. It receives nothing until it is connected again.
Calling it again changes nothing further. A number that is already
offline answers with an already_disconnected error, which means the
goal is met, not that the call failed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "disconnect_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number_alias | No | Which of the organization's WhatsApp numbers this acts on: `main`, the alias of an extra number, or the number's `id` (`num_…`), which stays the same when the alias is renamed. Call `list_numbers` to see them. Defaults to the main number. | main |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||