usage
Get usage by pricing source for a user
Changed onget/admin/v1/users/{user_id}/usage/by-pricing-source
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /admin/v1/users/{user_id}/usage/by-pricing-source
- Auth: HTTP bearer
Path parameters
user_idstring uuid required
User ID
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 pricing source
Changes
- info
added the new optional
queryrequest parameterrecord_type
- info
- info
endpoint added
- info