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.
This page as Markdown: /whatsapp-api-for-ai-agents.md
| 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. More |
| 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. More |
| 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. More |
| Receiving messages | Webhooks (signed, retried for about 32 hours, redelivery on request), or GET /events with long polling when there is no public address. More |
| 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. More |
| 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. More |
| Meta's fees | Meta bills its per-message fees to the business directly. app2email adds nothing to them. More |
| 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. |
Four calls, no account. Nothing reaches WhatsApp: the demo number's customers are pretend ones.
1. Get a sandbox key. No account, no key, no body.
curl -X POST https://api.app2email.com/v1/account/sandbox
2. Send a template to Ava, a pretend customer who answers.
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.
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.
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."}}'