Obecność
Online or offline
POST
Marks the number as online or offline for everyone. While the number is online through a connected session, WhatsApp does not send notifications to the phone: send offline when you are done.
X-Api-Key: wpf_YOUR_KEYThe connection's API key (wpf_...), generated in the dashboard.
Authorization: Bearer wpf_YOUR_KEYThe same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).
Idempotency-Key?stringOptional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.
application/json- body
presence*stringonline (all contacts see the number as online) or offline. While the number is online through here, WhatsApp does not send notifications to the phone: send offline afterwards.
Możliwe wartości
"online""offline"Presence applied.
application/json- response
data*curl -X POST 'https://app.wappfy.io/api/v1/presence' \ -H 'X-Api-Key: wpf_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{ "presence": "offline"}'{ "data": { "presence": "online" }}
