Get Ai Usage Details

GET/api/v1/billing/ai-usage/details

Return detailed AI usage stats: top users, model breakdown, daily trend.

Query Parameters:

  • scope: Optional. Set to 'firm' to see firm-wide AI usage.

Returns: Summary, top_users, by_model, daily arrays.

Operation ID: get_ai_usage_details_api_v1_billing_ai_usage_details_get·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

scopestring

Set to 'firm' to aggregate across all firm businesses.

Responses

200Successful Response

successboolean
messagestring
codestring
dataGetAiUsageDetailsResponse

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject