Skip to main content
WEBHOOK
presence-update
{
  "event": "presence.update",
  "data": {
    "id": "<string>",
    "event": "presence.update",
    "metadata": [
      {}
    ],
    "me": {
      "id": "<string>",
      "pushName": "<string>"
    },
    "payload": {
      "id": "<string>",
      "presences": [
        {
          "participant": "<string>",
          "lastKnownPresence": "<string>",
          "lastSeen": "<string>"
        }
      ]
    },
    "instanceId": "<string>",
    "userId": "<string>"
  }
}

presence.update

Provides real-time updates regarding the status of the whatsapp chats. Information like typing, recording a voice message, or other relevant activities, It’s like seeing the chat got updated in real whatsapp app. payload.id indicates the chat - either direct chat with a contact or a group chat. payload.id.[].participant - certain participant presence status. For a direct chat there’s only one participant.

Headers

x-userId
string
required

User UUID associated with the connected WhatsApp instance.

x-instanceId
string
required

Instance UUID of the connected WhatsApp instance.

Body

application/json
event
enum<string>
Available options:
presence.update
data
object

Response

200

The server successfully received the user behavior data from the WhatsApp chat. Status 200 is returned, confirming the successful reception and processing of the provided data.

I