Listar los mensajes de un contacto

Sirve para traer el historial de mensajes de un contacto y mantenerlo sincronizado en tu sistema, con paginación por cursor y updated_since para pedir solo lo nuevo.

GET
/contacts/{contactId}/messages

Permiso requerido: conversations:read

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de la ruta

contactId*integer

Parámetros de consulta

cursor?string
updated_since?string
perPage?integer
Rango1 <= value <= 100
Por defecto25

Cuerpo de la respuesta

OK

application/json
  1. response
data*array<>
links*
meta*
curl -X GET "https://example.com/contacts/0/messages"
{  "data": [    {      "chat_id": "string",      "contact_id": 0,      "content": [],      "device_id": 0,      "error_code": "string",      "file": "string",      "forwarded": 0,      "group_id": 0,      "id": 0,      "origin": 0,      "origin_id": 0,      "own": 0,      "reference_message": "string",      "reference_message_uid": "string",      "is_quotable": true,      "status": 0,      "temporal_uuid": "string",      "text": "string",      "time": "string",      "type": 0,      "uid": "string",      "info": [],      "user_id": 0,      "deleted_at": "string",      "deleted_scope": "string",      "poll_results": "string",      "event_rsvps": "string",      "form_answers": "string",      "reactions": [        null      ],      "file_original_name": "string",      "client_reference": "string"    }  ],  "links": {    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  },  "meta": {    "path": "string",    "per_page": 0,    "next_cursor": "string",    "prev_cursor": "string"  }}