Session status (Dashboard)
DigiChat shows a status for each session. Treat it as the source of truth: if the session is not ONLINE, don’t hammer sendMessage.
<figcaption class="docs-shot-caption">Session statuses list</figcaption>
Common statuses
ONLINE
Ready to send messages.
AWAITING_QR
QR scan required. Open the session, get the QR, scan once.
DISCONNECTED
Session is offline. Restart/reconnect from dashboard, then re-check.
AUTH_FAILURE
WhatsApp logged out. You need to re-link (new QR).
Recommended behavior
If status isn’t **ONLINE**, fix the session first (QR/reconnect) before sending.
API equivalents
Check status:
GET /api/whatsapp/{token}/status
Get QR:
GET /api/whatsapp/{token}/qr
GET /api/whatsapp/{token}/qr/image
Logout / re-link:
POST /api/whatsapp/{token}/terminate
Next
Send Message