WhatsApp API for AI agents

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

The 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. 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.

Try it now

Four calls, no account. Nothing reaches WhatsApp: the demo number's customers are pretend ones.

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

    curl -X POST https://api.app2email.com/v1/account/sandbox
  2. 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. 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. 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."}}'

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: Twilio is a communications API for developers: WhatsApp next to SMS, voice and email, priced per message.
  • 360dialog: 360dialog sells WhatsApp API access by the number, with no markup on Meta's fees, and a partner platform for companies that resell it.
  • Wati: Wati is a team inbox for WhatsApp with chatbots and broadcasts, priced per plan with a number of users included.
  • Meta's Cloud API, used directly: Meta's Cloud API is the WhatsApp Business Platform itself. Every provider, app2email included, sends through it. Using it directly means building and hosting what sits around it.

For agents