Lista todas las conversaciones de tu organización con filtrado por canal y paginación.
curl -X GET "https://app.horneross.com/api/v2/conversations?channel=website&limit=10" \
-H "Authorization: Bearer sk_live_xxx"
{
"conversations": [
{
"id": "conv_abc123",
"title": "Consulta sobre productos",
"channel": "website",
"status": "UNRESOLVED",
"agentId": "ag_xyz789",
"messageCount": 8,
"agent": {
"id": "ag_xyz789",
"name": "Agente de Ventas",
"iconUrl": "https://storage.horneross.com/icons/agent.png"
},
"lastMessage": {
"id": "msg_001",
"text": "Gracias por la información",
"from": "human",
"createdAt": "2024-01-21T15:30:00Z"
},
"metadata": {
"source": "landing_page"
},
"createdAt": "2024-01-21T10:00:00Z",
"updatedAt": "2024-01-21T15:30:00Z"
}
],
"pagination": {
"limit": 20,
"cursor": "conv_abc123",
"hasMore": true
},
"filters": {
"channel": "all",
"availableChannels": ["website", "whatsapp", "api", "dashboard", "agent_builder"]
}
}
GET /api/v2/conversations
api, website, whatsapp, widget, dashboard, agent_builder, instagram, telegram, allcurl -X GET "https://app.horneross.com/api/v2/conversations?channel=website&limit=10" \
-H "Authorization: Bearer sk_live_xxx"
Show Propiedades de cada conversación
api, website, whatsapp, dashboard, etc.UNRESOLVED, RESOLVED, HUMAN_REQUESTED{
"conversations": [
{
"id": "conv_abc123",
"title": "Consulta sobre productos",
"channel": "website",
"status": "UNRESOLVED",
"agentId": "ag_xyz789",
"messageCount": 8,
"agent": {
"id": "ag_xyz789",
"name": "Agente de Ventas",
"iconUrl": "https://storage.horneross.com/icons/agent.png"
},
"lastMessage": {
"id": "msg_001",
"text": "Gracias por la información",
"from": "human",
"createdAt": "2024-01-21T15:30:00Z"
},
"metadata": {
"source": "landing_page"
},
"createdAt": "2024-01-21T10:00:00Z",
"updatedAt": "2024-01-21T15:30:00Z"
}
],
"pagination": {
"limit": 20,
"cursor": "conv_abc123",
"hasMore": true
},
"filters": {
"channel": "all",
"availableChannels": ["website", "whatsapp", "api", "dashboard", "agent_builder"]
}
}
Was this page helpful?
curl -X GET "https://app.horneross.com/api/v2/conversations?channel=website&limit=10" \
-H "Authorization: Bearer sk_live_xxx"
{
"conversations": [
{
"id": "conv_abc123",
"title": "Consulta sobre productos",
"channel": "website",
"status": "UNRESOLVED",
"agentId": "ag_xyz789",
"messageCount": 8,
"agent": {
"id": "ag_xyz789",
"name": "Agente de Ventas",
"iconUrl": "https://storage.horneross.com/icons/agent.png"
},
"lastMessage": {
"id": "msg_001",
"text": "Gracias por la información",
"from": "human",
"createdAt": "2024-01-21T15:30:00Z"
},
"metadata": {
"source": "landing_page"
},
"createdAt": "2024-01-21T10:00:00Z",
"updatedAt": "2024-01-21T15:30:00Z"
}
],
"pagination": {
"limit": 20,
"cursor": "conv_abc123",
"hasMore": true
},
"filters": {
"channel": "all",
"availableChannels": ["website", "whatsapp", "api", "dashboard", "agent_builder"]
}
}