Chats

List chats

GET
/chats

The connection's WhatsApp chats, most recent first, with the last message of each. Reads what is on WhatsApp right now (not the Wappfy history). To follow new messages, use the message.received webhook instead of polling in a loop.

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 query

limit?integer

How many items to return (1 to 100; default 20).

Rango1 <= value <= 100
Por defecto20
offset?integer

How many items to skip from the start, for the next page (default 0). Always advance limit by limit.

Rango0 <= value <= 100000
Por defecto0

Cuerpo de la respuesta

The chats on the page.

application/json
  1. response
data*array<>
curl -X GET 'https://app.wappfy.io/api/v1/chats' \  -H 'X-Api-Key: wpf_YOUR_KEY'
{  "data": [    {      "chat_id": "string",      "name": "string",      "phone": "string",      "is_group": true,      "picture_url": "string",      "last_message": {        "message_id": "string",        "chat_id": "string",        "from_me": true,        "from": "string",        "is_group": true,        "type": "string",        "text": "string",        "has_media": true,        "media": {          "url": "string",          "mimetype": "string"        },        "reply_to": "string",        "status": "failed",        "timestamp": 0      }    }  ]}