> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp Calling API Reference

> API endpoints for connecting WhatsApp Business numbers to Bolna, enabling WhatsApp calling, and choosing the agent that answers WhatsApp voice calls.

> [!NOTE]
>
> WhatsApp Business Calling is currently in invite-only beta. [Contact our sales team](https://www.bolna.ai/book-demo) to learn more and request access. Feature behavior and usage limits may change before general availability.

Connect a WhatsApp Business number to Bolna and a Bolna agent answers the WhatsApp voice calls placed to it. Calls are inbound only. See the [WhatsApp Business Calling guide](https://www.bolna.ai/docs/whatsapp.md) for requirements and the dashboard flow.

A connected number moves through these states:

| State | Meaning |
| - | - |
| `created` | The number is connected, calling is not enabled yet |
| `calling_enabled` | Calling is on, no agent answers yet |
| `live` | An agent answers WhatsApp calls on the number |
| `error` | Calling could not be enabled. `last_error` holds the reason (usually Meta's), and provisioning can be retried |

## Endpoints

### WhatsApp Business Accounts

| Method | Endpoint | Description |
| - | - | - |
| `POST` | [`/whatsapp/integrations`](https://www.bolna.ai/docs/api-reference/whatsapp/create_integration) | Connect a WhatsApp Business Account and a phone number |
| `GET` | [`/whatsapp/integrations`](https://www.bolna.ai/docs/api-reference/whatsapp/list_integrations) | List connected WhatsApp Business Accounts and their numbers |
| `DELETE` | [`/whatsapp/integrations/{integration_id}`](https://www.bolna.ai/docs/api-reference/whatsapp/delete_integration) | Disconnect a WhatsApp Business Account and all its numbers |

### Phone Numbers

| Method | Endpoint | Description |
| - | - | - |
| `POST` | [`/whatsapp/numbers/{number_id}/provision`](https://www.bolna.ai/docs/api-reference/whatsapp/provision) | Enable WhatsApp calling on a number |
| `POST` | [`/whatsapp/numbers/{number_id}/map-agent`](https://www.bolna.ai/docs/api-reference/whatsapp/map_agent) | Choose the agent that answers the number |
| `POST` | [`/whatsapp/numbers/{number_id}/unlink-agent`](https://www.bolna.ai/docs/api-reference/whatsapp/unlink_agent) | Stop the number from answering calls |
| `DELETE` | [`/whatsapp/numbers/{number_id}`](https://www.bolna.ai/docs/api-reference/whatsapp/delete_number) | Disconnect a number from Bolna |

WhatsApp numbers also appear in [`GET /phone-numbers/all`](https://www.bolna.ai/docs/api-reference/phone-numbers/get_all) with `telephony_provider: "whatsapp"` once calling is enabled on them, and [`POST /inbound/setup`](https://www.bolna.ai/docs/api-reference/inbound/agent) and [`POST /inbound/unlink`](https://www.bolna.ai/docs/api-reference/inbound/unlink) work with those phone number ids. Executions for WhatsApp calls have `provider: "whatsapp"` and `call_type: "inbound"`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.