Skip to main content

Get conversation messages

GET 
/ai/conversations/:conversation_id/messages

Retrieve messages for a specific conversation, including tool calls made by the assistant.

Request

Path Parameters

    conversation_id stringrequired

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/ai/conversations/:conversation_id/messages' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"role": "user",
"text": "string",
"tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"created_at": "2025-04-15T13:07:28.764Z",
"sent_at": "2025-04-15T13:07:28.764Z"
}
],
"meta": {
"total_pages": 0,
"total_results": 0,
"page_number": 0,
"page_size": 0
}
}