Get session and step statistics

Returns aggregated session and step statistics for a time window. Supports grouping by project, workflow, or status, and a time-series breakdown by day, week, or month. The dateFrom window start accepts an ISO datetime, a date-only string, or a relative interval like -30d.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Start date for statistics. Can be ISO datetime string (e.g., "2024-01-15T00:00:00Z"), date-only (e.g., "2024-01-15" - start of day UTC), or interval string (e.g., "-30d" for 30 days ago)

string

End date for statistics. Can be ISO datetime string (e.g., "2024-01-15T23:59:59Z") or date-only (e.g., "2024-01-15" - interpreted as end of day UTC). Defaults to now if not provided.

data
array of strings

Comma-separated list of data types to return. Available values: "sessions", "steps". If not provided, returns both.

data
string

Filter statistics by project ID. If not provided, returns statistics for all projects in the organization.

string
enum

Group statistics by dimension. Available values: "project", "workflow", "status". When provided, returns grouped results instead of aggregated totals.

Allowed:
string
enum

Time granularity for time-series breakdown. Available values: "day", "week", "month". When provided, adds a timeSeries array to the response.

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json