Get conversation analytics

http
GET /accounts/{account_id}/analytics/conversations

Summarize the conversation activity and model use in the projects of an account, optionally for one project or label; returns totals, configurable time buckets and recent conversations, with private titles limited to participants. Requires account.billing.read.

Parameters

NameInRequiredDescription
account_idpathYes
presetqueryWhole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.
fromqueryInclusive start. Supply both from and to; these bounds take precedence over preset.
toqueryExclusive end, no later than the end of today in timezone.
timezonequery
granularityqueryUTC hours, or local calendar days, Monday-based weeks and months.
group_byqueryGrouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.
comparequeryCompare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.
labelquery
project_referencequeryProject ID or slug that narrows the read to one project of the account. A project of another account is not found.

Responses

StatusDescription
200Conversation activity in the projects of the account. Private recent titles require participation.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error