Skip to content

Concepts ​

ConceptMeaning
App (tenant)One entry in the gateway: a name, an API key, an optional webhook URL and one linked WhatsApp account.
Tenant APIPer-app endpoints (pairing, status, messages). Header x-api-key.
Admin APICreates, lists and deletes apps, restarts clients, manages sessions. Header x-admin-key, or the dashboard's session cookie.
Provisioning APILets another product create and manage apps it owns. Header x-provisioning-key.
SessionThe linked WhatsApp login. Encrypted with AES-256-GCM and stored in PostgreSQL, so restarts and new machines keep it.

App status ​

GET /api/status returns one of:

StatusMeaning
startingThe browser is launching.
qrWaiting for a QR scan.
pairingA phone-number pairing code was issued.
authenticatedLinked, finishing setup.
readyConnected. You can send.
disconnectedConnection dropped. The gateway reconnects with backoff.
auth_failureThe stored login was rejected. Pair again.
errorThe client failed to start. Restart it from the dashboard or Admin API.

A dropped connection keeps the stored session. Only a real logout (unlinked from the phone, Unlink, or POST /api/logout) deletes it.

Chat ids ​

Recipients can be a phone number in international format (spaces, dashes, + and a 00 prefix are fine), <number>@c.us, <id>@lid, or a group <id>@g.us. A local number starting with 0 is rejected because the country cannot be known.

Released under the Apache-2.0 License.