Statut en ligne

Subscribe to chat presence

POST
/chats/{chatId}/presence/subscribe

Starts receiving the contact's presence: the presence webhook event and the GET /chats/{chatId}/presence query. Subscribing again changes nothing.

Autorisation

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).

Paramètres de chemin

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.

Paramètres d'en-tête

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Corps de la réponse

Subscribed.

application/json
  1. response
data*
curl -X POST 'https://app.wappfy.io/api/v1/chats/5581999999999/presence/subscribe' \  -H 'X-Api-Key: wpf_YOUR_KEY'
{  "data": {    "chat_id": "string",    "subscribed": true  }}