FAQ
Is this the official WhatsApp API?
No. WA Gateway links to WhatsApp as a linked device, like WhatsApp Web, using Baileys. It is not affiliated with WhatsApp or Meta. If you need the official WhatsApp Business Platform (templates, verified green tick, guaranteed delivery at scale), use Meta's Cloud API.
Can my number get banned?
It can, as with any unofficial client. WhatsApp bans numbers that send bulk or unsolicited messages, or that many people report. Keep to conversations people expect: replies, order updates, OTPs to your own users. Warm up new numbers slowly, and don't send the same message to many strangers.
Does the phone need to stay online?
No. Linked devices work on their own. But WhatsApp logs out linked devices when the phone hasn't been online for about 14 days, so open WhatsApp on it now and then.
Can I still use WhatsApp on the phone?
Yes. Messages arrive on the phone and in the gateway. Replies sent from the phone also show up in the inbox and trigger message.sent webhooks.
Does it work with WhatsApp Business?
Yes, both the WhatsApp and WhatsApp Business apps can be linked.
How many numbers can I link?
As many as your server can handle. Each linked number keeps one connection open and uses a few dozen MB of memory.
Why do some contacts appear as …@lid?
WhatsApp is moving to private identifiers (LIDs) that hide phone numbers. When WhatsApp tells the gateway which phone number belongs to a LID, chats use the phone number; webhook payloads carry it in chat_alt / from_alt. Some contacts in large groups only appear with their LID.
Where is my data stored?
On your server only: in ./data (SQLite database and inbox media) and ./media (webhook media), or in your Postgres database. See Configuration.
How do I back up or move the gateway?
Stop it, copy the data and media folders (and dump Postgres if you use it), and start it on the new server with the same compose file. Linked numbers stay linked.
The QR code doesn't appear
Check that the server can reach WhatsApp (outbound HTTPS and WebSockets), and look at the container logs with docker compose logs -f. If a code expired, click Generate new QR.
Live updates in the inbox are delayed behind my proxy
The inbox and events monitor use server-sent events: one long-running request per open tab. Make sure your proxy doesn't time it out quickly (nginx: proxy_read_timeout 1h;). See Putting it behind HTTPS.
Where do I report bugs or ask for features?
On GitHub Issues.