Get Chat

Retrieve a chat session with full message history.

GET/v2/chats/{session_id}

Get a chat session with message history.

Path Parameters

The chat session ID

Query Parameters

Max messages to return

Response 200

{
  "id": "sess_abc123",
  "agent_id": 5,
  "name": "Sales inquiry",
  "source": "dashboard",
  "messages": [
    { "role": "user", "content": "What's the pricing?", "timestamp": "2026-03-25T10:00:01Z" },
    { "role": "assistant", "content": "Our pricing starts at...", "timestamp": "2026-03-25T10:00:03Z" }
  ],
  "created_at": "2026-03-25T10:00:00Z",
  "updated_at": "2026-03-25T10:15:00Z"
}

Errors

CodeDescription
404Chat session not found
403Not authorized to access this chat

On this page