Chats

"Typing..."

POST
/chats/typing

Shows "typing..." (typing) or "recording audio..." (recording) to the contact, or clears it (paused). Useful before an automated reply, so it feels less like a bot.

Autorisierung

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

Header-Parameter

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.

Anfrage-Body

application/json
  1. body
to*string

Recipient: phone number with country code and area code, digits only (5581999999999; +, spaces and dashes are ignored), or the chatId (5581999999999@c.us, ...@lid, or a group ...@g.us). Brazilian phone numbers are checked on WhatsApp before sending.

state*string

typing shows "typing..." to the contact; recording, "recording audio..."; paused clears it. WhatsApp also clears it on its own after a while, and when the message arrives.

Mögliche Werte"typing""recording""paused"

Antwort-Body

Indicator turned on or off.

application/json
  1. response
data*
curl -X POST 'https://app.wappfy.io/api/v1/chats/typing' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "to": "5581999999999",  "state": "typing"}'
{  "data": {    "chat_id": "string",    "state": "typing"  }}