Report how much of this project's agent credit allowance is used, daily and monthly.
Report how far through its agent credit allowance the project is, over both
windows that carry one: the day and the calendar month.
The allowance is a project-wide pool shared by every member, not a personal
one, and passing it warns rather than blocks: calls keep being served up to a
higher ceiling. Reading consumption through this agent is itself free and
consumes no credits.
Playground
Your organization, project and token stay in this browser's local storage and are sent
straight to the API — this page never sees them.
POST
item
No fields.
Schemas
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
object
Example
{}
Response
object
Properties
credit_statusstringrequired
Where the project stands overall: the worse of the daily and the monthly credit status
How far through its allowance one window is, and where that stands.
usage_percentnumber | nullrequired
Share of the window's allowance that has been consumed, above 100 once the allowance is passed. Null when there is no allowance to take a share of -- not a statement that calls are blocked
statusstringrequired
Where this window's consumption stands, and the only field that says whether calls are still being served: they are refused on ``blocked`` alone
Values:healthywarningoverblocked
resets_atstring (date-time)required
When the window rolls over and consumption returns to 0