प्रेज़ेंस

Chat presence

GET
/chats/{chatId}/presence

The contact's last known presence (or each participant's, in a group). WhatsApp only reports it after POST /chats/{chatId}/presence/subscribe, and only for people who share their presence: before that, presences comes back empty. This query is not cached (presence changes within seconds), but it counts toward the repeated query limit: to follow it, use the presence webhook event.

ऑथराइज़ेशन

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

पाथ पैरामीटर

chatId*string

The chat: the chat_id from GET /chats or from the webhooks (...@c.us, ...@lid, ...@g.us), or the phone number with country code and area code. Brazilian phone numbers are checked on WhatsApp, as when sending.

रिस्पॉन्स बॉडी

The presence.

application/json
  1. response
data*
curl -X GET 'https://app.wappfy.io/api/v1/chats/5581999999999/presence' \  -H 'X-Api-Key: wpf_YOUR_KEY'
{  "data": {    "chat_id": "string",    "is_group": true,    "presences": [      {        "phone": "string",        "presence": "string",        "last_seen": 0      }    ]  }}