Service Agent
List aimessages for an aicall
Retrieves a paginated list of AI messages for the given aicall id. The aicall must belong to the service agent's own customer.
get/service_agents/aimessages
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.
aicall_idstring uuid required
The ID of the aicall whose messages should be retrieved. Returned from the POST /service_agents/aicalls or GET /service_agents/aicalls response.
Response
A list of AI messages.
Example response
{
"result": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
"aicall_id": "550e8400-e29b-41d4-a716-446655440000",
"activeflow_id": "550e8400-e29b-41d4-a716-446655440000",
"active_ai_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"role": "assistant",
"content": "Hello, how can I help you today?",
"direction": "incoming",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco\"}"
}
}
],
"tool_call_id": "call_abc123",
"tm_create": "2026-01-15T09:30:00.000000Z"
}
]
}