Introduction
WA Gateway is a self-hosted WhatsApp gateway. You run it on your own server, link one or more WhatsApp numbers to it, and then:
- reply to customers from the browser in a shared inbox, together with your team;
- send messages from your own apps with a small HTTP API: order confirmations, OTPs, reminders, alerts;
- receive messages in your apps through signed webhooks, to build bots, CRM integrations or n8n/Zapier flows.
Everything is set up and managed from a web dashboard. There are no config files to edit after installation.

How it works
WA Gateway links to WhatsApp the same way WhatsApp Web does: each number you add becomes a linked device on the phone. Messages keep arriving on the phone as usual, and the gateway sees them too.
Your apps ──HTTP API──▶ ┌──────────────┐ ◀──linked device──▶ WhatsApp ◀──▶ Your customers
│ WA Gateway │
Your apps ◀──webhooks── └──────────────┘ ◀──browser──▶ Your team (inbox, dashboard)It ships as one Docker container: the API, the dashboard and the WhatsApp connections all run in the same process, on one port. Data is stored in SQLite by default, or in Postgres if you point it at one.
What's included
| Area | What you get |
|---|---|
| Sessions | Link numbers by QR code or pairing code, see their status, unlink them. |
| Inbox | Chats like WhatsApp Web: media, replies, reactions, edits, polls, typing indicators, chat info, filters. |
| Webhooks | Signed POSTs for incoming/sent messages, receipts and session status, with retries and a delivery log. |
| Events monitor | The webhook payloads, live in the browser. |
| API keys | One key per integration, created and revoked in the dashboard. |
| Users & roles | Owner, admin and member accounts for your team. |
| Audit log | Who signed in, and who changed sessions, users, keys and webhooks. |
| HTTP API | Send every message type, manage sessions, read chat history. OpenAPI document and interactive docs included. |
Good to know
Unofficial protocol
WA Gateway uses the WhatsApp Web protocol through Baileys. It is not the official WhatsApp Business API and is not affiliated with WhatsApp or Meta. Sending bulk or unsolicited messages can get a number banned. Use it for conversations people expect.
- Your data stays with you. Messages, contacts and media are stored on your server only.
- The phone stays the source of truth. Pinned and archived chats, contact names and read state follow the phone.
- Open source. The code is on GitHub.
Ready? Continue with Installation.