Skip to main content
GET
/
trace_session_stats
{
  "data": [
    {
      "session_id": "<string>",
      "total_traces": 123,
      "first_trace_at": "2023-11-07T05:31:56Z",
      "last_trace_at": "2023-11-07T05:31:56Z",
      "user_id": "<string>",
      "agent_id": "<string>",
      "team_id": "<string>",
      "workflow_id": "<string>"
    }
  ],
  "meta": {
    "page": 0,
    "limit": 20,
    "total_pages": 0,
    "total_count": 0,
    "search_time_ms": 0
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

user_id
string | null

Filter by user ID

agent_id
string | null

Filter by agent ID

team_id
string | null

Filter by team ID

workflow_id
string | null

Filter by workflow ID

start_time
string | null

Filter sessions with traces created after this time (ISO 8601 format)

end_time
string | null

Filter sessions with traces created before this time (ISO 8601 format)

page
integer
default:1

Page number (1-indexed)

Required range: x >= 1
limit
integer
default:20

Number of sessions per page

Required range: 1 <= x <= 100
db_id
string | null

Database ID to query statistics from

Response

Trace statistics retrieved successfully

data
TraceSessionStats · object[]
required

List of session statistics

meta
PaginationInfo · object
required

Pagination metadata