usage

Get global usage by project

get/admin/v1/usage/by-project

Request

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

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 project

audio_secondsinteger required
character_countinteger required
image_countinteger required
input_tokensinteger required
output_tokensinteger required
project_idstring nullable
project_namestring nullable
request_countinteger required
total_costnumber double required
total_tokensinteger required

Changes

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