Skip to main content
GET
/
conversations
/
{conversation_id}
/
messages
Get Messages
curl --request GET \
  --url https://api.example.com/conversations/{conversation_id}/messages

Path Parameters

ParameterTypeDescription
conversation_idstringConversation ID

Response

{
  "messages": [
    {
      "id": "msg_001",
      "conversation_id": "conv_abc123",
      "role": "user",
      "content": "Summarize Q4 sales",
      "timestamp": "2026-03-15T10:00:00Z"
    },
    {
      "id": "msg_002",
      "conversation_id": "conv_abc123",
      "role": "assistant",
      "content": "Q4 total revenue was...",
      "timestamp": "2026-03-15T10:00:05Z"
    }
  ],
  "total": 2,
  "limit": 50,
  "offset": 0
}