WhatsApp
Register a WhatsApp Business number
Attach a WhatsApp Business number you already own on Meta's Cloud API to your org so an Omni agent can answer its calls. You bring the WhatsApp Business Account id, the number's phone_number_id, and a system-user access token with whatsapp_business_messaging; PyAI stores the token encrypted and never returns it. Point your Meta app's calls and messages webhooks at https://api.pyai.com/public/whatsapp/webhook. Calling stays off until you enable it with POST /v1/whatsapp/numbers/{id}/calling. Requires the telephony:manage scope.
post/v1/whatsapp/numbers
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/whatsapp/numbers
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Example request
{
"display_phone_number": "+14155550123"
}Response
Registered
Example response
{
"object": "whatsapp.number",
"id": "wan_...",
"phone_number": "+14155550123"
}Changes
No recorded changes to this operation across all 1 revision of this API.