RouterOne

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.

GEThttps://gateway.routerone.ai/v1/credits

Authorization

header
AuthorizationstringRequired

Bearer <your RouterOne key> A RouterOne key created in the console. If you lose it, you can view it again on the keys page.

Response

200response

Balance and spend limits.

401response

Missing or invalid key.

Field visibility

Each field is returned only if the current key is permitted to view it; otherwise it is omitted.

FieldReturned when
balanceThe key belongs to a personal workspace or to an organization admin
keyQuotaThe key has spend limits
quotaThe 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.
  • balance is the available balance, net of amounts held for tasks in progress and expired promotional credit.
  • keyQuota and quota are reported for four periods: total (lifetime), day, week and month. For periods without a cap, limit and remaining are null.

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
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"
    }
  }
}