Search Sessions
Session APIs
Search Sessions
Search for sessions by matching content in session data, including variables and messages.
POST
Search Sessions
Search across all sessions to find matches based on string content in session data.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
Search Sessions
Path Parameters
The ID of your project
Request Headers
Bearer token authentication using your Project API Key (starts with
sk_). Format: Bearer {your-api-key}Request Body
The string to search for in session data. This will match against all session content including variables, messages, and other stored information.
Maximum number of results to return. Default: 50
Number of results to skip for pagination. Default: 0
Response
Array of matching sessions, ordered by most recently updated first
Pagination information
Example
Request
Response
Usage Notes
- Search String: The search is case-sensitive and matches against the entire JSON content of the session data
- Ordering: Results are ordered by
updatedAtin descending order (most recent first) - Pagination: Use
limitandoffsetto paginate through large result sets - Performance: For large datasets, consider using more specific search strings to improve query performance
Error Responses
| Status Code | Description |
|---|---|
| 400 | Missing or invalid search_string |
| 401 | Invalid authentication |
| 500 | Internal server error |
Related APIs
- Create Session - Create a new session
- Query Session - Get a specific session by ID
- End Session - End an existing session
