ai

list aggregated AI token usage

get/w/{workspace}/ai/usage

Path parameters

workspacestring required

Query parameters

daysinteger
group_by'day' | 'user' | 'model'
scope'workspace' | 'self'

workspace-wide usage (admin only) or the calling user's own

Response

usage buckets

truncatedboolean required

more buckets matched than were returned, so summing them under-reports

Changes