Set up an Upload-Post phone number: calls and WhatsApp verification
manage_phone_numberSet up call forwarding, voicemail, recording, transcription, and WhatsApp Business on an Upload-Post phone number to control how incoming calls are handled.
Instructions
Settings of one of the account's active Upload-Post phone numbers. update_voice (only what you send changes): forward_to = a phone number to forward incoming calls to ('tel:+E164' or '+E164'; null stops forwarding), only geographic or mobile numbers in the number's country or the end user's country (400 phone_numbers_forward_country_not_allowed); forwarded calls show the Upload-Post number as caller ID; at most 60 minutes per call and 4 hours per 24 h per number. voicemail_enabled, voicemail_greeting (up to 500 characters), recording_enabled, transcription_enabled, transcription_language (en, es, pt, fr, de, it). Voicemail always tells the caller the call is recorded and transcribed; with recording off, calls are only logged as missed. prepare_whatsapp (language, default en): connect WhatsApp Business on this number. There are no pre-verified numbers: for the next 30 minutes calls to the number are answered, recorded (up to 90 s) and transcribed so the code Meta reads out shows up. Steps: 1) prepare_whatsapp; 2) the user opens the WhatsApp connection (get_connect_link with platforms ['whatsapp']), adds this number in Meta's window and chooses Phone call (not SMS) to receive the code; 3) poll phone_numbers_read codes every few seconds and give the user the code to type in Meta's window. 409 phone_number_not_active, 403 phone_number_suspended. These numbers cannot make outbound calls or call emergency services (112 / 911). Not generally available yet: the API answers 403 phone_numbers_not_available until phone numbers are available for the account (phone_numbers_read config answers enabled: false).
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": {
"action": "<action>",
"number_id": "<number_id>"
},
"name": "manage_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| language | No | prepare_whatsapp: the language Meta's call is expected in (default en). | |
| number_id | Yes | Upload-Post id of the number (`pn_...`), from phone_numbers_read `list`. | |
| forward_to | No | update_voice: 'tel:+34600111222' (or '+34600111222'); null stops forwarding. | |
| recording_enabled | No | update_voice. | |
| voicemail_enabled | No | update_voice. | |
| voicemail_greeting | No | update_voice: greeting read to callers. | |
| transcription_enabled | No | update_voice. | |
| transcription_language | No | update_voice: language of the transcripts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |