Skip to main content
GET
/
messages
Listar Mensagens
curl --request GET \
  --url https://apis.vectalk.com.br/api/messages \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.vectalk.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Parâmetros

Query

page
number
default:1
Número da página.
limit
number
default:50
Quantidade de mensagens por página.
status
string
Filtrar por status: sent, delivered, read, failed, pending.
from
string
Data de início (ISO 8601 ou YYYY-MM-DD). Exemplo: 2026-01-01.
to
string
Data de fim (ISO 8601 ou YYYY-MM-DD). Exemplo: 2026-01-31.
messageId
string
Filtrar por ID de mensagem da Meta (wamid).
direction
string
Filtrar por direção: inbound ou outbound.

Exemplo de Requisição

curl --request GET \
  --url 'https://apis.vectalk.com.br/api/messages?page=1&limit=20&status=delivered&direction=outbound' \
  --header 'Authorization: Bearer {seu_token}'

Resposta

{
  "data": [
    {
      "id": "msg_...",
      "waMessageId": "wamid.HBgLNTUx...",
      "to": "5511999999999",
      "type": "text",
      "status": "delivered",
      "direction": "outbound",
      "createdAt": "2026-01-01T10:00:00Z"
    }
  ],
  "total": 320,
  "page": 1,
  "limit": 20
}