Usage By Language

Return workspace generated-audio usage grouped by language.

share is a 0..1 fraction. When activity_view is supplied, rows use that tab’s local-calendar period; otherwise they preserve legacy range behavior.

Authentication

AuthorizationBearer
Clerk JWT token
OR
AuthorizationBearer

Onepin live API key (op_live_...). Test and public keys are reserved in Phase 1.

Headers

X-Workspace-Idstring or nullOptional

Query parameters

rangeenumOptionalDefaults to 30d

Rolling local calendar-day range.

Allowed values:
activity_viewenum or nullOptional
Optional activity view period to align language rows with the selected Usage tab. When supplied, range is ignored and range in the response is null.
Allowed values:
timezonestringOptionalDefaults to UTC
IANA timezone for local day bucketing.

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error