Get Trace Statistics by Session
Retrieve aggregated trace statistics grouped by session ID with pagination.
Provides insights into:
- Total traces per session
- First and last trace timestamps per session
- Associated user and agent information
Filtering Options:
- By user ID
- By agent ID
Use Cases:
- Monitor session-level activity
- Track conversation flows
- Identify high-activity sessions
- Analyze user engagement patterns
Documentation Index
Fetch the complete documentation index at: https://docs.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter by user ID
Filter by agent ID
Filter by team ID
Filter by workflow ID
Filter sessions with traces created after this time (ISO 8601 format with timezone, e.g., '2025-11-19T10:00:00Z' or '2025-11-19T15:30:00+05:30'). Times are converted to UTC for comparison.
Filter sessions with traces created before this time (ISO 8601 format with timezone, e.g., '2025-11-19T11:00:00Z' or '2025-11-19T16:30:00+05:30'). Times are converted to UTC for comparison.
Page number (1-indexed)
x >= 1Number of sessions per page
x >= 1Database ID to query statistics from