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>
Start or reconnect a session:
POST /api/whatsapp/{token}/start
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
Refresh the browser/core session without fully logging out:
POST /api/whatsapp/{token}/refresh
Optional request body for refresh and terminate:
{
"withDeletion": false
}
POST /startGET /qr or GET /qr/imageGET /status until the session is ONLINEPOST /refreshPOST /terminate and start again