Session Status Change

This event is triggered when the session status changes (e.g., from WORKING to STOPPED).

Best practices

  • Store the 'WORKING' status in your database to prevent sending messages to an offline instance.

  • Notify administrators immediately if a session moves to 'SCAN_QR_CODE' status.

  • Use the 'session' field to identify which account changed status.

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Webhook Payload Example
application/json
string *
number *
string *
object *
string *
string *
object *
object *

Example

{
"id": "evt_01aaaaaaaaaaaaaaaaaaaaaaaa",
"timestamp": 1634567890123,
"session": "default",
"metadata": {
  "user.id": "123",
  "user.email": "email@example.com"
  },
"engine": "WEBJS",
"event": "session.status",
"payload": {
  "name": "default",
  "status": "STOPPED"
  },
"me": {
  "id": "11111111111@c.us",
  "lid": "123123@lid",
  "pushName": "Wawp Instance"
  }
}

Command Palette

Search for a command to run...