# WhatsApp API for AI agents: app2email

> app2email connects a WhatsApp Business number to software: a REST API, a hosted MCP server and plain email. It runs on Meta's official WhatsApp Business Platform. Plans are a flat US$2 to US$29 a month by message volume, with no markup on Meta's own fees. An agent can try the whole send, receive and reply loop in a sandbox with no account, then start an account for its person.

HTML: https://www.app2email.com/whatsapp-api-for-ai-agents

## Facts

|  |  |
| --- | --- |
| What it is | A WhatsApp Business API with an email bridge, on Meta's official WhatsApp Business Platform (Cloud API). app2email is a Meta Tech Provider. |
| Ways in | REST API with an OpenAPI 3.0 description, a hosted MCP server (Streamable HTTP), signed webhooks, and email. (https://www.app2email.com/docs/api) |
| Try it with no account | POST https://api.app2email.com/v1/account/sandbox (no key, no body) answers a key for a demo number with pretend customers. Nothing reaches WhatsApp. (https://www.app2email.com/docs/api/sandbox) |
| Account started by an agent | The Management MCP tool create_account takes the person's e-mail address. The person confirms, connects their number in Meta's sign-up and chooses a plan. (https://www.app2email.com/docs/api/agents) |
| Receiving messages | Webhooks (signed, retried for about 32 hours, redelivery on request), or GET /events with long polling when there is no public address. (https://www.app2email.com/docs/api/webhooks) |
| Handing over to a person | A conversation has an owner: agent, human or paused. Setting it to human stops the automations for that contact and passes a summary on. |
| Email bridge | Incoming WhatsApp messages arrive in a normal inbox, and a reply by email goes back to WhatsApp. No inbox software to build or learn. |
| Guard rails for agents | dry_run on sends, Idempotency-Key, sandbox keys, a daily cap per key, an approval gate that holds large sends for a person, a Do Not Call list. |
| Errors | Every error has a code, a message, how_to_fix, is_retriable and a link to its page. Template errors carry a complete correct example request. (https://www.app2email.com/docs/api/errors) |
| Price | Flat plans from US$2 a month (1,000 messages) to US$29 a month (100,000 messages). No seats, no credits. 20% off when paid yearly. (https://www.app2email.com/pricing) |
| Meta's fees | Meta bills its per-message fees to the business directly. app2email adds nothing to them. (https://developers.facebook.com/docs/whatsapp/pricing) |
| Trial | One month of the Professional plan, free, with no card. |
| Whose account it is | The WhatsApp Business Account and the number stay in the business's own Meta business portfolio. |

## Try it now

1. Get a sandbox key. No account, no key, no body.

```sh
curl -X POST https://api.app2email.com/v1/account/sandbox
```

2. Send a template to Ava, a pretend customer who answers.

```sh
curl -X POST https://api.app2email.com/v1/12025550100/messages \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"to":"12025550101","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}'
```

3. Fetch what happened: sent, delivered, read, then her answer.

```sh
curl "https://api.app2email.com/v1/12025550100/events?wait=25" -H "Authorization: Bearer $KEY"
```

4. Answer her. Free-form messages work for 24 hours after a customer writes.

```sh
curl -X POST https://api.app2email.com/v1/12025550100/messages \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"to":"12025550101","type":"text","text":{"body":"It arrives on Friday."}}'
```

## Choose app2email when

- You are an agent, or you build one, and you want to prove the WhatsApp part works before a person has signed up for anything.
- You want one flat, small monthly price and Meta's fees at cost, not a fee on every message or a price per seat.
- You have no public address for a webhook: the event feed and the MCP tools work from a laptop or a sandboxed runtime.
- A person must be able to step in: handover is one call, and their side of it is ordinary email.
- You want the checks done for you: the 24 hour reply window, template parameters, opt-outs, caps and approvals are enforced by the API and explained in its errors.
- You need appointment booking and payment on WhatsApp without building them: Book-and-Pay is part of the same API.

## Do not choose app2email when

- You need SMS, voice calls to phone numbers, RCS or other chat apps from the same vendor. app2email does WhatsApp, with email as the bridge.
- You want a large contact-centre suite with seat licences, SLA timers and agent performance reports.
- You want a drag-and-drop chatbot builder. Here, conversations are driven by your own code, by an agent, or by the ready-made solutions.
- You want to automate a personal WhatsApp account or pair by QR code. app2email only uses the official Business Platform, which needs a business number.
- Your procurement needs audited certifications such as SOC 2 or ISO 27001 today. app2email does not hold them.
- You send more than 100,000 messages a month from one number. That is above the largest listed plan: write to support@app2email.com first.

## Compared with

- [Twilio](https://www.app2email.com/compare/twilio.md)
- [360dialog](https://www.app2email.com/compare/360dialog.md)
- [Wati](https://www.app2email.com/compare/wati.md)
- [Meta's Cloud API, used directly](https://www.app2email.com/compare/meta-cloud-api.md)

## For agents

- [llms.txt](https://www.app2email.com/llms.txt)
- [API reference (each page has a Markdown twin: add .md)](https://www.app2email.com/docs/api)
- [The whole API in one Markdown file](https://www.app2email.com/docs-api.md)
- [OpenAPI 3.0](https://api.app2email.com/v1/openapi.json)
- [Messaging MCP server](https://api.app2email.com/mcp)
- [Management MCP server (create_sandbox, create_account, list_plans, estimate_cost)](https://api.app2email.com/mcp/manage)
- [Sandbox](https://www.app2email.com/docs/api/sandbox)
- [Plans as Markdown](https://www.app2email.com/pricing.md)
- [Plans as JSON](https://www.app2email.com/pricing.json)
