Get time-to-outcome distribution

View as MarkdownOpen in Claude

Returns the distribution of session durations from start to outcome, bucketed by minute ranges (e.g. 0-1, 1-3, 3-10, 10+).

Authentication

AuthorizationBearer

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

Query parameters

periodStartstringOptional

ISO 8601 date or datetime for the inclusive lower bound. Bare YYYY-MM-DD is treated as start-of-day UTC. Defaults to 12 months ago.

periodEndstringOptional

ISO 8601 date or datetime for the inclusive upper bound. Bare YYYY-MM-DD is treated as end-of-day inclusive. Defaults to now.

Response

datamap from strings to integers

Distribution of session durations bucketed in minutes; keys are bucket labels (e.g. 0-1, 1-3, 3-10, 10+).