Get outcome distribution

View as MarkdownOpen in Claude

Returns the distribution of completed-session outcomes keyed by outcome code. Use to render outcome breakdown charts.

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

Counts of completed-session outcomes keyed by outcomeCode in the reporting window.