Estados

Post voice status

POST
/status/voice

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

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
url*string

Public http(s) address of the file. The Wappfy server downloads it (up to 50 MB, 30 s, up to 3 redirects); internal addresses are rejected. Provide url or base64, never both.

Longitudlength <= 2048
base64?string

The file in base64, raw or as a data URL (data:image/png;base64,...). Counts toward the request body limit; for large files, prefer url.

Longitud1 <= length
mimetype?string

Audio type. As with voice notes: OGG/OPUS (audio/ogg; codecs=opus); other audio only when the server converts it.

Longitudlength <= 255
filename?string

File name as the contact will see it (matters mostly in /messages/file).

Longitudlength <= 255
background_color?string

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

Patrón^#[0-9a-fA-F]{6}$
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.

Elementos1 <= items <= 256

Cuerpo de la respuesta

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/voice' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://exemplo.com/recado.ogg",  "mimetype": "audio/ogg; codecs=opus",  "contacts": [    "5581999999999"  ]}'
{  "data": {    "status_id": "string",    "contacts": [      "string"    ]  }}