Presencia

Online or offline

POST
/presence

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.

Autorización

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

Parámetros de header

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.

Cuerpo de la petición

application/json
  1. body
presence*string

online (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.

Valores posibles"online""offline"

Cuerpo de la respuesta

Presence applied.

application/json
  1. 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"  }}