Skip to main content
GET
Query Session
Deprecated. This endpoint is deprecated and will be sunset on 2026-07-11. It still works until then. Migrate to the V1 path — see the migration guide for the old -> new path table.
Query an existing session to retrieve its data, including variables and conversation history.

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 state field contains the session execution state including variables and conversation history

Error Responses

Example error responses: 404 Not Found:
401 Unauthorized: