Kehadiran

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.

Otorisasi

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

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

Body permintaan

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.

Nilai yang mungkin"online""offline"

Body respons

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"  }}