Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Query Sessions endpoint allows you to retrieve session data with powerful filtering capabilities. Sessions group related requests together, enabling you to track conversations, multi-step workflows, or any sequence of API calls.Request Parameters
Search term to filter sessions by session ID or session name (case-insensitive)
Filter sessions by exact session name match
Timezone offset in minutes from UTC
Advanced filter node for complex queries. Can be a filter leaf, filter branch, or “all” to match all sessions.
Number of sessions to skip for pagination
Maximum number of sessions to return (max: 1000)
Response Fields
Array of session objects
Unique identifier for the session
Human-readable name for the session
ISO 8601 timestamp of when the session was created
ISO 8601 timestamp of the most recent request in this session
Total cost of all requests in the session (in USD)
Number of requests in the session
Total prompt tokens used across all requests
Total completion tokens generated across all requests
Sum of prompt and completion tokens
Average latency across all requests in milliseconds
Array of unique user IDs associated with this session
Example Request
Example Response
Filtering Sessions
You can use thefilter parameter to create complex queries:
Filter by session properties
Combine multiple filters
Use Cases
- Track conversations: Monitor multi-turn chat sessions
- Analyze workflows: Group related API calls together
- Cost monitoring: Track spending per session
- Performance analysis: Measure session duration and latency
- User analytics: Understand user behavior across sessions
