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
Permiso requerido: conversations:read
httpheader
AuthorizationBearer <clave>contactId*integercursor?stringupdated_since?stringperPage?integerRango
1 <= value <= 100Por defecto
25OK
application/json- 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" }}Enviar un mensaje a un contacto POST
Usalo para enviarle a un contacto un mensaje de texto o un archivo desde uno de tus números, con opción de responder a un mensaje previo, sumar opciones o vista previa de link.
Ver un mensaje GET
Usalo para saber qué pasó con un mensaje que enviaste: con el id que te devolvió el envío ves su estado (en cola, enviado, entregado, leído o fallido) y, si falló, el motivo.