Mensajes del hilo
Historial de una conversación (más reciente primero).
GEThttps://api.octuvia.com/v1/conversations/{conversation_id}/messages
Sin body. Path:
conversation_id (conv_…). Query: limit, cursor.Query
Campo
Descripción
limitintegeropcional
Tamaño de página (1–100, default 50).Ej:
50cursorstringopcional
Cursor de paginación.
Path
Campo
Descripción
conversation_idstringrequerido
Id del hilo en la ruta (
conv_…).Ej: conv_01J8Z3K4M5N6P7Q8R9S0T1U2V3Request
GET sin body. Sustituye {conversation_id} por el conv_… de la bandeja. Pagina con limit y cursor.
Response
| Campo | Uso |
|---|---|
data[].id | msg_…. Sirve para reply_to, reacciones y marcar leído. |
data[].direction | inbound (contacto) | outbound (tú). |
data[].type | text, image, interactive, template, … |
data[].content | Objeto del tipo: p. ej. content.text.body, content.image.url. |
data[].status | Ciclo: queued → sent → delivered → read (o failed). |
data[].reactions | Emojis con direction inbound/outbound. |
Orden
Más reciente primero. Para el chat UI, invierte o concatena páginas hacia atrás concursor.Language
Credentials
Header
Authorization
Token de la empresa · HTTP directo
Fetch Request
$ # Node 18+ fetch
const response = await fetch("https://api.octuvia.com/v1/conversations/conv_01J8Z3K4M5N6P7Q8R9S0T1U2V3/messages?limit=50", {
method: "GET",
headers: {
"Authorization": "Bearer octuvia_live_…"
}
});
const data = await response.json();
console.log(data);HTTP directo · funciona con cualquier cliente HTTP
Response
Elige un ejemplo de respuesta:
application/json
200OK
{
"object": "list",
"has_more": false,
"next_cursor": null,
"data": [
{
"object": "message",
"id": "msg_01J8Z3K4M5N6P7Q8R9S0T1U2V3",
"account_id": "acc_01J8Z3K4M5N6P7Q8R9S0T1U2V3",
"conversation_id": "conv_01J8Z3K4M5N6P7Q8R9S0T1U2V3",
"platform": "whatsapp",
"direction": "inbound",
"type": "text",
"content": {
"text": {
"body": "Hola, quiero info"
}
},
"status": "delivered",
"reactions": [],
"created_at": "2026-10-28T12:00:00Z"
}
]
}