# API reference

Everything waba.cloud does is a tool. Your AI agent calls tools over MCP at `https://mcp.waba.cloud/mcp`; your code calls the same tools over HTTP at `https://mcp.waba.cloud/v1/<tool>`. Both take the same arguments, check the same permissions and limits, and return the same JSON.

## Authentication

Create an API key in the console, or with `apikey_create`, and send it on every request:

```
Authorization: Bearer wk_live_...
```

A key carries scopes: `whatsapp.read`, `whatsapp.manage`, `messages.send`, `templates.manage`, `webhooks.manage`. A tool that needs a scope the key doesn't have returns `403`. MCP clients sign in with OAuth instead and never see a key.

## Requests and responses

- Every tool is `POST /v1/<tool>` with a JSON body of its parameters. Unknown parameters are rejected.
- A success is `200` with the tool's result as JSON.
- An error has a status code and a body like `{"error": {"code": "outside_service_window", "message": "…", "hint": "…"}}`. The `hint` says what to do next.
- Status codes: `400` invalid request, `401` missing or bad key, `403` missing scope or a restriction on the workspace, `404` not found, `409` conflict, `429` over a limit (the `hint` says when to retry), `5xx` our side or Meta's.
- Pass `idempotency_key` to `message_send` so a retry never sends twice.
- `GET https://mcp.waba.cloud/v1/tools` returns every tool with its JSON Schema, for code generation.

## Receiving events

Receive messages and status updates by polling `events_poll` with its cursor, or by registering an HTTPS endpoint with `webhook_create`. Webhooks follow [Standard Webhooks](https://www.standardwebhooks.com): each request carries `webhook-id`, `webhook-timestamp` and `webhook-signature` headers, signed with the endpoint's `whsec_` secret. Failed deliveries are retried with backoff and can be replayed.

| Event | When |
|---|---|
| `message.received` | A customer sent a message to one of your numbers. |
| `message.sent` | Meta accepted an outbound message for delivery. |
| `message.delivered` | An outbound message reached the customer's device. |
| `message.read` | The customer read an outbound message. |
| `message.failed` | An outbound message could not be delivered (see data.errors). |
| `message.echo` | Coexistence: the business sent a message from the WhatsApp Business app. |
| `template.status_updated` | A template was approved, rejected, paused, disabled, … |
| `template.category_updated` | Meta changed (or will change) a template's category. |
| `template.quality_updated` | A template's quality score changed. |
| `phone_number.quality_updated` | A number's quality rating or messaging limit changed. |
| `phone_number.name_updated` | A display name review finished. |
| `whatsapp_account.updated` | Account-level update from Meta (review, restrictions, offboarding, …). |
| `whatsapp_account.disconnected` | The customer removed our access, or the coexistence link broke. |
| `whatsapp_account.alert` | Meta sent an account alert (e.g. messaging limit request denied). |
| `workspace.restricted` | This service restricted part of the account (sending, marketing or templates), automatically or by an operator. data.until says when it lifts. |
| `contact.opted_out` | A customer asked to stop (replied STOP or turned off marketing in WhatsApp). They're on the do-not-contact list for marketing. |
| `contact.opted_in` | A customer who had replied STOP replied START; they're off the do-not-contact list. |
| `whatsapp_account.marketing_messages_onboarded` | The business accepted the Marketing Messages API terms for this WABA; marketing templates now go through it. |
| `message.link_clicked` | A customer tapped a link or button in a marketing message sent through the Marketing Messages API. data.click has Meta's click details (component, click_id, tracking_token). |
| `contact.identity_changed` | WhatsApp gave a customer a new business-scoped user id (they changed number, or their id was regenerated). data.previous_user_id and data.user_id; history and the do-not-contact list follow the new id. |
| `contact.phone_shared` | A customer who uses a username shared their phone number (tapped a request-contact-info button). data.wa_id and data.user_id are now linked. |
| `broadcast.started` | A broadcast started sending (test batch first when it has one). |
| `broadcast.test_completed` | A broadcast's test batch finished; data.outcome is continuing, awaiting_approval or paused, with the test results. |
| `broadcast.paused` | A broadcast paused, by request or automatically (data.by = system) because failures or opt-outs spiked or the number was flagged. data.reason says why. |
| `broadcast.completed` | A broadcast finished; data has the final counts. |
| `broadcast.cancelled` | A broadcast was cancelled; unsent recipients were skipped. |
| `quality.warning` | An early sign that a number or template's quality is slipping (opt-outs, undeliverable numbers, Meta holding back marketing, medium/low rating). data has what to do. At most once per signal per day. |
| `onboarding.completed` | A number finished onboarding and is ready to use. |
| `onboarding.failed` | Onboarding failed (see data.error). |
| `coexistence.contacts_synced` | Coexistence: contacts from the WhatsApp Business app were synced. |
| `coexistence.history_synced` | Coexistence: a chunk of chat history was imported. |
| `webhook.test` | Test event sent by webhook_test. |
| `meta.unhandled` | A Meta webhook field we do not normalise yet; raw value in data. |

## Tools

- **Workspace, console and API keys:** [workspace_get](#workspace-get), [console_login_link](#console-login-link), [apikey_create](#apikey-create), [apikey_list](#apikey-list), [apikey_revoke](#apikey-revoke)
- **Setup and onboarding:** [setup_status](#setup-status), [setup_profile_set](#setup-profile-set), [setup_step_confirm](#setup-step-confirm), [onboarding_start](#onboarding-start), [onboarding_status](#onboarding-status)
- **WhatsApp accounts and numbers:** [whatsapp_account_list](#whatsapp-account-list), [whatsapp_account_get](#whatsapp-account-get), [marketing_messages_status](#marketing-messages-status), [marketing_messages_onboard](#marketing-messages-onboard), [whatsapp_account_disconnect](#whatsapp-account-disconnect), [phone_list](#phone-list), [phone_get](#phone-get), [phone_request_code](#phone-request-code), [phone_verify_code](#phone-verify-code), [phone_register](#phone-register), [phone_get_pin](#phone-get-pin), [phone_deregister](#phone-deregister), [profile_get](#profile-get), [profile_update](#profile-update), [coex_sync](#coex-sync)
- **Templates:** [template_list](#template-list), [template_get](#template-get), [template_validate](#template-validate), [template_create](#template-create), [template_edit](#template-edit), [template_delete](#template-delete)
- **Messages and media:** [message_send](#message-send), [message_mark_read](#message-mark-read), [message_list](#message-list), [message_get](#message-get), [media_upload](#media-upload), [media_get](#media-get)
- **Contacts, consent and do-not-contact:** [contact_get](#contact-get), [contact_record_opt_in](#contact-record-opt-in), [contact_import_opt_ins](#contact-import-opt-ins), [suppression_add](#suppression-add), [suppression_remove](#suppression-remove), [suppression_list](#suppression-list), [contact_erase](#contact-erase)
- **Broadcasts:** [broadcast_create](#broadcast-create), [broadcast_add_recipients](#broadcast-add-recipients), [broadcast_start](#broadcast-start), [broadcast_get](#broadcast-get), [broadcast_list](#broadcast-list), [broadcast_recipients](#broadcast-recipients), [broadcast_pause](#broadcast-pause), [broadcast_resume](#broadcast-resume), [broadcast_cancel](#broadcast-cancel)
- **Quality:** [quality_report](#quality-report)
- **Events and webhooks:** [events_poll](#events-poll), [event_get](#event-get), [webhook_event_types](#webhook-event-types), [webhook_create](#webhook-create), [webhook_list](#webhook-list), [webhook_get](#webhook-get), [webhook_update](#webhook-update), [webhook_delete](#webhook-delete), [webhook_rotate_secret](#webhook-rotate-secret), [webhook_test](#webhook-test), [webhook_deliveries](#webhook-deliveries), [webhook_delivery_attempts](#webhook-delivery-attempts), [webhook_replay](#webhook-replay)

## Workspace, console and API keys

### workspace_get

**Get workspace overview.** Who you are signed in as, what is connected (WABAs, numbers, webhooks), your sending limits and today's usage, any restriction on the workspace, and the recommended next step. Call this first.

`POST /v1/workspace_get` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/workspace_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### console_login_link

**Get a console sign-in link.** A one-time link that opens the waba.cloud console (numbers, logs, webhooks, API keys, team) already signed in. Use it whenever the person wants to see or check something in the console. Connected through OAuth: returns the link for the person who connected; give it to them. Connected with an API key: pass `email` of a workspace member and we email them the link. Links work once and expire in 10 minutes.

`POST /v1/console_login_link` · Writes

| Parameter | Type | Description |
|---|---|---|
| `email` | string | Only for API-key connections: the member to email a sign-in link to. |

```
curl https://mcp.waba.cloud/v1/console_login_link \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### apikey_create

**Create API key.** Create an API key for headless use (servers, CI, other agents). The key is shown once; store it securely.

`POST /v1/apikey_create` · Writes

| Parameter | Type | Description |
|---|---|---|
| `name` **required** | string | Label so the human can tell keys apart, e.g. 'support-bot prod'. Up to 80 characters. |

```
curl https://mcp.waba.cloud/v1/apikey_create \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "order_shipped"
}'
```

### apikey_list

**List API keys.** List active API keys (prefix only).

`POST /v1/apikey_list` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/apikey_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### apikey_revoke

**Revoke API key.** Permanently revoke an API key. Anything using it stops working immediately.

`POST /v1/apikey_revoke` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `key_id` **required** | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/apikey_revoke \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key_id": "key_…",
  "confirm": true
}'
```

## Setup and onboarding

### setup_status

**Setup checklist.** The setup checklist for this workspace, worked out from live data: each step, who does it (agent, human or Meta), whether it's done, and exactly what to do next. Call it at the start of every setup conversation and after each step; follow `next`. Human steps include the words to tell them.

`POST /v1/setup_status` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/setup_status \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### setup_profile_set

**Save setup answers.** Save what you learned from the human during setup: use cases, which number and its situation, country, business name, website, where contacts and consent come from, and their personal WhatsApp number for the test. Merges with earlier answers. Returns the updated checklist.

`POST /v1/setup_profile_set` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `use_cases` | "support" \\| "notifications" \\| "marketing" \\| "sales" \\| "other"[] | What WhatsApp is for. notifications = order/appointment/account updates. |
| `number_situation` | "new_number" \\| "on_business_app" \\| "on_personal_app" \\| "on_other_provider" | new_number: not on WhatsApp. on_business_app: on the WhatsApp Business app (→ coexistence). on_personal_app: on personal WhatsApp. on_other_provider: on another API provider. |
| `country` | string | Main country of their customers, e.g. 'IN', 'BR', 'US'. Up to 60 characters. |
| `business_name` | string | Up to 120 characters. |
| `website` | string | Up to 200 characters. |
| `industry` | string | Up to 80 characters. |
| `contacts_source` | string | Where their customer list and marketing consent live, e.g. 'Shopify customers with accepts_marketing'. Up to 300 characters. |
| `test_wa_id` | string | The human's own WhatsApp number, for the test message. Up to 20 characters. |

```
curl https://mcp.waba.cloud/v1/setup_profile_set \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### setup_step_confirm

**Confirm or skip a setup step.** Mark a setup step we can't see through the API as done or skipped, after the human confirms it (e.g. they added a payment method). 'reset' undoes it. Only these steps: business_profile, payment_method, business_verification, contacts, receive_events, test_message. Don't mark a step done the human hasn't confirmed.

`POST /v1/setup_step_confirm` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `step` **required** | "business_profile" \\| "payment_method" \\| "business_verification" \\| "contacts" \\| "receive_events" \\| "test_message" |  |
| `status` **required** | "done" \\| "skipped" \\| "reset" |  |
| `note` | string | What the human said, e.g. 'added Visa in WhatsApp Manager'. Up to 300 characters. |

```
curl https://mcp.waba.cloud/v1/setup_step_confirm \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "step": "business_profile",
  "status": "done"
}'
```

### onboarding_start

**Start WhatsApp onboarding.** Create a secure signup link for connecting a WhatsApp number. The HUMAN must open it and log into Facebook (Meta requires this). mode=cloud_api: a number not currently on WhatsApp (or one they will move off the app). mode=coexistence: keep using the WhatsApp Business app on the phone AND use the API on the same number (syncs contacts and up to 6 months of chats).

`POST /v1/onboarding_start` · scope `whatsapp.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `mode` **required** | "cloud_api" \\| "coexistence" |  |

```
curl https://mcp.waba.cloud/v1/onboarding_start \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "cloud_api"
}'
```

### onboarding_status

**Check onboarding status.** Status of an onboarding link: pending → in_progress → completed (or failed/cancelled/expired), with each step taken.

`POST /v1/onboarding_status` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `onboarding_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/onboarding_status \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "onboarding_id": "onboarding_…"
}'
```

## WhatsApp accounts and numbers

### whatsapp_account_list

**List WhatsApp Business Accounts.** Connected WABAs and their numbers.

`POST /v1/whatsapp_account_list` · scope `whatsapp.read` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/whatsapp_account_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### whatsapp_account_get

**Get WABA details.** Live details from Meta: review status, business verification, currency, timezone.

`POST /v1/whatsapp_account_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |

```
curl https://mcp.waba.cloud/v1/whatsapp_account_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398"
}'
```

### marketing_messages_status

**Marketing Messages API status.** Whether this WABA sends marketing templates through Meta's Marketing Messages API (better delivery, click reporting) or Cloud API, with the next step. Meta is retiring marketing on Cloud API (new WABAs from 2027-04-13, all WABAs from 2027-10-13), so every business that sends marketing should onboard.

`POST /v1/marketing_messages_status` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |

```
curl https://mcp.waba.cloud/v1/marketing_messages_status \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398"
}'
```

### marketing_messages_onboard

**Start Marketing Messages API onboarding.** Asks Meta to email the business's full-control admins the Marketing Messages API terms. The human must accept them in WhatsApp Manager; whatsapp_account.marketing_messages_onboarded fires when they do. After that, marketing templates are routed through the Marketing Messages API automatically. Tell the human an email from Meta is coming before you call this.

`POST /v1/marketing_messages_onboard` · scope `whatsapp.manage` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |

```
curl https://mcp.waba.cloud/v1/marketing_messages_onboard \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398"
}'
```

### whatsapp_account_disconnect

**Disconnect WABA.** Stop managing this WABA: unsubscribes our app and stops webhooks. Numbers stop working through this service. The customer can reconnect via onboarding_start.

`POST /v1/whatsapp_account_disconnect` · scope `whatsapp.manage` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/whatsapp_account_disconnect \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398",
  "confirm": true
}'
```

### phone_list

**List phone numbers.** All numbers in the workspace with mode (cloud_api/coexistence), status, quality rating and messaging limit. refresh=true pulls fresh data from Meta.

`POST /v1/phone_list` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `refresh` | boolean |  |

```
curl https://mcp.waba.cloud/v1/phone_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### phone_get

**Get phone number health.** Live status of one number from Meta: quality rating, messaging limit, throughput, display name review, verification.

`POST /v1/phone_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/phone_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### phone_request_code

**Request verification code.** Send an SMS or voice verification code to the number. Only needed if onboarding reported the number is unverified.

`POST /v1/phone_request_code` · scope `whatsapp.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `method` | "SMS" \\| "VOICE" | Default `"SMS"`. |
| `language` | string | Default `"en_US"`. |

```
curl https://mcp.waba.cloud/v1/phone_request_code \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### phone_verify_code

**Verify phone code.** Submit the code the human received.

`POST /v1/phone_verify_code` · scope `whatsapp.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `code` **required** | string | Up to 10 characters. |

```
curl https://mcp.waba.cloud/v1/phone_verify_code \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922",
  "code": "123456"
}'
```

### phone_register

**Register number on Cloud API.** Activate a verified Cloud API number and set its two-step verification PIN (generated and stored encrypted unless you pass one). Not for coexistence numbers.

`POST /v1/phone_register` · scope `whatsapp.manage` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `pin` | string |  |

```
curl https://mcp.waba.cloud/v1/phone_register \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### phone_get_pin

**Reveal two-step PIN.** Return the stored two-step verification PIN, e.g. when the human needs to re-register the number elsewhere. Audited.

`POST /v1/phone_get_pin` · scope `whatsapp.manage` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/phone_get_pin \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### phone_deregister

**Deregister number.** Take the number off Cloud API. It stops sending and receiving through this service until registered again.

`POST /v1/phone_deregister` · scope `whatsapp.manage` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/phone_deregister \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922",
  "confirm": true
}'
```

### profile_get

**Get business profile.** The WhatsApp business profile customers see (about, description, address, email, websites, vertical, photo).

`POST /v1/profile_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/profile_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### profile_update

**Update business profile.** Update the business profile. Not available for coexistence numbers (edit in the WhatsApp Business app instead).

`POST /v1/profile_update` · scope `whatsapp.manage` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `about` | string | Up to 139 characters. |
| `description` | string | Up to 512 characters. |
| `address` | string | Up to 256 characters. |
| `email` | string |  |
| `websites` | string[] | Up to 2 items. |
| `vertical` | "UNDEFINED" \\| "OTHER" \\| "AUTO" \\| "BEAUTY" \\| "APPAREL" \\| "EDU" \\| "ENTERTAIN" \\| "EVENT_PLAN" \\| "FINANCE" \\| "GROCERY" \\| "GOVT" \\| "HOTEL" \\| "HEALTH" \\| "NONPROFIT" \\| "PROF_SERVICES" \\| "RETAIL" \\| "TRAVEL" \\| "RESTAURANT" \\| "NOT_A_BIZ" |  |

```
curl https://mcp.waba.cloud/v1/profile_update \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

### coex_sync

**Sync WhatsApp Business app data.** Coexistence only: request contact and/or chat-history sync from the WhatsApp Business app. Meta allows each once, within 24h of onboarding (onboarding starts both automatically).

`POST /v1/coex_sync` · scope `whatsapp.manage` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `what` | "contacts" \\| "history"[] | Default `["contacts","history"]`. |

```
curl https://mcp.waba.cloud/v1/coex_sync \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922"
}'
```

## Templates

### template_list

**List templates.** Templates on a WABA with status (APPROVED, PENDING, REJECTED + reason, PAUSED), category, quality and components.

`POST /v1/template_list` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `status` | string |  |
| `name` | string |  |
| `limit` | integer | 1 to 100. |
| `after` | string |  |

```
curl https://mcp.waba.cloud/v1/template_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398"
}'
```

### template_get

**Get template.** One template's current status, rejection reason and components.

`POST /v1/template_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `template_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/template_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398",
  "template_id": "1234567890123456"
}'
```

### template_validate

**Validate template.** Check a template against Meta's common rejection rules and preview the exact payload, without submitting. Use before template_create.

`POST /v1/template_validate` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `name` **required** | string | lowercase_with_underscores |
| `language` **required** | string | Locale, e.g. en_US |
| `category` **required** | "MARKETING" \\| "UTILITY" \\| "AUTHENTICATION" |  |
| `parameter_format` | "named" \\| "positional" | Auto-detected from the body if omitted. |
| `header` | object |  |
| `body` **required** | object |  |
| `footer` | object |  |
| `buttons` | object[] | QUICK_REPLY {text} \| URL {text,url,example?} \| PHONE_NUMBER {text,phone_number} \| COPY_CODE {example} \| OTP {otp_type} |
| `components` | any[] | Advanced: raw Meta components (overrides header/body/footer/buttons) |
| `allow_category_change` | boolean |  |

```
curl https://mcp.waba.cloud/v1/template_validate \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "order_shipped",
  "language": "en_US",
  "category": "UTILITY",
  "body": {
    "text": "Hi {{1}}, order {{2}} has shipped.",
    "examples": [
      "Asha",
      "1042"
    ]
  }
}'
```

### template_create

**Submit template for review.** Submit a new message template to Meta for approval. Validates first and refuses obvious rejections. Approval usually takes minutes (up to 24h); watch template.status_updated.

`POST /v1/template_create` · scope `templates.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `name` **required** | string | lowercase_with_underscores |
| `language` **required** | string | Locale, e.g. en_US |
| `category` **required** | "MARKETING" \\| "UTILITY" \\| "AUTHENTICATION" |  |
| `parameter_format` | "named" \\| "positional" | Auto-detected from the body if omitted. |
| `header` | object |  |
| `body` **required** | object |  |
| `footer` | object |  |
| `buttons` | object[] | QUICK_REPLY {text} \| URL {text,url,example?} \| PHONE_NUMBER {text,phone_number} \| COPY_CODE {example} \| OTP {otp_type} |
| `components` | any[] | Advanced: raw Meta components (overrides header/body/footer/buttons) |
| `allow_category_change` | boolean |  |

```
curl https://mcp.waba.cloud/v1/template_create \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398",
  "name": "order_shipped",
  "language": "en_US",
  "category": "UTILITY",
  "body": {
    "text": "Hi {{1}}, order {{2}} has shipped and arrives {{3}}.",
    "examples": [
      "Asha",
      "1042",
      "Friday"
    ]
  }
}'
```

### template_edit

**Edit template.** Edit an APPROVED, REJECTED or PAUSED template (components replaced in full). Approved templates: 1 edit/24h, 10/30 days; category is locked.

`POST /v1/template_edit` · scope `templates.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `template_id` **required** | string |  |
| `category` | "MARKETING" \\| "UTILITY" \\| "AUTHENTICATION" |  |
| `header` | object |  |
| `body` | object |  |
| `footer` | object |  |
| `buttons` | object[] | QUICK_REPLY {text} \| URL {text,url,example?} \| PHONE_NUMBER {text,phone_number} \| COPY_CODE {example} \| OTP {otp_type} |
| `components` | any[] | Advanced: raw Meta components (overrides header/body/footer/buttons) |

```
curl https://mcp.waba.cloud/v1/template_edit \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398",
  "template_id": "1234567890123456"
}'
```

### template_delete

**Delete template.** Delete a template by name (all languages) or one language via template_id. Approved names can't be reused for 30 days.

`POST /v1/template_delete` · scope `templates.manage` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `waba_id` **required** | string | WhatsApp Business Account id (from whatsapp_account_list). |
| `name` **required** | string |  |
| `template_id` | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/template_delete \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "waba_id": "102290129340398",
  "name": "order_shipped",
  "confirm": true
}'
```

## Messages and media

### message_send

**Send WhatsApp message.** Send a message from one of your numbers. Free-form types (text, media, interactive, location) need an open 24h service window (customer messaged in the last 24h); otherwise send an APPROVED template. Marketing templates need a recorded opt-in. Pass idempotency_key so retries never double-send.

`POST /v1/message_send` · scope `messages.send` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |
| `to` **required** | string | Recipient: international phone number (e.g. +14155550123), or the WhatsApp user id from their message (user_id, e.g. US.13491208655302741918) for people who only share a username. Use user ids exactly as received. |
| `message` **required** | object | One of: {type:'text', text} \| {type:'template', template_name, language, body_params?: string[]\|{name:value}, header_param?, button_url_params?} \| {type:'image'\|'video'\|'audio'\|'document'\|'sticker', media_id\|link, caption?, filename?} \| {type:'interactive', interactive} \| {type:'location', latitude, longitude, name?, address?} \| {type:'reaction', message_id, emoji} |
| `reply_to` | string | wamid of a message to reply to in-thread |
| `idempotency_key` | string | Up to 200 characters. |
| `override_suppression_reason` | string | Only when the human explicitly insists on messaging someone on the do-not-contact list, after you warned them. Their reason, in their words. Logged. Up to 300 characters. |
| `message_activity_sharing` | boolean | Marketing templates sent through the Marketing Messages API only: let Meta use read/click activity to optimise delivery. Omit to use the WABA's default. |

```
curl https://mcp.waba.cloud/v1/message_send \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "+14155550123",
  "message": {
    "type": "text",
    "text": "Your order has shipped."
  },
  "idempotency_key": "order-1042-shipped"
}'
```

### message_mark_read

**Mark message read.** Mark an inbound message as read (blue ticks), optionally showing a typing indicator while you prepare a reply.

`POST /v1/message_mark_read` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` **required** | string |  |
| `wamid` **required** | string |  |
| `show_typing` | boolean |  |

```
curl https://mcp.waba.cloud/v1/message_mark_read \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number_id": "106540352242922",
  "wamid": "…"
}'
```

### message_list

**List messages.** Recent messages (inbound, outbound and coexistence echoes), newest first. Filter by number and/or contact.

`POST /v1/message_list` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` | string |  |
| `wa_id` | string |  |
| `before` | string | ISO timestamp for paging |
| `limit` | integer | 1 to 100. |

```
curl https://mcp.waba.cloud/v1/message_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### message_get

**Get message.** One message by our id or Meta wamid, with delivery status, errors and pricing.

`POST /v1/message_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/message_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "…"
}'
```

### media_upload

**Upload media.** Upload an image, video, audio or document from a public URL to WhatsApp, returning a media_id for message_send.

`POST /v1/media_upload` · scope `messages.send` · Writes

| Parameter | Type | Description |
|---|---|---|
| `url` **required** | string |  |
| `filename` | string |  |
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |

```
curl https://mcp.waba.cloud/v1/media_upload \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hooks/whatsapp"
}'
```

### media_get

**Get media info.** Metadata and an authenticated download URL for media received in a message.

`POST /v1/media_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `media_id` **required** | string |  |
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |

```
curl https://mcp.waba.cloud/v1/media_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "media_id": "media_…"
}'
```

## Contacts, consent and do-not-contact

### contact_get

**Get contact & service window.** Whether the 24h service window is open for a contact (what you're allowed to send), opt-in status, and profile name.

`POST /v1/contact_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `wa_id` **required** | string |  |
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |

```
curl https://mcp.waba.cloud/v1/contact_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "wa_id": "14155550123"
}'
```

### contact_record_opt_in

**Record marketing opt-in/out.** Record that a person agreed (or withdrew agreement) to receive WhatsApp marketing from this business. Only record consent that actually happened; include where it came from.

`POST /v1/contact_record_opt_in` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `wa_id` **required** | string |  |
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |
| `source` **required** | string | Where consent was collected, e.g. 'checkout checkbox 2026-11-30', 'replied YES to SMS' |
| `opted_in` | boolean | Default `true`. |

```
curl https://mcp.waba.cloud/v1/contact_record_opt_in \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "wa_id": "14155550123",
  "source": "checkout_checkbox"
}'
```

### contact_import_opt_ins

**Import marketing opt-ins.** Record marketing consent collected elsewhere (checkout checkbox, signup form, SMS keyword) for up to 1000 people per call. Each needs the source of consent; include opted_in_at when known. People on the do-not-contact list are skipped and listed. Only import people who actually agreed to WhatsApp marketing from this business.

`POST /v1/contact_import_opt_ins` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `contacts` **required** | object[] | Up to 1000 items. |

```
curl https://mcp.waba.cloud/v1/contact_import_opt_ins \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": [
    {
      "wa_id": "+14155550123",
      "source": "checkout_checkbox"
    }
  ]
}'
```

### suppression_add

**Add to do-not-contact list.** Add people to the workspace's do-not-contact list (all numbers), up to 1000 per call. scope=marketing blocks marketing templates; scope=all blocks everything the business starts (replies within 24h of their message stay allowed). Use for imported unsubscribe lists, complaints, people who asked in conversation, or the business's own do-not-contact list. STOP replies are added automatically.

`POST /v1/suppression_add` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `wa_ids` **required** | string[] | Up to 1000 items. |
| `scope` | "marketing" \\| "all" | Default `"all"`. |
| `reason` **required** | "opted_out" \\| "blocked" \\| "complaint" \\| "imported" \\| "manual" | opted_out: they asked to stop. complaint: they complained. imported: from the business's own list. manual: other. |
| `source` **required** | string | Where this came from, e.g. 'Mailchimp unsubscribes 2026-11', 'asked in chat 2026-12-01'. Up to 200 characters. |

```
curl https://mcp.waba.cloud/v1/suppression_add \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "wa_ids": [
    "14155550123"
  ],
  "reason": "opted_out",
  "source": "checkout_checkbox"
}'
```

### suppression_remove

**Remove from do-not-contact list.** Take someone off the do-not-contact list. Only when they asked to hear from the business again (or were added by mistake); say why. Logged.

`POST /v1/suppression_remove` · scope `messages.send` · Writes

| Parameter | Type | Description |
|---|---|---|
| `wa_id` **required** | string |  |
| `reason` **required** | string | Why, e.g. 'customer re-subscribed on website 2026-12-02'. Up to 300 characters. |

```
curl https://mcp.waba.cloud/v1/suppression_remove \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "wa_id": "14155550123",
  "reason": "Customer asked by email to stop marketing messages"
}'
```

### suppression_list

**List do-not-contact list.** The workspace's do-not-contact list, newest first, with why and since when each person is on it. Filter by reason or look up one number. Page with before=next_before.

`POST /v1/suppression_list` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `wa_id` | string |  |
| `reason` | "opted_out" \\| "blocked" \\| "complaint" \\| "imported" \\| "erased" \\| "manual" |  |
| `include_removed` | boolean |  |
| `before` | string |  |
| `limit` | integer | 1 to 1000. |

```
curl https://mcp.waba.cloud/v1/suppression_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### contact_erase

**Erase a contact (forget me).** For a person's deletion request: redacts their message content, events and logged request bodies, deletes their contact records, and adds them to the do-not-contact list (all) so they're never messaged again. Cannot be undone. Copies already sent to webhooks are not affected.

`POST /v1/contact_erase` · scope `messages.send` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `wa_id` **required** | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/contact_erase \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "wa_id": "14155550123",
  "confirm": true
}'
```

## Broadcasts

### broadcast_create

**Create broadcast (draft).** Draft a broadcast: one APPROVED template to many people, sent by the server. It sends a test batch first (default 5% of the list, 20-100 people, for lists of 100 or more), waits to see how it lands, then ramps up within the account's limits. It pauses itself if failures or opt-outs spike. The do-not-contact list, opt-in rule and daily limits apply to each person. Returns a preflight (who will be skipped, how many days it takes). Nothing is sent until broadcast_start. You decide who gets it; only include people who expect to hear from this business.

`POST /v1/broadcast_create` · scope `messages.send` · Writes

| Parameter | Type | Description |
|---|---|---|
| `name` **required** | string | Label for the human, e.g. 'Diwali offer – repeat buyers' Up to 120 characters. |
| `template_name` **required** | string |  |
| `language` **required** | string | Template language code, e.g. en_US |
| `phone_number_id` | string | phone_number_id to use. Optional when the workspace has exactly one number. |
| `recipients` | object[] | Up to 5000 here; add more with broadcast_add_recipients Up to 5000 items. |
| `test_size` | integer | People in the test batch; 0 = no test. Default: 5% (20-100) for lists of 100+. 0 to 1000. |
| `test_wait_minutes` | integer | How long to watch the test batch before continuing. Default 15. 1 to 1440. |
| `approve_after_test` | boolean | Stop after the test until broadcast_resume (show the human the test results first). |
| `rules` | object | When to pause automatically. Defaults: 15% failures, 3% opt-outs, judged after 30 sends. |

```
curl https://mcp.waba.cloud/v1/broadcast_create \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Spring sale, repeat buyers",
  "template_name": "spring_sale",
  "language": "en_US",
  "recipients": [
    {
      "wa_id": "+14155550123",
      "body_params": [
        "Asha"
      ]
    }
  ]
}'
```

### broadcast_add_recipients

**Add broadcast recipients.** Add up to 5000 people per call to a draft or scheduled broadcast (100,000 max). Duplicates are ignored. Returns counts of added, duplicate and invalid numbers.

`POST /v1/broadcast_add_recipients` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |
| `recipients` **required** | object[] | Up to 5000 items. |

```
curl https://mcp.waba.cloud/v1/broadcast_add_recipients \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "bc_06h3fcz2qk9x",
  "recipients": [
    {
      "wa_id": "+14155550123",
      "body_params": [
        "Asha"
      ]
    },
    {
      "wa_id": "+919876543210",
      "body_params": [
        "Ravi"
      ]
    }
  ]
}'
```

### broadcast_start

**Start broadcast.** Start a draft broadcast now, or at scheduled_at. Show the human the preflight (who gets it, who's skipped, how long it takes, and that Meta bills them) and get a yes first.

`POST /v1/broadcast_start` · scope `messages.send` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |
| `scheduled_at` | string | ISO date-time to start later |

```
curl https://mcp.waba.cloud/v1/broadcast_start \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…"
}'
```

### broadcast_get

**Get broadcast.** Status, progress and results of a broadcast: sent, delivered, read, failed, skipped, replied, opted out, the rates, and the test batch results. If it's paused, pause_reason says why.

`POST /v1/broadcast_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/broadcast_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…"
}'
```

### broadcast_list

**List broadcasts.** This workspace's broadcasts, newest first, with progress.

`POST /v1/broadcast_list` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `status` | "draft" \\| "scheduled" \\| "testing" \\| "awaiting_approval" \\| "running" \\| "paused" \\| "completed" \\| "cancelled" |  |
| `limit` | integer | 1 to 100. |

```
curl https://mcp.waba.cloud/v1/broadcast_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### broadcast_recipients

**List broadcast recipients.** Per-person results of a broadcast. Filter status=failed or skipped to see why (reason/detail). Page with after=next_after.

`POST /v1/broadcast_recipients` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |
| `status` | "pending" \\| "sending" \\| "sent" \\| "delivered" \\| "read" \\| "failed" \\| "skipped" |  |
| `after` | integer | -9007199254740991 to 9007199254740991. |
| `limit` | integer | 1 to 1000. |

```
curl https://mcp.waba.cloud/v1/broadcast_recipients \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…"
}'
```

### broadcast_pause

**Pause broadcast.** Pause a running, testing or scheduled broadcast. Nothing more is sent until broadcast_resume.

`POST /v1/broadcast_pause` · scope `messages.send` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |
| `reason` | string | Up to 300 characters. |

```
curl https://mcp.waba.cloud/v1/broadcast_pause \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…"
}'
```

### broadcast_resume

**Resume broadcast.** Resume a paused broadcast, or continue one awaiting approval after its test batch. If it paused itself, tell the human the reason and get a yes first. Resumes at half the previous rate.

`POST /v1/broadcast_resume` · scope `messages.send` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/broadcast_resume \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…"
}'
```

### broadcast_cancel

**Cancel broadcast.** Stop a broadcast for good. People not yet messaged are skipped. Cannot be undone.

`POST /v1/broadcast_cancel` · scope `messages.send` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `broadcast_id` **required** | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/broadcast_cancel \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "broadcast_id": "broadcast_…",
  "confirm": true
}'
```

## Quality

### quality_report

**Quality report.** How messages are landing and whether a number is at risk: early warnings (with what to do), each number's rating, limit and daily trend, and per-template sent/delivered/read/replied/opted-out rates. Check it before and after a big send, and whenever a quality.warning event arrives.

`POST /v1/quality_report` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `phone_number_id` | string |  |
| `days` | integer | Window, default 7 1 to 30. |

```
curl https://mcp.waba.cloud/v1/quality_report \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Events and webhooks

### events_poll

**Poll events.** Read new events (inbound messages, delivery statuses, template reviews, quality changes, onboarding results) after a cursor. Store next_cursor and pass it as `after` next time. Omit `after` to start from the beginning.

`POST /v1/events_poll` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `after` | string |  |
| `types` | string[] | Filter, e.g. ['message.received'] or ['message.*'] |
| `phone_number_id` | string |  |
| `limit` | integer | 1 to 200. |

```
curl https://mcp.waba.cloud/v1/events_poll \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "types": [
    "message.received"
  ],
  "limit": 50
}'
```

### event_get

**Get event.** One stored event by id.

`POST /v1/event_get` · scope `whatsapp.read` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `event_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/event_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "event_id": "event_…"
}'
```

### webhook_event_types

**List webhook event types.** The catalog of event types you can subscribe a webhook to (wildcards like message.* work).

`POST /v1/webhook_event_types` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/webhook_event_types \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### webhook_create

**Create webhook endpoint.** Register an HTTPS URL to receive events. Every event is stored and delivered with retries (≈3 days of backoff) and can be replayed. Payloads are signed per the Standard Webhooks spec (headers webhook-id, webhook-timestamp, webhook-signature). The signing secret is returned once.

`POST /v1/webhook_create` · scope `webhooks.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `url` **required** | string |  |
| `event_types` | string[] | Default: all events |
| `phone_number_ids` | string[] | Default: all numbers |
| `description` | string | Up to 200 characters. |

```
curl https://mcp.waba.cloud/v1/webhook_create \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hooks/whatsapp",
  "event_types": [
    "message.received",
    "message.failed"
  ]
}'
```

### webhook_list

**List webhook endpoints.** Endpoints with status and failure counters.

`POST /v1/webhook_list` · scope `webhooks.manage` · Read-only · Safe to retry

No parameters.

```
curl https://mcp.waba.cloud/v1/webhook_list \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### webhook_get

**Get webhook endpoint.** Endpoint config plus delivery counts for the last 7 days.

`POST /v1/webhook_get` · scope `webhooks.manage` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/webhook_get \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…"
}'
```

### webhook_update

**Update webhook endpoint.** Change URL, event filter or description; pause (events queue up, nothing is lost) or resume (status=active, also re-enables an auto-disabled endpoint).

`POST /v1/webhook_update` · scope `webhooks.manage` · Writes · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |
| `url` | string |  |
| `event_types` | string[] |  |
| `phone_number_ids` | string[] |  |
| `description` | string | Up to 200 characters. |
| `status` | "active" \\| "paused" |  |

```
curl https://mcp.waba.cloud/v1/webhook_update \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…"
}'
```

### webhook_delete

**Delete webhook endpoint.** Delete the endpoint and cancel its pending deliveries. Stored events remain available via events_poll.

`POST /v1/webhook_delete` · scope `webhooks.manage` · Changes things outside waba.cloud; can't be undone

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |
| `confirm` **required** | true | Must be true. Confirms you understand this cannot be undone. |

```
curl https://mcp.waba.cloud/v1/webhook_delete \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…",
  "confirm": true
}'
```

### webhook_rotate_secret

**Rotate webhook secret.** Issue a new signing secret. For 24h every delivery carries signatures from both old and new secrets so the receiver can switch without downtime.

`POST /v1/webhook_rotate_secret` · scope `webhooks.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/webhook_rotate_secret \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…"
}'
```

### webhook_test

**Send test webhook.** Deliver a webhook.test event to the endpoint right now and report the HTTP result.

`POST /v1/webhook_test` · scope `webhooks.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/webhook_test \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…"
}'
```

### webhook_deliveries

**List webhook deliveries.** Delivery log: which events were delivered, pending retry, or failed, with last HTTP status/error.

`POST /v1/webhook_deliveries` · scope `webhooks.manage` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` | string |  |
| `status` | "pending" \\| "succeeded" \\| "failed" \\| "cancelled" |  |
| `event_id` | string |  |
| `limit` | integer | 1 to 200. |

```
curl https://mcp.waba.cloud/v1/webhook_deliveries \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### webhook_delivery_attempts

**Inspect delivery attempts.** Every attempt for one delivery: status code, latency, error and the start of the receiver's response.

`POST /v1/webhook_delivery_attempts` · scope `webhooks.manage` · Read-only · Safe to retry

| Parameter | Type | Description |
|---|---|---|
| `delivery_id` **required** | string |  |

```
curl https://mcp.waba.cloud/v1/webhook_delivery_attempts \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "delivery_id": "delivery_…"
}'
```

### webhook_replay

**Replay webhook events.** Re-deliver stored events to an endpoint: specific event_ids, or (default) everything that failed in a time window (default: last 3 days). Set only_failed=false to resend all matching events.

`POST /v1/webhook_replay` · scope `webhooks.manage` · Writes

| Parameter | Type | Description |
|---|---|---|
| `endpoint_id` **required** | string |  |
| `event_ids` | string[] |  |
| `since` | string | ISO timestamp |
| `until` | string | ISO timestamp |
| `only_failed` | boolean |  |

```
curl https://mcp.waba.cloud/v1/webhook_replay \
  -H "Authorization: Bearer $WABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "endpoint_id": "endpoint_…"
}'
```

