Skip to main content
GET
/
api
/
{session}
/
presence
Get all subscribed presence information
curl --request GET \
  --url https://{host}/api/{session}/presence \
  --header 'apikey: <api-key>'
{
  "presences": [
    {
      "chatId": "5511999999999@s.whatsapp.net",
      "status": "AVAILABLE",
      "lastSeen": 1234567890
    },
    {
      "chatId": "5511888888888@s.whatsapp.net",
      "status": "UNAVAILABLE",
      "lastSeen": 1234567800
    }
  ]
}

Description

⚠️ This endpoint is not yet implemented. This endpoint will allow you to get all presence information (online/offline status) of chats that were subscribed through the subscription endpoint. It allows monitoring the status of multiple contacts simultaneously.

URL Parameters

session
string
required
WhatsApp unique session ID

Response

{
  "presences": [
    {
      "chatId": "5511999999999@s.whatsapp.net",
      "status": "AVAILABLE",
      "lastSeen": 1234567890
    },
    {
      "chatId": "5511888888888@s.whatsapp.net",
      "status": "UNAVAILABLE",
      "lastSeen": 1234567800
    }
  ]
}

Status Codes

  • 200 - Information obtained successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized
  • 404 - Session not found

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/presence

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

Response

200 - application/json
id
string
required

Chat ID - either group id or contact id

Example:

"5511999999999@c.us"

presences
object[]
required
I