Account

Your plan, balance, key, flood cap and scope

Changed on

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.

get/v2/usage

Request

  • Base URL
    https://api.oddsrelay.io
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Response

Usage.

Usage required
plan, string nullable required
rate_card, string required
account, object required
tokens, object required

remaining and limit read unlimited on an unlimited account; null while the balance is unknown.

regions, string[] required
key, object 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.

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.

Changes

    • warning

      added the new date_out_of_range enum value to the allOf[subschema #2]/error/code response property for the response status

    • warning

      added the new exchange_history_unavailable enum value to the allOf[subschema #2]/error/code response property for the response status

    • warning

      added the new files_need_whole_scope enum value to the allOf[subschema #2]/error/code response property for the response status

    13 more changes in this revision