TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jihvijhojhviihogyuvi/whatsapp-api/llms.txt
Use this file to discover all available pages before exploring further.
/api/status endpoint returns a snapshot of the internal WhatsApp Web client — its connection lifecycle state, Chrome configuration, QR availability, and the authenticated account’s details when connected. Poll this endpoint to drive UI feedback or to gate downstream API calls on ready: true.
Endpoint
Response Fields
The current lifecycle state of the WhatsApp Web client. Possible values:
| Value | Meaning |
|---|---|
stopped | Client has not been started yet (or was logged out) |
starting | Chrome is launching and client.initialize() is running |
qr | A QR code has been generated; waiting for the user to scan it |
authenticated | QR was scanned; session credentials are being saved |
ready | Fully connected and ready to send/receive messages |
auth_failure | Authentication failed; see last_error for details |
disconnected | Client was previously ready but lost the connection |
true when the client is in the ready state and all messaging endpoints are safe to call.Mirrors
ready. Set to true at the same time the ready flag becomes true.Absolute filesystem path to the directory where whatsapp-web.js stores
LocalAuth session credentials. Defaults to ../.wwebjs_auth relative to the project root, configurable via WHATSAPP_AUTH_DIR.Absolute path to the Chrome binary that will be launched by Puppeteer. Configurable via
WHATSAPP_CHROME_EXECUTABLE.true when Chrome is configured to run without a visible window (WHATSAPP_HEADLESS=true). Defaults to false.true when a QR code is currently available at GET /qr. Becomes false once the client reaches the ready state (the QR is cleared on successful auth).The most recent error message, or
null if no error has occurred. Populated on auth_failure and disconnected states.Account details for the authenticated WhatsApp identity.
null when the client is not yet ready.Example Request
Example Response
The following shows a fully authenticated, ready client:GET / and GET /health return the same status object nested inside a larger envelope that also includes the server name and MCP endpoint URL:GET /api/status when you only need the WhatsApp client state.