Endpoint: GET /v1/sessions/{session_id}/history

Retrieve the chat history for a specific session. This endpoint provides details on all interactions between the user and the assistant during the session.

Path Parameters

session_id
string
required

The unique ID of the session.

Query String Parameters

unix
boolean

Optional, filter results by Unix timestamp if needed.

Response Parameters

role
string

Role of the participant (user or assistant).

content
string

The content of the message exchanged.

created_at
string

Timestamp of when the message was created.