---
title: "WhatsApp API for AI startups: give your agent WhatsApp"
description: "How AI startups give their agent WhatsApp with Spaces: each user connects their own account, the agent reads and replies through one MCP server, safely."
url: https://www.spacesos.com/blog/whatsapp-api-for-ai-startups
author: "Bhavya Barot"
published: "2026-12-04"
modified: "2026-12-04"
keywords: "WhatsApp API for AI agents,WhatsApp API for AI startups,WhatsApp MCP server,give AI agent WhatsApp,messaging layer for AI agents"
---

AI agents4 Dec 20267 min read

# WhatsApp API for AI startups: give your agent WhatsApp for every user

By [Bhavya Barot](https://www.linkedin.com/in/bhavyabarot/) · Updated 4 Dec 2026

Your agent is only as useful as the inboxes it can reach, and your users’ customers write on WhatsApp.

This guide shows how AI startups give their agent WhatsApp with Spaces: how each user connects, how the agent listens and replies, how accounts and the agent are kept safe, and what it costs.

Key takeaways

- Users judge an AI agent on what it gets done.
- Before you choose, it helps to know what building on WhatsApp Business API directly involves.
- Every endpoint for users, keys, connect links, caps, webhooks and usage is at /docs/partners.
- An agent that only acts when asked misses the customer who wrote ten minutes ago.
- New accounts start lower and warm up over four weeks.

1. ### A customer writes
  On WhatsApp, any time of day.
2. ### Spaces passes it on
  With limits that keep the account safe.
3. ### Your AI agent replies
  In the same chat, in your words. Hard ones go to you.

[Start free](https://app.spacesos.com/signup) [Read the docs](https://www.spacesos.com/docs)

## Why your agent needs WhatsApp

Users judge an AI agent on what it gets done. If their customers write on WhatsApp and the agent cannot see those messages, the user still has to answer by hand, and your product only covers part of their day.

With WhatsApp connected, your agent can:

- Answer on the user’s own WhatsApp number, which keeps working on their phone.
- Book, confirm and move appointments in the chat.
- Follow up with people who asked, and stop the moment they answer.
- Send photos, files and voice notes where the conversation needs them.

## What building on WhatsApp Business API involves

Before you choose, it helps to know what building on WhatsApp Business API directly involves. From WhatsApp’s own documentation, read on 3 Dec 2026:

- The WhatsApp Business Platform (Cloud API) is set up under a Meta business portfolio. A new portfolio can register two phone numbers until it is verified.
- Outside the 24-hour customer service window, a business can only send approved message templates (marketing, utility or authentication). Template review can take up to 24 hours.
- Meta charges per delivered message, by category and the recipient’s country. Messages people send to the business are free.
- From 1 October 2026, each business number gets 1,000 free service messages a month, and service messages beyond that are charged.
- A number already used with WhatsApp has to be deleted from it before it can be registered on the Cloud API, unless it comes from the WhatsApp Business app through Meta’s Embedded Signup.

The full comparison, with sources, is at /api-alternatives/whatsapp-business-api.

Ready to try it?

Start free and let your own AI agent do the replying, or talk to a person on our team first.

[Start free with AI](https://app.spacesos.com/signup) [Talk to a person](https://www.spacesos.com/support)

## How Spaces connects your agent

1. You get a partner key, which manages your users and cannot read or send messages itself.
2. You create a Spaces user for each of yours, with your own id. Calling it again returns the same user.
3. You send the user to a connect link that shows your name and logo. Your user scans a QR code with the phone that has the number, the same way they link WhatsApp on a computer. The number keeps working on their phone. Then they come back to your app.
4. You create a key for that user and give it to your agent. The key reaches that user’s accounts and nobody else’s.
5. Your agent uses the Spaces MCP server at https://api.spacesos.com/mcp or the REST API with that key.

```
{
  "mcpServers": {
    "spaces": {
      "url": "https://api.spacesos.com/mcp",
      "headers": { "Authorization": "Bearer $USER_KEY" }
    }
  }
}
```

Every endpoint for users, keys, connect links, caps, webhooks and usage is at /docs/partners. Before you have a partner account, build on your own accounts on the Free plan with the same tools.

## Listening, not polling

An agent that only acts when asked misses the customer who wrote ten minutes ago. Spaces gives you three ways to hear about new WhatsApp messages:

- One webhook for all your users. Each event is signed, retried and tagged with your own user id.
- GET /partner/events, one stream for all your users that waits up to 50 seconds for something new.
- wait_for_events in the MCP server, so an agent running in a loop picks up each new message for its user.

The same event id can arrive twice, so skip repeats. Each event says which account and chat it belongs to, and the agent reads the conversation before it answers.

## What it looks like

A short example with made-up names:

Can I bring my appointment forward to tomorrow?

Tomorrow has 9:15 or 16:40 free. Which one suits you?

9:15

Done, see you tomorrow at 9:15. You will get a reminder an hour before.

## Keeping the agent and the account safe

- Messages written by other people are screened before your agent reads them, and messages that try to give the agent orders are held back. A DM that says “ignore your instructions” never reaches the model as an instruction.
- Keys can be read-only, able to send, or draft-only, where every reply waits for the user to approve it in your product.
- Send rules let a user forbid phrases and links, and the same text sent to many people at once is held for review.
- Every account is paced inside the network’s limits, with a four-week warm-up when it is new or reconnected.
- You can cap or pause any user, and a paused user’s key is refused until you resume them.

| Each account, after warm-up | WhatsApp |
| --- | --- |
| New messages a day | 400 |
| Replies to people who wrote in, a day | 400 |
| New conversations a day | 10 |
| Gap between two sends | 10 seconds |

New accounts start lower and warm up over four weeks. Replies to people who wrote in first have their own, higher limits, because that is what each network treats most gently. Every number is at /limits.

Spaces does not send template broadcasts to cold lists. New chats on WhatsApp go to people who messaged the number first or who agreed to hear from it.

## Pricing your product

Partner pricing in early access is $3.50 per connected end-user account a month plus $0.75 per 1,000 actions, with a $99 monthly minimum. Reading messages is free, so an agent that reads a lot and sends only what matters stays cheap.

GET /partner/usage shows each user’s accounts and actions for the month, with an invoice preview.

Most AI startups include WhatsApp in a paid plan, or charge per connected channel. With 500 users connecting one account each, account fees come to $1,750 a month, plus $0.75 for every 1,000 actions.

## A launch plan

1. Week 1: connect your own WhatsApp account on the Free plan, add the MCP server to your agent, and get it reading and drafting.
2. Week 2: open a partner account, build the connect button and the webhook, and store each user’s key next to that user.
3. Week 3: ship to ten design partners with draft-only keys, so every reply is approved, and fix what the drafts get wrong.
4. Week 4: switch the users who are happy to sending keys, set caps, add usage to billing, and launch.

## MCP server or REST API

Both reach the same WhatsApp conversations with the same key. The MCP server suits agents that decide for themselves what to do next: the model sees tools such as list chats, read messages, reply and wait for events, and calls them as it works.

The REST API suits a backend that already knows the steps, such as a webhook handler that loads the conversation, asks your model for a reply and sends it.

Many startups use both: REST for the event loop and the product screens, MCP for the agent itself.

## What to build in your product first

- A Connect WhatsApp button in settings, with the account’s status and a Reconnect button when the network signs it out.
- A view of what the agent did today: messages answered, drafts waiting and conversations handed to the user.
- An approve-or-edit screen for drafts, which turns every correction into better instructions for the agent.
- A clear off switch per channel, so users trust the agent with more once they know they can stop it.

## Mistakes AI startups make

- Sending from day one. Draft first; users forgive a weak draft but not a wrong message sent in their name.
- One shared key for every user. A key per user keeps one user’s messages away from another’s, and a leak stays small.
- Ignoring 429 answers. When Spaces asks the agent to wait, nothing was sent; wait the given time and retry with the same request.
- Treating every DM as a lead. Most messages are questions; answering them well is what users pay for.

## When to build on WhatsApp Business API instead

- If you send large template broadcasts, need a verified business name or many numbers under one portfolio, the WhatsApp Business Platform is built for that.
- If your volume is very high, Meta’s per-message throughput on the Cloud API is far above what one linked number should send.

## Summary

Your agent is only as useful as the inboxes it can reach, and your users’ customers write on WhatsApp. This guide shows how AI startups give their agent WhatsApp with Spaces: how each user connects, how the agent listens and replies, how accounts and the agent are kept safe, and what it costs.

## FAQ

### How do I give my AI agent WhatsApp?

Add the Spaces MCP server or REST API, and let each user connect their own WhatsApp account through a Spaces connect link. Your agent then reads and replies with a key for that user.

### Does my agent need to poll?

No. Use one webhook for all your users, the partner event stream, or wait_for_events in the MCP server.

### How is prompt injection in DMs handled?

Messages written by other people are screened before the agent reads them, and messages that try to give it orders are held back. Draft-only keys and approvals add a person before anything is sent.

### Do I need WhatsApp app review?

No. Your users connect through Spaces, so there is no developer app or app review on WhatsApp for you to run.

### What does it cost?

Partner pricing is $3.50 per connected end-user account a month plus $0.75 per 1,000 actions, with a $99 monthly minimum. Reading is free.

### What happens when a user disconnects WhatsApp?

Their account stops at once and its copy of the messages is removed. Your webhook gets an account.status event, so your product can show a Reconnect button, and the user can connect again through a new connect link.

### Can I start before I have a partner account?

Yes. [Free to start](https://www.spacesos.com/pricing). Build on your own accounts with the same tools, then move to partner and user keys.

[Start free](https://app.spacesos.com/signup) [Read the docs](https://www.spacesos.com/docs)

## Questions people ask

[Why does Claude Duet keep logging me out of WhatsApp?Claude Duet on WhatsApp](https://www.spacesos.com/blocked/whatsapp/claude-duet/logs-you-out) [Why does ChatGPT keep logging me out of WhatsApp?ChatGPT on WhatsApp](https://www.spacesos.com/blocked/whatsapp/chatgpt/logs-you-out) [Why does WhatsApp ask to verify when I use Instinct?Instinct on WhatsApp](https://www.spacesos.com/blocked/whatsapp/instinct/verify) [Why does WhatsApp say “try again later” to Claude?Claude on WhatsApp](https://www.spacesos.com/blocked/whatsapp/claude/try-again-later) [Physiotherapists on WhatsApp: clear the admin, keep clinical questions with cliniciansGuide](https://www.spacesos.com/blog/physiotherapists-on-whatsapp) [Yoga studios on WhatsApp: book classes and answer students while you teachGuide](https://www.spacesos.com/blog/yoga-studios-on-whatsapp)

## Related

## More articles

[AI agents**What to do when your AI agent gives a customer a wrong answer** 11 Nov 2026 · 10 min read](https://www.spacesos.com/blog/when-your-ai-agent-gives-a-wrong-answer) [AI agents**What to tell your AI agent so it answers like your business** 4 Nov 2026 · 10 min read](https://www.spacesos.com/blog/what-to-tell-your-ai-agent) [AI agents**Instagram API for AI startups: give your agent Instagram for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/instagram-api-for-ai-startups) [AI agents**LinkedIn API for AI startups: give your agent LinkedIn for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/linkedin-api-for-ai-startups) [AI agents**Messenger API for AI startups: give your agent Messenger for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/messenger-api-for-ai-startups) [AI agents**Telegram API for AI startups: give your agent Telegram for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/telegram-api-for-ai-startups)

Live in under 60 seconds

## Your customers are messaging right now.

Let your AI agent answer them tonight. Free to start, no card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
