Query Session
Session 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.Documentation Index
Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Query Session
Path Parameters
The ID of your project
The unique identifier of the session to query
Request Headers
Bearer token authentication using your Project API Key (starts with
sk_). Format: Bearer {your-api-key}Response
The session ID
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
| Status Code | Description |
|---|---|
| 400 | Missing projectId or sessionId |
| 401 | Invalid authentication |
| 404 | Session not found |
| 500 | Internal server error |
Related APIs
- Create Session - Create a new session
- Search Sessions - Search sessions by content
- End Session - End an existing session
