Status

Post text status

POST
/status/text

Without contacts, the status goes to ALL of the number's contacts. To test, send contacts with a number of your own.

Autoryzacja

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

Parametry nagłówka

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.

Treść żądania

application/json
  1. body
text*string

The status text (up to 700 characters).

Długość1 <= length <= 700
background_color?string

Optional: the background color in hex (#38b42f).

Wzorzec^#[0-9a-fA-F]{6}$
font?integer

Optional: the font style, a WhatsApp number (0 to 10).

Przedział0 <= value <= 10
contacts?array<string>

Optional: who sees the status (phone numbers or chatIds, up to 256), checked like the send to. Without contacts, the status goes to ALL of the number's contacts.

Elementy1 <= items <= 256

Treść odpowiedzi

Posted. Keep the status_id and the contacts to delete it.

application/json
  1. response
data*
curl -X POST 'https://app.wappfy.io/api/v1/status/text' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "text": "Promoção só hoje!",  "background_color": "#38b42f",  "contacts": [    "5581999999999"  ]}'
{  "data": {    "status_id": "string",    "contacts": [      "string"    ]  }}