Skip to main content
Loading a token means your app stores the token and uses it for all session and call API requests.

Check token status

curl -H "token: YOUR_TOKEN" \
  http://localhost:1337/session/status
Example response:
{
  "code": 200,
  "data": {
    "Connected": true,
    "LoggedIn": true,
    "Jid": {
      "User": "5511999999999",
      "Server": "s.whatsapp.net"
    },
    "Events": "All"
  },
  "success": true
}

Status fields

FieldMeaning
ConnectedThe WaGo process is connected to WhatsApp WebSocket services.
LoggedInThe token has a scanned WhatsApp device.
JidThe connected WhatsApp account JID.
EventsSubscribed webhook events for this token.

Restore behavior

If Connected is false, call /session/connect with the token. If LoggedIn is false, connect the session and fetch the QR code so the user can scan it.