List Sessions
Get all available sessions.Response
Example
Get Session
Retrieve a specific session with full conversation history.Response
Example
Search Sessions
Search sessions by keywords in conversation history.Query Parameters
query(required): Search keywordslimit(optional): Max results (default: 10, max: 50)after_date(optional): ISO 8601 date filterbefore_date(optional): ISO 8601 date filter
Response
Example
Update Session Name
Rename a session.Request Body
Example
Delete Session
Permanently delete a session.Example
Export Session
Export session data as JSON for backup or transfer.Response
Returns a JSON string containing the complete session data.Example
Import Session
Import a previously exported session.Request Body
Response
Returns the importedSession object.
Example
Fork Session
Create a copy of a session or truncate conversation history.Request Body
copy: Iftrue, creates a new session copytruncate: Iftrue, removes messages after timestamptimestamp: Unix timestamp in milliseconds (required iftruncateistrue)
Response
Examples
Copy a session:Get Session Extensions
Retrieve the extensions enabled for a specific session.Response
Example
Update Recipe Values
Update user-provided recipe parameter values for a session.Request Body
Response
Example
Get Session Insights
Get aggregate statistics across all sessions.Response
Example
Error Responses
| Code | Description |
|---|---|
400 | Bad request - invalid parameters |
401 | Unauthorized - invalid API key |
404 | Session not found |
500 | Internal server error |
Error Format
Session Object Schema
A completeSession object has the following structure: