✅ Presence

Get the presence for the chat id. If it hasn't been subscribed - it also subscribes to it.

get/api/{session}/presence/{chatId}

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/{session}/presence/{chatId}
  • Auth: API key in header X-Api-Key

Path parameters

sessionstring required

Session name

chatIdstring required
Example:123456789@c.us

Chat ID

Response

idstring required

Chat ID - either group id or contact id

Example response

{
  "id": "11111111111@c.us",
  "presences": [
    {
      "participant": "11111111111@c.us",
      "lastSeen": 1686568773
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.