Base URL
Authentication
All requests require anapikey query parameter.
Endpoints Overview
List Chat Sessions
Retrieve a paginated list of chat sessions for a project.Query Parameters
Response Example
Results are ordered by
startTime ascending, then by id ascending. videoUrl is null when no video was generated for the session.Get Single Chat Session
Retrieve detailed information for a specific session.Path Parameters
Query Parameters
Response Example
This endpoint returns the session object directly in
data, not in a nested data.data array.List Chat Messages
Retrieve messages for a specific chat session with optional filtering and pagination.Query Parameters
Response Example
Message Fields
Messages are ordered by
createdAt ascending, then by id ascending.Usage Guide
1
Get an API key
Obtain an active API key from your project settings before making requests.
2
List sessions
Call
GET /api/chat/sessions to retrieve sessions for your project. Use startTime, endTime, and status to narrow the result set.3
Inspect a session
Use the returned session
id as sessionId in GET /api/chat/sessions/{sessionId} when you need session-level details.4
Fetch messages
Call
GET /api/chat/messages with sessionId to retrieve the conversation history. Use role if you only need user or assistant messages.5
Paginate with nextCursor
For both list endpoints, omit
cursor on the first request. On subsequent requests, pass the previous nextCursor until it is empty or null.6
Handle UTC timestamps
All input time filters should use UTC and the format
yyyy-MM-dd HH:mm:ss.Error Handling
Security Notes
- Never expose your API key in browser-side code.
- API keys are project-scoped and can expire.
- Send all requests over HTTPS.
- Rotate keys regularly.
- Monitor usage for abnormal traffic patterns.