Query Usage Summary

View as Markdown

Aggregate usage stats for the authenticated caller.

Authenticate with an rsk_ API key. Results are scoped to that single key — any org_id / member filters in the body are ignored. API-key reads are computed fresh.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

refreshbooleanOptionalDefaults to false

Request

This endpoint expects an object.
org_idstringRequired
sincestring or nullOptional
untilstring or nullOptional
modellist of strings or nullOptional
statuslist of strings or nullOptional
key_idlist of strings or nullOptional
team_idstring or nullOptional
member_user_idstring or nullOptional
end_user_idstring or nullOptional
limitinteger or nullOptional1-200Defaults to 50
offsetinteger or nullOptional>=0Defaults to 0

Response

Successful Response
total_requestsinteger
successful_requestsinteger
error_requestsinteger
prompt_tokensinteger or null
completion_tokensinteger or null
total_tokensinteger or null
total_cost_usdstring or null
by_modellist of objects
total_platform_fee_usdstring or null
total_byok_platform_fee_usdstring or null
total_byok_cost_usdstring or null
total_byok_requestsintegerDefaults to 0
total_platform_requestsintegerDefaults to 0
total_byok_tokensintegerDefaults to 0
total_platform_tokensintegerDefaults to 0
by_model_totalintegerDefaults to 0
cached_atstring or null

Errors

422
Unprocessable Entity Error