Bring a number back online
connect_numberReconnect a number that is currently offline.
Uses the credentials already stored for the number, so no QR code and no
human are involved. Use it when get_number reports disconnected and
you want to send.
Returns immediately, before the connection is established. The answer
has the number's alias, status set to connecting and at, the
moment the request was accepted. The number reaches connected a few
seconds later: poll get_number, which stays the source of the current
status and of its own at, rather than assuming it worked.
It works the same on every number and never charges. On an extra number scheduled for removal it does not change the removal: the number keeps working until its date. Cancelling a removal is not available to agents.
This cannot rescue a revoked number: that one was unlinked from the
phone and needs a person to pair it again.
Calling it again changes nothing further. A number that is already
connected or connecting answers with an already_connected or
already_connecting error, which means the goal is met, not that the
call failed.
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 | |||