Get Balance and Spend Limits
Last updated October 29, 2026
Retrieve the available account balance and the spend limits of an API key and its workspace.
Retrieves the available account balance and the spend limits of the current API key and its workspace. This endpoint is not billed.
https://gateway.routerone.ai/v1/creditsAuthorization
headerAuthorizationstringRequiredBearer <your RouterOne key> A RouterOne key created in the console. If you lose it, you can view it again on the keys page.
Response
200responseBalance and spend limits.
401responseMissing or invalid key.
Field visibility
Each field is returned only if the current key is permitted to view it; otherwise it is omitted.
| Field | Returned when |
|---|---|
balance | The key belongs to a personal workspace or to an organization admin |
keyQuota | The key has spend limits |
quota | The key belongs to an organization admin and the workspace has spend limits |
The account balance and workspace limits belong to the organization as a whole and are not returned to keys owned by regular members.
Amounts and periods
- Amounts are decimal strings in USD, such as
"48.25". Use decimal arithmetic to avoid floating-point errors. balanceis the available balance, net of amounts held for tasks in progress and expired promotional credit.keyQuotaandquotaare reported for four periods:total(lifetime),day,weekandmonth. For periods without a cap,limitandremainingarenull.
Spendable amount
The spendable amount is what the current key can actually spend. It is the smallest of the following, and never less than 0:
- the available account balance;
- the remaining spend limit of the key;
- the remaining spend limit of the workspace.
Each item is included only if the current key is permitted to view it, as described in Field visibility. If none is visible, the spendable amount is treated as unlimited. Member spend limits are not included in the calculation but still apply to requests.
The balance returned by the relay compatibility endpoints is the spendable amount.
curl https://gateway.routerone.ai/v1/credits \
-H "Authorization: Bearer $ROUTERONE_API_KEY"{
"balance": "48.25",
"keyQuota": {
"total": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"day": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"week": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"month": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
}
},
"quota": {
"total": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"day": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"week": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
},
"month": {
"limit": "100",
"used": "12.5",
"remaining": "87.5",
"resetsAt": "2026-11-01T00:00:00.000Z"
}
}
}