v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
client

[BETA] read cached presence for a chat without subscribing

Returns the locally cached presence for a chat without triggering a new subscription. Returns null if the chat has never been subscribed (via get-chat-presence) during the current session. Use get-chat-presence instead if you want to enable continuous tracking. Note: This endpoint is currently in beta and may change without notice.

post/instances/{id}/client/action/get-chat-presence-snapshot

Path parameters

idinteger required

Instance ID

Request body

chatIdstring required

Chat ID <countrycode_short><usernumber>@c.us or @g.us for groups

Example request

{
  "chatId": "50664083362@c.us"
}

Response

Cached presence (may be null)

status'success' | 'error'

Example response

{
  "data": {
    "presence": {
      "id": "491701234567@c.us",
      "chatstate": "typing",
      "lastSeen": 1744632000
    }
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/get-chat-presence-snapshot"
  },
  "status": "success"
}