usage

Get usage by user for an organization

get/admin/v1/organizations/{slug}/usage/by-user

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/organizations/{slug}/usage/by-user
  • Auth: HTTP bearer

Path parameters

slugstring required

Organization slug

Query parameters

start_datestring nullable

Start date (YYYY-MM-DD)

end_datestring nullable

End date (YYYY-MM-DD)

record_typestring nullable

Hadrian Extension: Filter by record type: "model" (LLM requests) or "tool" (server-side tool invocations). Omit to include both.

Response

Usage breakdown by user

audio_secondsinteger required
character_countinteger required
image_countinteger required
input_tokensinteger required
output_tokensinteger required
request_countinteger required
total_costnumber double required

Total cost in dollars

total_tokensinteger required
user_emailstring nullable

User email

user_idstring nullable

User ID (null for unattributed usage)

user_namestring nullable

User display name

Changes

No recorded changes to this operation across all 1 revision of this API.