Statut

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.

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 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 requête

application/json
  1. body
text*string

The status text (up to 700 characters).

Longueur1 <= length <= 700
background_color?string

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

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

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

Plage0 <= 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.

Éléments1 <= items <= 256

Corps de la réponse

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