---
title: "Bolt on WhatsApp: add WhatsApp messages to your app"
description: "How to add WhatsApp to an app built with Bolt: read and answer WhatsApp chats through one API, with a prompt to paste, step by step."
url: https://www.spacesos.com/blog/bolt-on-whatsapp
author: "Bhavya Barot"
published: "2026-12-04"
modified: "2026-12-04"
keywords: "Bolt on WhatsApp,Bolt WhatsApp integration,WhatsApp API for Bolt,connect WhatsApp to Bolt,Bolt WhatsApp messages"
---

WhatsApp4 Dec 20269 min read

# Bolt on WhatsApp: add WhatsApp to your app

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

You are building with Bolt, and the app needs WhatsApp: to read the chats that come in, answer them, and maybe let an AI agent draft the replies. Bolt can build almost any screen, but it cannot reach WhatsApp on its own.

This guide shows how to connect the two with Spaces, what the app can do once it is connected, the prompt to paste, how to test it, and the problems people run into.

Key takeaways

- Bolt cannot reach WhatsApp on its own; Spaces gives the app one API for it.
- You connect the WhatsApp account you already use, with no developer app or review.
- The key stays in environment variables, and Spaces is called only from a server route or function.
- Test with an account you control before real customers write.

**Bolt**

**WhatsApp**

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

## The short answer

Bolt apps cannot talk to WhatsApp directly. Spaces sits in between: you connect your WhatsApp account to Spaces once, and your Bolt app reads and answers its chats through one REST API, called from a server route or function.

There is no developer app to register and no review to pass on WhatsApp.

The same API covers Instagram, WhatsApp, LinkedIn, Facebook Messenger and Telegram, so adding a second channel later is the same calls with a different account.

## Why WhatsApp is hard to add on your own

Most people first try the WhatsApp Business Platform: a Meta developer app, a business portfolio, a phone number that is moved off the normal WhatsApp app, and message templates that Meta approves before you can start a conversation.

It is the right tool for a large company sending notifications, and a lot of setup for an app that wants to read and answer the chats on a number you already use.

What the WhatsApp Business API asks for, 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.

Spaces connects the account you already use instead, and keeps each account inside the network’s limits. The full comparison, with sources: /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 it works with Bolt

Bolt builds full-stack apps in the browser. You describe what you want and it writes the code.

For WhatsApp, you paste one prompt: it reads the Spaces guide for agents, and builds the inbox calling Spaces from a server route or function, with the key in environment variables.

Spaces does the WhatsApp side: it holds the connection, paces every send, screens messages written by other people before an AI agent reads them, and tells your app when something new arrives through a signed webhook.

## What your Bolt app can do on WhatsApp

### Read every chat

The chats of each connected number, newest first, with their full history.

### Reply with text and media

Send text, photos, videos, voice notes and files in a chat.

### Hear new messages at once

A signed webhook calls your app the moment a message arrives, so it can answer without polling.

### Several numbers in one app

Sales, support and each branch can have their own number, all in the same inbox.

## Step by step

1. Create a free Spaces account. The Free plan has 1 connected account and 20 actions a day with no card, which is enough to build and test.
2. Connect WhatsApp. You scan a QR code with WhatsApp on the phone, the same way you link WhatsApp on a computer. Each number is its own account, and you can connect more than one.
3. Create an API key in Settings, under Developers. Copy it once: Spaces shows it only when you create it.
4. Save the key in environment variables, under the name SPACES_API_KEY. Do not paste it into a page, a prompt or anything that runs in the browser.
5. Paste the prompt below into Bolt. It asks for a list of your WhatsApp accounts, the chats of one account, the messages of a chat and a reply box, all called from a server route or function.
6. Ask a friend to send a message to your WhatsApp account, open it in your app, and answer it. The reply arrives in WhatsApp like any other message from you.

## The prompt to paste into Bolt

Paste it as it is. It stays in English so it matches the Spaces docs word for word, and it tells Bolt where the key lives and what to build.

```
Add Spaces to this app so it can read and answer my WhatsApp messages.

First read https://www.spacesos.com/llms.txt. My Spaces API key is in a secret called SPACES_API_KEY. Call https://api.spacesos.com/v1 only from a server route or function, with the header "Authorization: Bearer <key>". Never send the key to the browser.

Build:
1. My connected WhatsApp accounts: GET /messaging/accounts?channel=whatsapp.
2. The chats of one account: GET /messaging/accounts/{account_id}/chats, newest first.
3. The messages of one chat: GET /messaging/accounts/{account_id}/chats/{chat_id}/messages.
4. A reply box: POST /messaging/accounts/{account_id}/chats/{chat_id}/messages with {"text": "..."} and an Idempotency-Key header, a new one for each message.

Each WhatsApp number is its own account. For 24 hours after a number connects, Spaces does not start new chats, but replies in existing chats still go out, so test by having someone write to the number first.

Show Spaces' error messages as they are. On 429, wait retry_after_seconds before trying again. Do not send the same message to many people.
```

Keep Spaces calls in a server route; Bolt previews run in the browser, where a key would be visible.

To give it only the WhatsApp tools, use https://api.spacesos.com/mcp/whatsapp as the MCP address.

## What it looks like

A short example of a Bolt app answering on WhatsApp, with made-up names:

Hi, can I book a haircut for Saturday morning?

Saturday has 10:00 and 11:30 free. Which one suits you?

10:00 please

Booked for Saturday at 10:00. See you then!

## Apps people build with Bolt and WhatsApp

### A booking assistant

Clients ask for a time on WhatsApp, the app checks the calendar and answers with the free slots.

### An order desk

Customers ask where their order is, and the app looks it up and replies with the status.

### A shared support inbox

The team sees every WhatsApp chat in one place, with an AI draft ready for each reply.

## Test it before real customers write

1. Connect a WhatsApp account you control, not a customer’s, and keep the app on the Free plan while you build.
2. Have a friend write to it, and check that the chat shows up with the right name and the newest message first.
3. Answer from the app and check the reply on the friend’s phone, then answer again to see that the history stays in order.
4. Send a photo or a voice note, and make sure the app shows something sensible instead of an empty bubble.
5. Turn off the network for a moment or use a wrong key, and check that the app shows Spaces’ error message instead of failing silently.
6. Only then let an AI agent draft replies, and keep a person approving them for the first days.

## Limits on WhatsApp

| 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. Spaces connects the WhatsApp number you already use. It is built for answering people and following up with customers, not for bulk messages to lists of strangers. Every limit is at /limits.

## Common problems and how to fix them

- The app shows no chats. Check that the WhatsApp account is connected in Spaces and that the app asks for accounts with channel=whatsapp. A new account shows chats once someone writes to it.
- “Unauthorized”. The key is missing or wrong. Check the name of the secret in Bolt and that the call adds the header Authorization: Bearer followed by the key.
- A 429 answer. A limit was reached for that account, and nothing was sent. The answer says how many seconds to wait in retry_after_seconds; wait, then try again with the same Idempotency-Key.
- The same message went out twice. Every send needs a new Idempotency-Key, and a retry must reuse the key of the message it repeats. Spaces never sends twice for the same key.
- The account needs to sign in again. Networks sometimes ask for it. Spaces marks the account and sends a link; until then, sends on that account wait. Each WhatsApp number is its own account. For 24 hours after a number connects, Spaces does not start new chats, but replies in existing chats still go out, so test by having someone write to the number first.

## When your users bring their own WhatsApp

Everything above uses your own WhatsApp account and one key. If you are building a product where each user connects their own WhatsApp, you need a partner account, which is in early access.

Your app creates a Spaces user for each of its users, gets a key for them, and sends them a connect link that shows your app’s name.

```
Add Spaces to this app so each of my users can connect their own Instagram, WhatsApp, LinkedIn, Messenger or Telegram account and answer their messages inside the app.

First read https://www.spacesos.com/docs/partners. My Spaces partner key is in a secret called SPACES_PARTNER_KEY. Call https://api.spacesos.com/v1 only from a server route or function. Never send a key to the browser.

Build:
1. When a user opens messaging settings: POST /partner/users with {"external_user_id": "<our user id>"} (safe to repeat), then POST /partner/users/{id}/keys to get that user's key, and store it with the user, encrypted.
2. A "Connect Instagram" (or WhatsApp, LinkedIn...) button: POST /partner/users/{id}/connect-links with {"channel": "instagram", "return_url": "<this page>"} and send the user to the link.
3. With that user's key: their accounts (GET /messaging/accounts), chats, messages and a reply box, as in https://www.spacesos.com/llms.txt.

Show Spaces' error messages as they are, and wait retry_after_seconds on 429.
```

Partner pricing and the full flow are at /saas and /docs/partners.

## What it costs

[Free to start](https://www.spacesos.com/pricing)

Bolt is billed by its maker, separately from Spaces. Reading messages is always free in Spaces; sends and other actions count toward the day’s allowance.

## Summary

You are building with Bolt, and the app needs WhatsApp: to read the chats that come in, answer them, and maybe let an AI agent draft the replies. Bolt can build almost any screen, but it cannot reach WhatsApp on its own.

## FAQ

### Does Bolt support WhatsApp on its own?

Bolt can call any API from a server route or function, but it has no built-in WhatsApp messaging. Spaces is the API it calls: you connect WhatsApp to Spaces, and the Bolt app reads and answers the chats.

### Do I need the official WhatsApp Business API?

No. Spaces connects the WhatsApp account you already use through a secure link, so you skip the developer app and the review. You scan a QR code with WhatsApp on the phone, the same way you link WhatsApp on a computer. Each number is its own account, and you can connect more than one.

### Can I keep using WhatsApp on my phone?

Yes. Messages your app sends appear in WhatsApp like any message from you, and you can still answer from the WhatsApp app. Both see the same chats.

### Is the API key safe in a Bolt app?

Yes, if it stays in environment variables and Spaces is called only from a server route or function. Never put the key in code that runs in the browser or in a mobile app people download.

### Can the app answer on its own, with AI?

Yes. Let Spaces call your app with a webhook when a message arrives, and have an AI step draft the answer. Start with a person approving each reply, and let it send on its own once the drafts are right. Messages from other people are screened before an AI reads them.

### How much does it cost?

[Free to start](https://www.spacesos.com/pricing). The Free plan is enough to build and test. Reading messages is always free.

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

## Questions people ask

[Why does Muse keep logging me out of WhatsApp?Muse on WhatsApp](https://www.spacesos.com/blocked/whatsapp/muse/logs-you-out) [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 WhatsApp say “try again later” to ChatGPT?ChatGPT on WhatsApp](https://www.spacesos.com/blocked/whatsapp/chatgpt/try-again-later) [Did Instinct get my WhatsApp account banned?Instinct on WhatsApp](https://www.spacesos.com/blocked/whatsapp/instinct/restricted) [WhatsApp API for AI startups: give your agent WhatsApp for every userGuide](https://www.spacesos.com/blog/whatsapp-api-for-ai-startups) [WhatsApp for enterprise: AI agents across teams, with controlGuide](https://www.spacesos.com/blog/whatsapp-for-enterprise)

## Related

## More articles

[WhatsApp**Bubble on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/bubble-on-whatsapp) [WhatsApp**Blink on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/blink-on-whatsapp) [WhatsApp**Adalo on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 8 min read](https://www.spacesos.com/blog/adalo-on-whatsapp) [WhatsApp**Aider on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/aider-on-whatsapp) [WhatsApp**Amp on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/amp-on-whatsapp) [WhatsApp**Google Antigravity on WhatsApp: add WhatsApp to your app** 4 Dec 2026 · 10 min read](https://www.spacesos.com/blog/antigravity-on-whatsapp)

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.
