---
title: "Your plan, balance, key, flood cap and scope"
method: GET
path: "/v2/usage"
tags: ["Account"]
---

# Your plan, balance, key, flood cap and scope

`GET /v2/usage`

## Request

- Base URL: `https://api.oddsrelay.io`
- URL: `https://api.oddsrelay.io/v2/usage`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Free, flood-capped, and answered for a SUSPENDED account too (it shows the reason). Plain JSON. `scope` and `scope_version` are your account's scope (both null when it has none); `key.products` is your key's products within it.

## Response `200`

Usage.

- Usage
  - `plan` string, nullable, required
  - `rate_card` string, required
  - `account` object, required
    - `status` 'active' | 'suspended', required
    - `suspension_reason` string, nullable, required
    - `test` boolean, nullable, required
  - `tokens` object, required: `remaining` and `limit` read `unlimited` on an unlimited account; null while the balance is unknown.
    - `used` integer, nullable, required
    - `remaining` union, required
      - integer
      - string
    - `limit` union, required
      - integer
      - string
    - `resets_at` string, nullable, required: When the pool resets; on a trial, the trial's end when that comes first.
  - `regions` string[], required
  - `key` object, required
    - `id` string, required
    - `kind` 'server' | 'browser' | 'dashboard', required
    - `products` string[], required
    - `regions` string[], required
    - `token_cap` unknown, required
    - `tokens_used` unknown, required
  - `flood_cap` object, required: This account's flood cap: the requests it may make per 10 seconds and per minute (a dashboard key: its own, separate bucket). Accounts can hold different caps; this is yours.
    - `per_10s` integer, required
    - `per_min` integer, required
  - `scope` object, nullable, required: Your account's scope, or null when it has none: `{"products": {<product>: {<axis>: [values] | null}}}`. A product not listed is not readable; within one, a null axis means every value. The axes are each product's filters: `sports`, `markets`, `bookmakers`, `exchanges` on the six matched boards; `sports`, `markets`, `bookmakers` (venues of both kinds) on `raw`, which also answers `/v2/odds/event/{id}`. Products and axes are always listed in that order and each list sorted. A value a call names outside it is a 403 `*_not_in_plan` with `valid`; a filter left out is trimmed to it.
  - `scope_version` integer, nullable, required: The version of `scope`, raised by each change; null when the account has no scope.

## Other responses

- `400`: 400: a parameter this route does not read or sent twice, a malformed value, gzip refused on standard, dutching or raw, or a filter value the catalogue does not know.
- `401`: 401: no key, or a key that is not accepted. Carries `WWW-Authenticate`; no token or flood-cap headers.
- `403`: 403: the account, the key's scope, the region, the plan or the account's scope refuses this call.
- `429`: 429 with `Retry-After`. `too_many_requests`: the account's flood cap or its in-flight cap (with `X-RateLimit-*`). `too_many_from_address`: the per-address shield, before authentication (no token or flood-cap headers). The front door's own per-address cap also answers 429 with `Retry-After`, but with an EMPTY body and no `code`. Both per-address caps sit well above an account's flood cap.
- `500`: 500 `internal_error`. If it came after a spend, `X-Tokens-Cost` reads 0 and the spend stands.
- `502`: 502 from the front door when the API behind it does not answer: an empty body, no `code`. Retry with backoff.
- `503`: 503 with `Retry-After`: `temporarily_unavailable` (a board, the key registry or a connection is not ready; retry) or `raw_not_enabled` (the key may use raw but the raw board is not held here).

## Changes

- **2026-10-26** `9db71e3e29bb`: 4 warning, 12 info
  - added the new `date_out_of_range` enum value to the `allOf[subschema #2]/error/code` response property for the response status `400`
  - added the new `exchange_history_unavailable` enum value to the `allOf[subschema #2]/error/code` response property for the response status `403`
  - added the new `files_need_whole_scope` enum value to the `allOf[subschema #2]/error/code` response property for the response status `403`
  - added the new `too_many_downloads` enum value to the `allOf[subschema #2]/error/code` response property for the response status `429`
  - …12 more

[Operation history](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/changes/v2/usage/get.md)

---

[API](https://skmtc.dev/oddsrelay/apis/oddsrelay-api.md) - [All operations](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/revisions/c9a116d43241?raw)
