Query Session
Deprecated APIs
Query Session
Retrieve session information by session ID to view conversation context and variables.
GET
Query Session
Query an existing session to retrieve its data, including variables and conversation history.
401 Unauthorized:
Base URL
Query Session
Path Parameters
string
required
The ID of your project
string
required
The unique identifier of the session to query
Request Headers
string
required
Bearer token authentication using your Project API Key (starts with
sk_). Format: Bearer {your-api-key}Response
string
The session ID
object
The session state containing variables, messages, and other execution state information
Example
Request
Response
Usage Notes
- Session ID: Use the same session ID that was created via the Create Session endpoint
- State Structure: The
statefield contains the session execution state including variables and conversation history
Error Responses
Example error responses:
404 Not Found:
Related APIs
- Create Session - Create a new session
- Search Sessions - Search sessions by content
- End Session - End an existing session
