Service Agent
Get list of conversation messages
Retrieves a paginated list of messages for a specific conversation.
get/service_agents/conversations/{id}/messages
Path parameters
idstring required
The ID of the conversation.
Query parameters
page_sizeinteger
Example:25
Number of results to return per page.
page_tokenstring
Cursor token for pagination. Use the next_page_token value from the previous response.
Response
A list of messages in the conversation.
Example response
{
"result": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"conversation_id": "550e8400-e29b-41d4-a716-446655440000",
"direction": "incoming",
"status": "done",
"reference_type": "message",
"reference_id": "f6a7b8c9-d0e1-2345-6789-0abcdef01234",
"source": {
"type": "tel",
"target": "+14155551234",
"target_name": "John Smith",
"name": "Main Office",
"detail": "Primary contact number"
},
"destination": {
"type": "tel",
"target": "+14155551234",
"target_name": "John Smith",
"name": "Main Office",
"detail": "Primary contact number"
},
"text": "Hello, how can I help you today?",
"medias": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"type": "image",
"filename": "photo_2026-01-15.jpg",
"tm_create": "2026-01-15T09:30:00.000000Z",
"tm_update": "2026-01-15T09:30:00.000000Z",
"tm_delete": "2026-01-15T09:30:00.000000Z"
}
],
"tm_create": "2026-01-15T09:30:00.000000Z",
"tm_update": "2026-01-15T09:30:00.000000Z",
"tm_delete": "2026-01-15T09:30:00.000000Z"
}
]
}