Update a phone number
Update the agent assignment, transfer trunk or attached workflow for a phone number.
Authorization
BearerAuth API key authentication. Get your key from the dashboard.
In: header
Path Parameters
Phone number UUID
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"number": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"phone_number": "+31850835037",
"agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
"transfer_trunk_id": "ffebe614-a59e-4332-b99b-9c8f0b1671f9",
"workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe",
"source": "user",
"is_active": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"error": "Invalid API key",
"message": "string"
}{
"error": "Invalid API key",
"message": "string"
}{
"error": "Invalid API key",
"message": "string"
}Register a phone number POST
Register a new phone number in your organization. The number must be configured with your SIP provider to forward calls to VoiceDock.
Turn on WhatsApp calling PUT
Give VoiceDock the SIP password Meta generated for this number, so that WhatsApp calls to the number reach your assistant. Do this after you have turned on calling over SIP for the number at Meta; the [WhatsApp calling guide](/docs/integrations/whatsapp-calling) has every step. The change is applied in the background: the response is `202` with status `pending`, and `GET` shows `active` once it is done, usually within a minute. On a number where WhatsApp calling is already set up, this replaces the stored password, for example after you reset it at Meta. The number must be active and must not already receive its calls through another SIP provider, such as your own SIP trunk. An organization can use WhatsApp calling on up to 10 numbers; contact support for more. This endpoint and `DELETE` are limited to 10 requests per minute per API key.