AI agent
Get AI agent usage
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:read ability
Query parameters
periodstringThe month as YYYY-MM, such as 2026-11. Leave out for the current month.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
answered_countintegerrequiredRuns this month that ended with an answer.
Format: int64
by_modelobject[] | nullrequiredThe month's call count for each model. Empty when there were no calls.
Show child attributesHide child attributes
callsintegerrequiredHow many calls were made to this model in the month.
Format: int64
modelstringrequiredId of the model.
by_outcomeobject[] | nullrequiredHow many of the month's runs ended each way. Empty when there were no runs.
Show child attributesHide child attributes
outcomestringrequiredHow the runs ended, such as answered, unknown, handoff, silent or skipped.
runs_countintegerrequiredHow many of the month's runs ended this way.
Format: int64
cached_input_tokensintegerrequiredHow many of the month's input tokens were read from the provider's cache.
Format: int64
capped_atstring | nullrequiredWhen the month's spending cap was reached. Null when it has not been.
Format: date-time
dailyobject[] | nullrequiredRuns for each day of the month, days in UTC.
Show child attributesHide child attributes
daystringrequiredThe day in UTC, as YYYY-MM-DD, such as 2026-11-23.
runs_countintegerrequiredHow many times the agent ran that day.
Format: int64
handoff_countintegerrequiredRuns this month that ended with a handoff to the team.
Format: int64
input_tokensintegerrequiredTokens sent to the models this month.
Format: int64
output_tokensintegerrequiredTokens the models wrote this month.
Format: int64
period_startstringrequiredFirst day of the month the numbers cover, as YYYY-MM-DD, such as 2026-11-01.
runs_countintegerrequiredHow many times the agent ran this month.
Format: int64
silent_countintegerrequiredRuns this month where the agent chose to say nothing.
Format: int64
unknown_countintegerrequiredRuns this month where the agent did not know the answer.
Format: int64
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.