{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base",
  "info": {
    "title": "ValueOddsAPI",
    "version": "2.0.0",
    "description": "Normalised odds from 21+ bookmakers with stable IDs. Read-only REST, JSON (gzip when you send\n`Accept-Encoding: gzip`), UTC timestamps.\n\n# Quick start\n\n```\ncurl -H \"X-API-Key: $VOA_KEY\" \"https://api.valueoddsapi.com/v2/events?sport=football&limit=5\"\ncurl -H \"X-API-Key: $VOA_KEY\" \"https://api.valueoddsapi.com/v2/odds?event=evt_7k2m4q9x&main_line=true&limit=5000\"\n```\n\n# Authentication\n\nSend the key in `X-API-Key: voa_live_...` (or `Authorization: Bearer voa_live_...`). Keys in the query string are\nrejected, because URLs end up in logs. `voa_test_...` keys belong to the sandbox account.\n\n# Plans and products\n\nOne API; your plan decides which products a key may use. Every endpoint belongs to one product (shown as\n**Product** in each description and as `x-voa-product` in this document):\n\n| Product | Endpoints | Core | Pro | Complete |\n|---|---|---|---|---|\n| `odds` | `/v2/odds`, `/v2/odds/changes`, `include=odds` | prematch | prematch + live | prematch + live |\n| `history` | `/v2/odds/history`, `/v2/odds/closing` (all history, no depth limit) | yes | yes | yes |\n| `fair` | `fair` and `edge_pct` on price rows, `/v2/edges` | yes | yes | yes |\n| `stream` | WebSocket `/v2/stream` and SSE `/v2/stream/sse`, simultaneous connections | 2 | 5 | 20 |\n| `stats` | Stats API (placeholder: `/v2/stats/ping`) | add-on | add-on | all sports |\n| `reference` | sports, competitions, teams, events, markets, bookmakers, coverage, id-map | yes | yes | yes |\n\nBookmakers: Core 15 and Pro 40 of your choice, Complete all (including future ones). Requests per hour: 5,000 /\n30,000 / 100,000. A product outside your plan gives `403 forbidden_product` with `upgrade_url`. `GET /v2/me`\nshows your compiled entitlements: plan, version, terms version, products, bookmakers, limits, licence, SLA, status,\nrenewal or cancellation date and scheduled changes. Your terms are locked to your plan version while the\nsubscription runs.\n\n# Pagination\n\nList endpoints return `{\"data\": [...], \"next_cursor\": \"...\"}`. Pass `next_cursor` as `cursor` (unchanged, with the\nsame filters) to get the next page; `null` means the last page. Cursors are keyset-based, so pages stay consistent\nwhile data changes, and signed, so a modified cursor is a `validation_error`. `/v2/odds/changes` uses `since`\ninstead and always returns a cursor to poll with: every write is delivered at least once, in commit-safe write\norder, normally within a second of the commit; prices that leave what your plan shows (kick-off without live, became unmapped) come once\nas tombstones with `status: removed` and `hidden_reason`.\n\n# Filters\n\nMulti-value filters accept comma-separated values and repeated parameters: `bookmaker=bk_bet365,bk_pinnacle` equals\n`bookmaker=bk_bet365&bookmaker=bk_pinnacle`. There is no cap on the number of values (up to 500 per parameter).\nUnknown parameters are a `validation_error`, so typos never silently return everything.\n\n# IDs\n\nIDs are assigned, opaque and never reused (`evt_`, `tm_`, `cmp_`, `pl_`; fixed `spt_football`, `bk_bet365`).\nWhen two events turn out to be the same, the old ID gets `merged_into` and keeps working everywhere: filters follow\nit, and responses list the mapping in `meta.merged`.\n\n# Price rows\n\n`price_id` = `{event}:{market}:{line|-}:{outcome}:{player|-}:{bookmaker}` and is the same in every endpoint;\nupsert on it. `selection_id` is the same across bookmakers (compare with a GROUP BY). `changed_at` = when the price\nlast changed, `checked_at` = when we last saw it. `fair` is the market fair price for the selection, derived from\nthe bookmaker market (method not disclosed) and the same on every bookmaker's row; `edge_pct` is our estimate of the\nprice's expected return against the market. Both are `null` when no reliable fair price is available.\n\n`is_main_line`: per event, market, bookmaker and player, the open line whose two sides (over/under, home/away,\nyes/no) are priced closest to even. Markets without a line are always `true`; unmapped prices `null`.\n\n# Rate limits\n\nEach response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds, top of the\nnext UTC hour), and `X-RateLimit-Warning` once 80% is used. Over the quota you get `429 rate_limited` with\n`Retry-After` (no overage billing). Your plan also limits requests in flight at the same time (`limits.concurrency`:\nCore 2, Pro 4, Complete 8); more wait briefly, then get `429`. `GET /v2/me` is free and works in every subscription\nstate.\n\n# Errors\n\nEvery error is `{\"error\": {\"code\", \"message\", \"docs_url\", \"request_id\"}}`. The `code` is stable and machine-readable.\n\n## validation_error\n\nA parameter is missing, unknown or has an invalid value. The message names it.\n\n## missing_api_key\n\nSend your key in the `X-API-Key` header (or `Authorization: Bearer <key>`).\n\n## invalid_api_key\n\nThe key is unknown, revoked, or the account is suspended.\n\n## payment_required\n\nA payment is overdue and the grace period has ended. Access returns as soon as the payment is registered.\n\n## subscription_ended\n\nThere is no running subscription for this account (it was cancelled and the notice period has ended, or none was started). See `upgrade_url`.\n\n## forbidden_product\n\nYour plan does not include this product (e.g. history, live odds or the Stats API). See `upgrade_url` and `GET /v2/me`.\n\n## forbidden_bookmaker\n\nYour plan does not include one of the requested bookmakers (see `GET /v2/me`).\n\n## forbidden_sport\n\nYour plan does not include one of the requested sports (see `GET /v2/me`).\n\n## forbidden_live\n\nYour plan does not include in-play (live) odds.\n\n## forbidden_unmapped\n\nYour plan does not include unmapped prices (`include=unmapped`).\n\n## not_found\n\nThe resource or path does not exist.\n\n## method_not_allowed\n\nThe path exists, but not with this HTTP method (the API is read-only: GET).\n\n## rate_limited\n\nHourly quota used, too many concurrent requests, or too many failed key attempts. Wait `Retry-After` seconds (the hourly quota resets at the top of the UTC hour).\n\n## internal_error\n\nUnexpected error on our side. Quote the request_id if you contact support.\n\n## unavailable\n\nTemporarily unavailable or the query took too long. Retry, or narrow the filters.\n\n# Changelog\n\n- 2026-11-14: v2.0.0, first release of the v2 read API: plans as products (`x-voa-product`, `forbidden_product`,\n  `payment_required`, `subscription_ended`, `upgrade_url`), `/v2/me` with compiled entitlements, tombstones and a\n  delivery guarantee in `/v2/odds/changes`, signed cursors, `/v2/stats/ping` placeholder.\n"
  },
  "servers": [
    {
      "url": "https://api.valueoddsapi.com"
    }
  ],
  "security": [
    {
      "ApiKeyHeader": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Odds",
      "description": "Prices, changes, history, opening/closing."
    },
    {
      "name": "Events",
      "description": "Events (matches)."
    },
    {
      "name": "Reference",
      "description": "Sports, competitions, teams, bookmakers, markets, ID mapping."
    },
    {
      "name": "Account",
      "description": "Your key, plan and usage."
    },
    {
      "name": "Streaming",
      "description": "Real-time stream: WebSocket and Server-Sent Events."
    },
    {
      "name": "Stats",
      "description": "Stats API (placeholder until it ships)."
    },
    {
      "name": "Meta",
      "description": "Health, this document."
    }
  ],
  "paths": {
    "/v2/sports": {
      "get": {
        "operationId": "listSports",
        "summary": "Sports",
        "description": "All sports with the number of active (prematch or live) events. `entitled` says whether your plan includes the sport.\n\n**Product:** `reference` = reference (included in every plan).",
        "tags": [
          "Reference"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sport"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "$ref": "#/components/responses/subscription_ended"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-voa-product": "reference"
      }
    },
    "/v2/bookmakers": {
      "get": {
        "operationId": "listBookmakers",
        "summary": "Bookmakers",
        "description": "Bookmakers with sister brands (`sister_of` = same odds platform), the sports they currently cover and live document counts (bookmaker x event scraped in the last 10 minutes).\n\n**Product:** `reference` = reference (included in every plan).",
        "tags": [
          "Reference"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Bookmaker"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "$ref": "#/components/responses/subscription_ended"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-voa-product": "reference"
      }
    },
    "/v2/markets": {
      "get": {
        "operationId": "listMarkets",
        "summary": "Market catalog",
        "description": "Every market type: `{sport}:{stat}.{scope}.{period}.{type}` with labels (en, da), outcome set and line kind. Line, outcome and player are fields on the price, never part of the key.\n\n**Product:** `reference` = reference (included in every plan).\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 1000, max 1000.",
        "tags": [
          "Reference"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug or ID. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Market type, e.g. `ou`, `1x2`, `ah`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "description": "Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "match",
                  "home",
                  "away",
                  "player",
                  "competitor"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 1000, max 1000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Market"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "$ref": "#/components/responses/subscription_ended"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-voa-product": "reference"
      }
    },
    "/v2/competitions": {
      "get": {
        "operationId": "listCompetitions",
        "summary": "Competitions",
        "description": "**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's sports are returned; asking for another one is 403.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 1000.",
        "tags": [
          "Reference"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Case-insensitive name search.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Country as stored (exact match).",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 1000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Competition"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_sport",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "sport"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/teams": {
      "get": {
        "operationId": "listTeams",
        "summary": "Teams and participants",
        "description": "Teams, and for tennis and darts the players (participants).\n\n**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's sports are returned; asking for another one is 403.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 1000.",
        "tags": [
          "Reference"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Case-insensitive name search.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 1000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_sport",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "sport"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "Events",
        "description": "Events ordered by start time. Without `status`, `from` or `to` you get prematch and live events (prematch only without live access). Status is derived from the start time (see the Event schema).\n\n**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's sports are returned; asking for another one is 403. Without live access, prices of started events are hidden and asking for a started event (or status=live) is 403.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 1000.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "competition",
            "in": "query",
            "required": false,
            "description": "Competition ID(s). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^cmp_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "team",
            "in": "query",
            "required": false,
            "description": "Team ID(s): events where the team plays home or away. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^tm_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Start time >= (ISO 8601).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Start time < (ISO 8601).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "prematch",
                  "live",
                  "ended"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 1000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Event"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "merged": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Requested IDs that were merged: old → new."
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_sport / forbidden_live",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "sport",
          "live"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/events/{id}": {
      "get": {
        "operationId": "getEvent",
        "summary": "One event",
        "description": "One event. A merged (old) ID returns the live event's data with `id` = the old ID and `merged_into` = the new ID. `include=odds` adds the prices (open + suspended), at most 5000; when there are more, `meta.odds_next` links to the next page of `GET /v2/odds`. `include=odds` needs the `odds` product.\n\n**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices. Without live access, prices of started events are hidden and asking for a started event (or status=live) is 403.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "pattern": "^evt_[a-z0-9]{6,16}$",
              "maxLength": 200
            },
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "odds",
                  "formats",
                  "unmapped"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Event"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "odds_next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Only when `include=odds` was capped at 5000 prices: pass as `cursor` to `GET /v2/odds` with the same filters (see `odds_next`)."
                        },
                        "odds_next": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Ready-made path for the next page of prices."
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_bookmaker / forbidden_sport / forbidden_unmapped / forbidden_live / forbidden_product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/not_found"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "unmapped",
          "live"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/odds": {
      "get": {
        "operationId": "listOdds",
        "summary": "Prices",
        "description": "Price rows (docs §4), ordered by `price_id`. Filter by event for the full book of a match (one round trip with `limit=5000`). `fair` is the market fair price and `edge_pct` the price's edge against it (product `fair`; null when there is no fair price).\n\n**Product:** `odds` = odds (prematch; live needs a plan with the live phase).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices. Without live access, prices of started events are hidden and asking for a started event (or status=live) is 403.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 5000.",
        "tags": [
          "Odds"
        ],
        "parameters": [
          {
            "name": "event",
            "in": "query",
            "required": false,
            "description": "Event ID(s). Merged (old) IDs are followed. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^evt_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "outcome",
            "in": "query",
            "required": false,
            "description": "Outcome(s), e.g. `over`, `home`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_+&/<>.\\-]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Price status. `removed` = gone at the bookmaker (last known price). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "suspended",
                  "removed"
                ]
              },
              "maxItems": 500,
              "default": [
                "open",
                "suspended"
              ]
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "main_line",
            "in": "query",
            "required": false,
            "description": "true = only main lines (see `is_main_line`); false = only alternates. Needs `event` or `market`.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "`unmapped` adds unmapped prices (plan permitting); `formats` adds `american` and `probability`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unmapped",
                  "formats"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 5000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PriceRow"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "merged": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Requested IDs that were merged: old → new."
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_sport / forbidden_unmapped / forbidden_live",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "unmapped",
          "live"
        ],
        "x-voa-product": "odds"
      }
    },
    "/v2/odds/changes": {
      "get": {
        "operationId": "listOddsChanges",
        "summary": "Changes since a cursor",
        "description": "Cheap polling: every price row we wrote (new price, status change, removal, mapping change) after `since`, in write order. Start with `since` = an ISO timestamp (max 24 h back; default: 60 s ago), then always pass the returned `next_cursor` (it is returned even when there are no changes; a cursor older than 24 h is rejected: resync with `/v2/odds`). Removed prices are included with `status: removed`.\n\n**Delivery guarantee:** every write is delivered at least once, in commit-safe write order (database transaction id): a row is returned once every write transaction that started before it has finished (normally well under a second), so a write that commits late can never fall behind a cursor that has already moved past it. A cursor from an older version of this endpoint is rejected: resync with `/v2/odds`.\n\n**Tombstones:** when a price leaves what your plan lets you see, it is sent once with `status: removed`, `price: null` and `hidden_reason`: `event_started` at kick-off when your plan has no live phase, `not_entitled` when a price becomes unmapped and your plan has no unmapped prices.\n\nOrder is our write order, not `changed_at` (the bookmaker-side change time can be older than the write, so ordering by it could skip rows). `meta.until` is the write time of the last row (informational).\n\n**Product:** `odds` = odds (prematch; live needs a plan with the live phase).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices.",
        "tags": [
          "Odds"
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "`next_cursor` from the previous call, or an ISO 8601 timestamp.",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "event",
            "in": "query",
            "required": false,
            "description": "Event ID(s). Merged (old) IDs are followed. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^evt_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unmapped",
                  "formats"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per call (default 1000, max 5000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/PriceRow"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "hidden_reason": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "event_started",
                                  "not_entitled",
                                  null
                                ],
                                "description": "Set on tombstones (`status: removed`, `price: null`): the price left what your plan lets you see. `event_started` = the event started and your plan has no live phase; `not_entitled` = the price became unmapped and your plan has no unmapped prices. null on ordinary rows."
                              }
                            }
                          }
                        ]
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `since` on the next call (always returned)."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "has_more": {
                          "type": "boolean",
                          "description": "More changes are waiting: call again right away with next_cursor."
                        },
                        "until": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "Write time of the last change in this response."
                        },
                        "entitlements_changed": {
                          "type": "boolean",
                          "description": "Your plan's entitlements changed since this cursor was issued (e.g. bookmakers removed). Prices you may no longer see are not sent as tombstones: resync with `GET /v2/odds`."
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_sport / forbidden_unmapped",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "unmapped"
        ],
        "x-voa-product": "odds"
      }
    },
    "/v2/odds/history": {
      "get": {
        "operationId": "getOddsHistory",
        "summary": "History of one price",
        "description": "Every recorded change (price or status) of one `price_id`, oldest first; all history, no depth limit. `meta.price` is the current price row. Without live access only points before the event's start are returned, and `meta.price` is left out once the event has started.\n\n**Product:** `history` = history (odds history and opening/closing lines; all history, no depth limit).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 5000.",
        "tags": [
          "Odds"
        ],
        "parameters": [
          {
            "name": "price_id",
            "in": "query",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "pattern": "^evt_[a-z0-9]+:.+:bk_[a-z0-9_]+(~[0-9a-f]{8})?$",
              "maxLength": 512
            },
            "example": "evt_7k2m4q9x:football:goals.match.ft.ou:2.5:over:-:bk_pinnacle"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 5000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HistoryPoint"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "price": {
                          "$ref": "#/components/schemas/PriceRow"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_sport / forbidden_unmapped",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/not_found"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "unmapped"
        ],
        "x-voa-product": "history"
      }
    },
    "/v2/odds/closing": {
      "get": {
        "operationId": "getClosingOdds",
        "summary": "Opening and closing prices (CLV)",
        "description": "Per price of one event: the first open price we recorded (`opening`) and the last open price before the start (`closing`). Before kick-off `closing` is the latest price so far and `meta.final` is false.\n\n**Product:** `history` = history (odds history and opening/closing lines; all history, no depth limit).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 5000.",
        "tags": [
          "Odds"
        ],
        "parameters": [
          {
            "name": "event",
            "in": "query",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "pattern": "^evt_[a-z0-9]{6,16}$",
              "maxLength": 200
            },
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unmapped",
                  "formats"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 5000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ClosingRow"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "event_id": {
                          "type": "string"
                        },
                        "start_time": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "final": {
                          "type": "boolean",
                          "description": "true once the event has started (closing prices are final)."
                        },
                        "merged": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_unmapped",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/not_found"
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "unmapped"
        ],
        "x-voa-product": "history"
      }
    },
    "/v2/edges": {
      "get": {
        "operationId": "listEdges",
        "summary": "Prices above the market fair price",
        "description": "Open, mapped prices whose `edge_pct` is above `min_edge` (default 0: every price above the market fair price), highest edge first. `fair` is derived from the bookmaker market for the same selection (method not disclosed); `fair.sample` is the number of independent bookmakers behind it. Without live access only prematch events are included; with live access prematch and live events. Same filters and entitlements as `/v2/odds`.\n\n**Product:** `fair` = fair.\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. Without live access, prices of started events are hidden and asking for a started event (or status=live) is 403.\n\nPaginated with `cursor` / `next_cursor` (keyset; stable while data changes). `limit` default 100, max 1000.",
        "tags": [
          "Odds"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "event",
            "in": "query",
            "required": false,
            "description": "Event ID(s). Merged (old) IDs are followed. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^evt_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "min_edge",
            "in": "query",
            "required": false,
            "description": "Only prices with `edge_pct` greater than this (percent).",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000,
              "default": 0.0
            },
            "example": 2.5
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "`formats` adds `american` and `probability`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "formats"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "odds_format",
            "in": "query",
            "required": false,
            "description": "Adds `american` or `probability` next to `price` (decimal is always present).",
            "schema": {
              "type": "string",
              "enum": [
                "decimal",
                "american",
                "probability"
              ],
              "default": "decimal"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from `next_cursor` of the previous page.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-]+$",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (default 100, max 1000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PriceRow"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "merged": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Requested IDs that were merged: old → new."
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_sport / forbidden_live",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "live"
        ],
        "x-voa-product": "fair"
      }
    },
    "/v2/coverage": {
      "get": {
        "operationId": "getCoverage",
        "summary": "Mapping coverage",
        "description": "Per bookmaker and sport: live prices by mapping status (mapped, suggested = unmapped with a suggested market, unmapped, outcome_unparsed) and the raw market names in the review queue (seen in the last 7 days). Refreshed every ~30 s.\n\n**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403.",
        "tags": [
          "Reference"
        ],
        "parameters": [
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CoverageRow"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_bookmaker / forbidden_sport",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/id-map": {
      "get": {
        "operationId": "idMap",
        "summary": "Find our ID from another system's ID",
        "description": "Looks up `external_ids` on events, teams, competitions and players, and bookmaker event IDs (`provider` = a bookmaker, e.g. `bet365` / `bk_bet365`, with the bookmaker's own event ID). Merged entities are followed (`resolved_id`). Bookmaker event IDs are only searched for bookmakers in your plan; a provider that is both (e.g. `pinnacle`) still finds `external_ids`.\n\n**Product:** `reference` = reference (included in every plan).\n\n**Entitlements:** Only the plan's sports are returned; asking for another one is 403.",
        "tags": [
          "Reference"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "required": true,
            "description": "sofascore, flashscore, betradar, pinnacle, betfair, opta, or a bookmaker.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_]{2,40}$",
              "maxLength": 200
            },
            "example": "betradar"
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "example": "sr:match:51234567"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/IdMapMatch"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page; null = last page."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_sport",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "sport"
        ],
        "x-voa-product": "reference"
      }
    },
    "/v2/me": {
      "get": {
        "operationId": "getMe",
        "summary": "Your key, plan, entitlements and usage",
        "description": "Your compiled entitlements: plan and version, terms version, status, products, bookmakers, limits, licence, SLA, renewal or cancellation date, scheduled changes, and usage this hour. Does not count against the quota and works in every subscription state (also when rate limited, suspended or ended), so it is the place to see why a key is refused.\n\n**Product:** `account` = account (always available with a valid key).",
        "tags": [
          "Account"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Me"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-voa-product": "account"
      }
    },
    "/v2/stats/ping": {
      "get": {
        "operationId": "statsPing",
        "summary": "Stats API access check",
        "description": "**Placeholder** until the Stats API ships: answers `{\"ok\": true, \"sport\": ...}` when your plan includes the Stats API for `sport` (Complete, or the add-ons stats_one_sport / stats_all_sports), otherwise `403 forbidden_product`.\n\n**Product:** `stats` = stats (Stats API per sport).",
        "tags": [
          "Stats"
        ],
        "parameters": [
          {
            "name": "sport",
            "in": "query",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
              "maxLength": 200
            },
            "example": "football"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "sport"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "sport": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-RateLimit-Warning": {
                "$ref": "#/components/headers/X-RateLimit-Warning"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-voa-product": "stats"
      }
    },
    "/healthz": {
      "get": {
        "operationId": "health",
        "summary": "Health check",
        "description": "",
        "tags": [
          "Meta"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "security": []
      }
    },
    "/v2/openapi.json": {
      "get": {
        "operationId": "openapi",
        "summary": "This OpenAPI 3.1 document",
        "description": "",
        "tags": [
          "Meta"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "security": []
      }
    },
    "/v2/docs": {
      "get": {
        "operationId": "docs",
        "summary": "API reference (Redoc)",
        "description": "",
        "tags": [
          "Meta"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "security": []
      }
    },
    "/v2/stream": {
      "get": {
        "operationId": "openStream",
        "summary": "Real-time stream (WebSocket)",
        "description": "WebSocket upgrade (`wss://`). Send the key in `X-API-Key` (or `Authorization: Bearer`) on the upgrade request; keys in the URL are rejected. Errors before the upgrade (bad key, plan, connection limit, quota) are normal HTTP errors in the usual error format.\n\nOne connection carries everything your subscription matches: price changes, status changes, tombstones and event status. Messages have the same shape as REST (`PriceRow`); `price_id` is the same everywhere, so upsert on it.\n\n**Flow:** connect → `hello` → send `subscribe` → `subscribed` → `snapshot` (in parts; `final: true` on the last) → `price` / `status` / `event` deltas, `heartbeat` every 15 s. Data messages carry `seq` (gap-free per stream). After a disconnect, reconnect within 5 minutes and send `{\"type\":\"resume\",\"epoch\":...,\"seq\":<last seq you processed>}`: the missed messages are replayed; otherwise you get `snapshot_required` and subscribe again.\n\n**Entitlements:** only your plan's bookmakers and sports; without the live phase (Core) prices of started events are never sent and every price you were shown gets a tombstone at kick-off (`status: removed`, `price: null`, `hidden_reason: event_started`). `fair`/`edge_pct` need the fair product. Simultaneous connections (WebSocket and SSE together) are limited by your plan (`limits.ws_connections`: Core 2, Pro 5, Complete 20, sandbox 1); one more is `429 rate_limited`.\n\n**Quota:** opening a connection counts as 1 request; messages do not count.\n\n**Slow readers:** if you fall behind by more than ~1 MB, queued messages are dropped, you get `resync_required` and a fresh snapshot; more than 3 times in 10 minutes closes the connection (4429).\n\n**Client messages:** `subscribe`, `unsubscribe`, `resume`, `ping` (→ `pong`). See `x-websocket` for the message schemas.\n\n**Close codes:**\n\n| Code | Meaning |\n|---|---|\n| 1011 | internal_error |\n| 1012 | service restart: reconnect and send resume |\n| 4400 | validation_error: too many invalid messages from the client |\n| 4401 | invalid_api_key: the key was revoked or the account is suspended |\n| 4402 | payment_required: a payment is overdue and the grace period has ended |\n| 4403 | subscription_ended / forbidden_product: the subscription ended or no longer includes the stream |\n| 4409 | replaced: this stream was resumed on another connection |\n| 4429 | slow_consumer: the client read too slowly (resync_required more than the allowed number of times, or too many unread messages); or connection limit lowered: your plan now allows fewer stream connections and the newest ones above the limit were closed (see the error message) |\n\n**Product:** `stream` = stream (WebSocket/SSE; simultaneous connections per plan: `limits.ws_connections`).",
        "tags": [
          "Streaming"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          },
          "101": {
            "description": "Switching Protocols: the WebSocket is open. Messages: `x-websocket`."
          }
        },
        "x-voa-product": "stream",
        "x-websocket": {
          "url": "wss://api.valueoddsapi.com/v2/stream",
          "client_messages": {
            "$ref": "#/components/schemas/StreamClientMessage"
          },
          "server_messages": {
            "$ref": "#/components/schemas/StreamServerMessage"
          },
          "close_codes": {
            "1011": "internal_error",
            "1012": "service restart: reconnect and send resume",
            "4400": "validation_error: too many invalid messages from the client",
            "4401": "invalid_api_key: the key was revoked or the account is suspended",
            "4402": "payment_required: a payment is overdue and the grace period has ended",
            "4403": "subscription_ended / forbidden_product: the subscription ended or no longer includes the stream",
            "4409": "replaced: this stream was resumed on another connection",
            "4429": "slow_consumer: the client read too slowly (resync_required more than the allowed number of times, or too many unread messages); or connection limit lowered: your plan now allows fewer stream connections and the newest ones above the limit were closed (see the error message)"
          }
        }
      }
    },
    "/v2/stream/sse": {
      "get": {
        "operationId": "openStreamSse",
        "summary": "Real-time stream (Server-Sent Events)",
        "description": "Server-Sent Events with the same messages as the WebSocket (`event:` = message type, `data:` = the JSON message, `id:` = `<epoch>:<seq>` on data messages). The subscription is given as query parameters; to resume after a disconnect send the last `id` as `Last-Event-ID` (EventSource does this by itself). For server-side clients: the key must be sent in a header, which the browser's EventSource cannot do.\n\nOne connection carries everything your subscription matches: price changes, status changes, tombstones and event status. Messages have the same shape as REST (`PriceRow`); `price_id` is the same everywhere, so upsert on it.\n\n**Flow:** connect → `hello` → send `subscribe` → `subscribed` → `snapshot` (in parts; `final: true` on the last) → `price` / `status` / `event` deltas, `heartbeat` every 15 s. Data messages carry `seq` (gap-free per stream). After a disconnect, reconnect within 5 minutes and send `{\"type\":\"resume\",\"epoch\":...,\"seq\":<last seq you processed>}`: the missed messages are replayed; otherwise you get `snapshot_required` and subscribe again.\n\n**Entitlements:** only your plan's bookmakers and sports; without the live phase (Core) prices of started events are never sent and every price you were shown gets a tombstone at kick-off (`status: removed`, `price: null`, `hidden_reason: event_started`). `fair`/`edge_pct` need the fair product. Simultaneous connections (WebSocket and SSE together) are limited by your plan (`limits.ws_connections`: Core 2, Pro 5, Complete 20, sandbox 1); one more is `429 rate_limited`.\n\n**Quota:** opening a connection counts as 1 request; messages do not count.\n\n**Slow readers:** if you fall behind by more than ~1 MB, queued messages are dropped, you get `resync_required` and a fresh snapshot; more than 3 times in 10 minutes closes the connection (4429).\n\n**Product:** `stream` = stream (WebSocket/SSE; simultaneous connections per plan: `limits.ws_connections`).\n\n**Entitlements:** Only the plan's bookmakers are returned; asking for another one is 403. Only the plan's sports are returned; asking for another one is 403. `include=unmapped` requires a plan with unmapped prices.",
        "tags": [
          "Streaming"
        ],
        "parameters": [
          {
            "name": "event",
            "in": "query",
            "required": false,
            "description": "Event ID(s). Merged (old) IDs are followed. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^evt_[a-z0-9]{6,16}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "evt_7k2m4q9x"
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Market ID(s) from `GET /v2/markets`. Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z_]+:[a-z0-9_]+\\.[a-z_]+\\.[a-z0-9_]+\\.[a-z0-9_]+$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football:goals.match.ft.ou"
          },
          {
            "name": "bookmaker",
            "in": "query",
            "required": false,
            "description": "Bookmaker ID (`bk_pinnacle`) or slug (`pinnacle`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(bk_|BK_)?[A-Za-z0-9_]{2,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "bk_pinnacle"
          },
          {
            "name": "sport",
            "in": "query",
            "required": false,
            "description": "Sport slug (`football`) or ID (`spt_football`). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(spt_)?[a-z][a-z0-9_]{1,40}$",
                "maxLength": 200
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false,
            "example": "football"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "`unmapped` adds unmapped prices (plan permitting). Comma-separated; repeating the parameter also works.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unmapped"
                ]
              },
              "maxItems": 500
            },
            "style": "form",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "See the description: messages are documented in `x-websocket` / `x-sse`."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/validation_error"
          },
          "401": {
            "description": "missing_api_key / invalid_api_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/payment_required"
          },
          "403": {
            "description": "subscription_ended / forbidden_product / forbidden_bookmaker / forbidden_sport / forbidden_unmapped",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/rate_limited"
          },
          "500": {
            "$ref": "#/components/responses/internal_error"
          },
          "503": {
            "$ref": "#/components/responses/unavailable"
          }
        },
        "x-entitlements": [
          "bookmaker",
          "sport",
          "unmapped"
        ],
        "x-voa-product": "stream",
        "x-sse": {
          "server_messages": {
            "$ref": "#/components/schemas/StreamServerMessage"
          },
          "event_id": "`<epoch>:<seq>` on data messages; send it back as Last-Event-ID to resume."
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ExternalIds": {
        "type": "object",
        "description": "IDs in other systems. Every known provider key is always present; null = unknown.",
        "properties": {
          "sofascore": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "flashscore": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "betradar": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "pinnacle": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "betfair": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "opta": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "sofascore",
          "flashscore",
          "betradar",
          "pinnacle",
          "betfair",
          "opta"
        ],
        "additionalProperties": {
          "type": [
            "string",
            "integer",
            "null"
          ]
        }
      },
      "Mapping": {
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "mapped",
              "unmapped",
              "outcome_unparsed"
            ]
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ]
          },
          "suggested_market": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on unmapped prices: our best guess, never applied automatically."
          }
        }
      },
      "BookRef": {
        "type": "object",
        "required": [
          "event_id",
          "market_name",
          "selection_name",
          "deeplink",
          "deeplink_kind"
        ],
        "properties": {
          "event_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "market_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "selection_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "deeplink": {
            "type": [
              "string",
              "null"
            ]
          },
          "deeplink_kind": {
            "type": [
              "string",
              "null"
            ],
            "description": "event | league | home | null"
          }
        }
      },
      "Fair": {
        "type": [
          "object",
          "null"
        ],
        "description": "Market fair price for this selection, derived from the bookmaker market. The same on every bookmaker's row of the selection (`selection_id`). null when no reliable fair price is available. The method is not disclosed.",
        "required": [
          "price",
          "probability",
          "method",
          "sample"
        ],
        "properties": {
          "price": {
            "type": "number",
            "description": "Fair decimal odds (1 / probability)."
          },
          "probability": {
            "type": "number",
            "description": "Fair probability without margin."
          },
          "method": {
            "type": "string",
            "example": "market_v1",
            "description": "Method version. A new version gets a new name."
          },
          "sample": {
            "type": "integer",
            "description": "Independent bookmakers behind the fair price."
          }
        }
      },
      "PriceRow": {
        "type": "object",
        "description": "One price from one bookmaker (docs/API_DESIGN.md §4). Upsert on `price_id`.",
        "required": [
          "price_id",
          "selection_id",
          "event_id",
          "bookmaker",
          "market",
          "line",
          "outcome",
          "player_id",
          "player",
          "price",
          "status",
          "is_main_line",
          "changed_at",
          "checked_at",
          "fair",
          "edge_pct",
          "mapping",
          "book_ref"
        ],
        "properties": {
          "price_id": {
            "type": "string",
            "description": "Same in REST, streaming and history.",
            "example": "evt_7k2m4q9x:football:shots.match.ft.ou:24.5:over:-:bk_unibet"
          },
          "selection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same across bookmakers; null when unmapped."
          },
          "event_id": {
            "type": "string"
          },
          "bookmaker": {
            "type": "string",
            "example": "bk_unibet"
          },
          "market": {
            "type": [
              "string",
              "null"
            ],
            "example": "football:shots.match.ft.ou"
          },
          "line": {
            "type": [
              "string",
              "null"
            ],
            "description": "Decimal string; handicaps from the home team's view.",
            "example": "24.5"
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "example": "over"
          },
          "player_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "pl_ ID. null until the player registry ships."
          },
          "player": {
            "type": [
              "string",
              "null"
            ],
            "description": "Player name as the bookmaker writes it."
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Decimal odds (last known when suspended/removed)."
          },
          "american": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Only with odds_format=american or include=formats."
          },
          "probability": {
            "type": [
              "number",
              "null"
            ],
            "description": "1/price (with the margin). Only with odds_format=probability or include=formats."
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "suspended",
              "removed"
            ]
          },
          "is_main_line": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Per (event, market, bookmaker, player): the open line whose two sides (over/under, home/away, yes/no) are priced closest to even. Markets without a line: true. Unmapped: null."
          },
          "changed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "fair": {
            "$ref": "#/components/schemas/Fair"
          },
          "edge_pct": {
            "type": [
              "number",
              "null"
            ],
            "description": "Our estimate of this price's expected return against the market, in percent of the stake (positive = above the market). Computed per price; it need not equal price × fair.probability − 1 exactly. null when no reliable value is available."
          },
          "mapping": {
            "$ref": "#/components/schemas/Mapping"
          },
          "book_ref": {
            "$ref": "#/components/schemas/BookRef"
          }
        }
      },
      "EntityRef": {
        "type": [
          "object",
          "null"
        ],
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Event": {
        "type": "object",
        "required": [
          "id",
          "sport",
          "name",
          "competition",
          "home",
          "away",
          "start_time",
          "status",
          "external_ids",
          "merged_into",
          "previous_ids"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "evt_7k2m4q9x"
          },
          "sport": {
            "type": "string",
            "example": "football"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "competition": {
            "$ref": "#/components/schemas/EntityRef"
          },
          "home": {
            "$ref": "#/components/schemas/EntityRef"
          },
          "away": {
            "$ref": "#/components/schemas/EntityRef"
          },
          "start_time": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "prematch",
              "live",
              "ended"
            ],
            "description": "Derived from start_time: live = started less than the sport's typical duration ago (football 2.5 h, tennis 5 h ...), then ended."
          },
          "external_ids": {
            "$ref": "#/components/schemas/ExternalIds"
          },
          "merged_into": {
            "type": [
              "string",
              "null"
            ],
            "description": "Set when this ID was merged into another event; use that ID."
          },
          "previous_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "odds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceRow"
            },
            "description": "Only with include=odds."
          }
        }
      },
      "Team": {
        "type": "object",
        "required": [
          "id",
          "sport",
          "name",
          "external_ids",
          "merged_into",
          "previous_ids"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "tm_4hd82kqa"
          },
          "sport": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_national": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "gender": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_ids": {
            "$ref": "#/components/schemas/ExternalIds"
          },
          "merged_into": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Competition": {
        "type": "object",
        "required": [
          "id",
          "sport",
          "name",
          "external_ids",
          "merged_into",
          "previous_ids"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "cmp_8f3k2qaa"
          },
          "sport": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_ids": {
            "$ref": "#/components/schemas/ExternalIds"
          },
          "merged_into": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Sport": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "active_events",
          "entitled"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "spt_football"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "active_events": {
            "type": "integer",
            "description": "Events that are prematch or live now."
          },
          "entitled": {
            "type": "boolean",
            "description": "Included in your plan."
          }
        }
      },
      "Bookmaker": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "sister_of",
          "sports",
          "live_docs",
          "entitled"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "bk_unibet"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "sister_of": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same odds platform as this bookmaker."
          },
          "is_active": {
            "type": "boolean"
          },
          "sports": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Sports with live documents."
          },
          "live_docs": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Per sport: bookmaker documents (bookmaker x event) scraped in the last 10 minutes."
          },
          "last_checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "entitled": {
            "type": "boolean"
          }
        }
      },
      "Market": {
        "type": "object",
        "required": [
          "id",
          "key",
          "sport",
          "stat",
          "scope",
          "period",
          "type",
          "outcomes",
          "line",
          "label"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "football:goals.match.ft.ou"
          },
          "key": {
            "type": "string",
            "example": "goals.match.ft.ou"
          },
          "sport": {
            "type": "string"
          },
          "stat": {
            "type": "string"
          },
          "scope": {
            "type": "string",
            "enum": [
              "match",
              "home",
              "away",
              "player",
              "competitor"
            ]
          },
          "period": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "outcomes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Outcome set; <score>, <n>, <range> are patterns."
          },
          "line": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "total",
              "handicap_home",
              "target",
              null
            ],
            "description": "Line kind: total (O/U, always positive), handicap_home (home team's view), target (a count to reach), null = no line."
          },
          "label": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "da": {
                "type": "string"
              }
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CoverageRow": {
        "type": "object",
        "required": [
          "bookmaker",
          "sport",
          "prices",
          "share",
          "raw_markets"
        ],
        "properties": {
          "bookmaker": {
            "type": "string"
          },
          "sport": {
            "type": "string"
          },
          "prices": {
            "type": "object",
            "description": "Live prices (open + suspended) by mapping status.",
            "properties": {
              "mapped": {
                "type": "integer"
              },
              "suggested": {
                "type": "integer"
              },
              "unmapped": {
                "type": "integer"
              },
              "outcome_unparsed": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              }
            }
          },
          "share": {
            "type": "object",
            "properties": {
              "mapped": {
                "type": "number"
              },
              "suggested": {
                "type": "number"
              },
              "unmapped": {
                "type": "number"
              },
              "outcome_unparsed": {
                "type": "number"
              }
            }
          },
          "raw_markets": {
            "type": "object",
            "description": "Distinct raw market names in the review queue.",
            "properties": {
              "unmapped": {
                "type": "integer"
              },
              "outcome_unparsed": {
                "type": "integer"
              },
              "with_suggestion": {
                "type": "integer"
              }
            }
          }
        }
      },
      "HistoryPoint": {
        "type": "object",
        "required": [
          "ts",
          "price",
          "status"
        ],
        "properties": {
          "ts": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 UTC, e.g. 2026-11-14T15:00:00Z"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "suspended",
              "removed"
            ]
          },
          "american": {
            "type": [
              "integer",
              "null"
            ]
          },
          "probability": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "PricePoint": {
        "type": [
          "object",
          "null"
        ],
        "required": [
          "price",
          "at"
        ],
        "properties": {
          "price": {
            "type": "number"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 UTC, e.g. 2026-11-14T15:00:00Z"
          },
          "american": {
            "type": [
              "integer",
              "null"
            ]
          },
          "probability": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "ClosingRow": {
        "type": "object",
        "required": [
          "price_id",
          "selection_id",
          "event_id",
          "bookmaker",
          "market",
          "line",
          "outcome",
          "player",
          "opening",
          "closing",
          "status"
        ],
        "properties": {
          "price_id": {
            "type": "string"
          },
          "selection_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "type": "string"
          },
          "bookmaker": {
            "type": "string"
          },
          "market": {
            "type": [
              "string",
              "null"
            ]
          },
          "line": {
            "type": [
              "string",
              "null"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ]
          },
          "player": {
            "type": [
              "string",
              "null"
            ]
          },
          "opening": {
            "$ref": "#/components/schemas/PricePoint"
          },
          "closing": {
            "$ref": "#/components/schemas/PricePoint"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "suspended",
              "removed"
            ],
            "description": "Current status of the price."
          }
        }
      },
      "IdMapMatch": {
        "type": "object",
        "required": [
          "entity_type",
          "id",
          "resolved_id",
          "name",
          "sport",
          "via"
        ],
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "event",
              "team",
              "competition",
              "player"
            ]
          },
          "id": {
            "type": "string"
          },
          "resolved_id": {
            "type": "string",
            "description": "id after following merged_into."
          },
          "merged_into": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "sport": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_time": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "via": {
            "type": "string",
            "enum": [
              "external_ids",
              "bookmaker_event_id"
            ]
          }
        }
      },
      "Products": {
        "type": "object",
        "description": "Products in your plan. null = not included (requests to it give 403 forbidden_product).",
        "required": [
          "odds",
          "history",
          "fair",
          "stream",
          "stats"
        ],
        "properties": {
          "odds": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "phases": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "prematch",
                    "live"
                  ]
                }
              },
              "unmapped": {
                "type": "boolean",
                "description": "May use include=unmapped."
              }
            }
          },
          "history": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "depth": {
                "type": "string",
                "enum": [
                  "all"
                ]
              },
              "closing": {
                "type": "boolean"
              }
            }
          },
          "fair": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "edge": {
                "type": "boolean"
              }
            }
          },
          "stream": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "channels": {
                "type": [
                  "string",
                  "array"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "stats": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "sports": {
                "type": [
                  "string",
                  "array"
                ],
                "items": {
                  "type": "string"
                },
                "description": "\"all\" or the sports you chose."
              }
            }
          }
        }
      },
      "Me": {
        "type": "object",
        "description": "Your compiled entitlements (see docs/ENTITLEMENTS.md). `\"all\"` is always spelled out; an empty list means none.",
        "required": [
          "customer",
          "key",
          "subscription_id",
          "plan",
          "plan_version",
          "terms_version",
          "status",
          "products",
          "bookmakers",
          "sports",
          "limits",
          "licence",
          "sla",
          "renews_at",
          "cancel_effective_at",
          "pending_changes",
          "usage"
        ],
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "key": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "prefix": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "environment": {
                "type": "string",
                "enum": [
                  "live",
                  "test"
                ]
              }
            }
          },
          "subscription_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "plan": {
            "type": [
              "string",
              "null"
            ],
            "example": "pro",
            "description": "core | pro | complete | sandbox"
          },
          "plan_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Your terms are locked to this version while the subscription runs."
          },
          "terms_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "cancelled",
              "grace",
              "suspended",
              "ended",
              "none"
            ],
            "description": "cancelled = notice given, access until cancel_effective_at; grace = payment failed, access until grace_until; suspended = 402 payment_required; ended / none = 403 subscription_ended."
          },
          "products": {
            "$ref": "#/components/schemas/Products"
          },
          "bookmakers": {
            "type": [
              "string",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "\"all\" or the bookmaker IDs you chose."
          },
          "sports": {
            "type": [
              "string",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "limits": {
            "type": "object",
            "properties": {
              "req_per_hour": {
                "type": "integer"
              },
              "ws_connections": {
                "type": "integer",
                "description": "Simultaneous WebSocket connections (stream)."
              },
              "concurrency": {
                "type": "integer",
                "description": "Requests in flight at the same time."
              }
            }
          },
          "licence": {
            "type": [
              "string",
              "null"
            ]
          },
          "sla": {
            "type": [
              "string",
              "null"
            ],
            "description": "Uptime commitment in percent, null = none."
          },
          "dedicated_contact": {
            "type": "boolean"
          },
          "addons": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "period_start": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "renews_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancel_requested_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancel_effective_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "grace_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "pending_changes": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Changes scheduled for the end of the period (downgrade, stats sport)."
          },
          "hash": {
            "type": [
              "string",
              "null"
            ]
          },
          "usage": {
            "type": "object",
            "properties": {
              "hour": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 UTC, e.g. 2026-11-14T15:00:00Z"
              },
              "reset_at": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 UTC, e.g. 2026-11-14T15:00:00Z"
              },
              "requests": {
                "type": "integer"
              },
              "quota_per_hour": {
                "type": "integer"
              },
              "remaining": {
                "type": "integer"
              }
            }
          }
        }
      },
      "Health": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "fail"
            ]
          },
          "db_ok": {
            "type": "boolean"
          },
          "uptime_s": {
            "type": "number"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "docs_url",
              "request_id"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "validation_error",
                  "missing_api_key",
                  "invalid_api_key",
                  "payment_required",
                  "subscription_ended",
                  "forbidden_product",
                  "forbidden_bookmaker",
                  "forbidden_sport",
                  "forbidden_live",
                  "forbidden_unmapped",
                  "not_found",
                  "method_not_allowed",
                  "rate_limited",
                  "internal_error",
                  "unavailable"
                ]
              },
              "message": {
                "type": "string"
              },
              "docs_url": {
                "type": "string",
                "format": "uri"
              },
              "request_id": {
                "type": "string",
                "pattern": "^req_[a-z0-9]+$"
              },
              "upgrade_url": {
                "type": "string",
                "format": "uri",
                "description": "Only on errors about your plan: where to upgrade."
              }
            }
          }
        }
      },
      "StreamSubscribe": {
        "type": "object",
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "description": "Replaces the connection's subscription and starts a snapshot. Omitted filters = everything your plan allows. The same validation and entitlement rules as `GET /v2/odds` apply (`forbidden_bookmaker`, `forbidden_sport`, `forbidden_unmapped` come back as `error`).",
        "properties": {
          "type": {
            "const": "subscribe"
          },
          "id": {
            "type": [
              "string",
              "integer",
              "null"
            ],
            "description": "Echoed in `subscribed`/`error`."
          },
          "events": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Event IDs (merged IDs are followed)."
          },
          "markets": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Market IDs from `GET /v2/markets`."
          },
          "bookmakers": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Bookmaker IDs or slugs."
          },
          "sports": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Sport slugs or IDs."
          },
          "include": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "enum": [
                "unmapped"
              ]
            }
          }
        }
      },
      "StreamResume": {
        "type": "object",
        "required": [
          "type",
          "epoch",
          "seq"
        ],
        "description": "Continue a stream after a reconnect: replays every data message after `seq`. Works for 5 minutes (and up to 1 MB of messages); otherwise you get `snapshot_required` and must subscribe again.",
        "properties": {
          "type": {
            "const": "resume"
          },
          "epoch": {
            "type": "string"
          },
          "seq": {
            "type": "integer",
            "minimum": 0,
            "description": "The last seq you processed (0 = nothing yet)."
          }
        }
      },
      "StreamClientMessage": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StreamSubscribe"
          },
          {
            "$ref": "#/components/schemas/StreamResume"
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "const": "unsubscribe"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "const": "ping"
              },
              "id": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "StreamPriceDelta": {
        "type": "object",
        "required": [
          "price_id"
        ],
        "description": "`price_id` plus the fields that changed (price, status, changed_at, checked_at, fair, edge_pct, is_main_line). A full price row (same shape as REST) when the price is new to the stream or we cannot tell what changed. Tombstones: `status: removed`, `price: null`, `hidden_reason`.",
        "properties": {
          "price_id": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "suspended",
              "removed"
            ]
          },
          "changed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "fair": {
            "type": [
              "object",
              "null"
            ]
          },
          "edge_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "is_main_line": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "hidden_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "event_started",
              "not_entitled",
              null
            ]
          }
        }
      },
      "StreamServerMessage": {
        "type": "object",
        "required": [
          "type"
        ],
        "description": "One JSON object per WebSocket text frame (or SSE event). Data messages (`snapshot`, `price`, `status`, `event`) carry `seq`; the rest are control messages.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hello",
              "subscribed",
              "snapshot",
              "price",
              "status",
              "event",
              "heartbeat",
              "pong",
              "resumed",
              "snapshot_required",
              "resync_required",
              "error"
            ]
          },
          "seq": {
            "type": "integer",
            "minimum": 1,
            "description": "Per stream, gap-free over data messages."
          },
          "epoch": {
            "type": "string",
            "description": "Identifies the stream; send it back in `resume`."
          },
          "part": {
            "type": "integer",
            "description": "snapshot: part number (1, 2, ...)."
          },
          "final": {
            "type": "boolean",
            "description": "snapshot: true on the last part."
          },
          "data": {
            "description": "snapshot: array of PriceRow; price/status: StreamPriceDelta; event: {event_id, status, start_time}.",
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PriceRow"
                }
              },
              {
                "$ref": "#/components/schemas/StreamPriceDelta"
              },
              {
                "type": "object",
                "required": [
                  "event_id",
                  "status"
                ],
                "properties": {
                  "event_id": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "prematch",
                      "live",
                      "ended"
                    ]
                  },
                  "start_time": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                }
              }
            ]
          },
          "ts": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "upgrade_url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    },
    "responses": {
      "validation_error": {
        "description": "`validation_error`: A parameter is missing, unknown or has an invalid value. The message names it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "validation_error",
                "message": "A parameter is missing, unknown or has an invalid value. The message names it.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "missing_api_key": {
        "description": "`missing_api_key`: Send your key in the `X-API-Key` header (or `Authorization: Bearer <key>`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "missing_api_key",
                "message": "Send your key in the `X-API-Key` header (or `Authorization: Bearer <key>`).",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "invalid_api_key": {
        "description": "`invalid_api_key`: The key is unknown, revoked, or the account is suspended.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "invalid_api_key",
                "message": "The key is unknown, revoked, or the account is suspended.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "payment_required": {
        "description": "`payment_required`: A payment is overdue and the grace period has ended. Access returns as soon as the payment is registered.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "payment_required",
                "message": "A payment is overdue and the grace period has ended. Access returns as soon as the payment is registered.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "subscription_ended": {
        "description": "`subscription_ended`: There is no running subscription for this account (it was cancelled and the notice period has ended, or none was started). See `upgrade_url`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "subscription_ended",
                "message": "There is no running subscription for this account (it was cancelled and the notice period has ended, or none was started). See `upgrade_url`.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      },
      "rate_limited": {
        "description": "`rate_limited`: Hourly quota used, too many concurrent requests, or too many failed key attempts. Wait `Retry-After` seconds (the hourly quota resets at the top of the UTC hour).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "rate_limited",
                "message": "Hourly quota used, too many concurrent requests, or too many failed key attempts. Wait `Retry-After` seconds (the hourly quota resets at the top of the UTC hour).",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "X-RateLimit-Warning": {
            "$ref": "#/components/headers/X-RateLimit-Warning"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        }
      },
      "internal_error": {
        "description": "`internal_error`: Unexpected error on our side. Quote the request_id if you contact support.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "internal_error",
                "message": "Unexpected error on our side. Quote the request_id if you contact support.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "unavailable": {
        "description": "`unavailable`: Temporarily unavailable or the query took too long. Retry, or narrow the filters.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "unavailable",
                "message": "Temporarily unavailable or the query took too long. Retry, or narrow the filters.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "forbidden_sport": {
        "description": "`forbidden_sport`: Your plan does not include one of the requested sports (see `GET /v2/me`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "forbidden_sport",
                "message": "Your plan does not include one of the requested sports (see `GET /v2/me`).",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      },
      "forbidden_live": {
        "description": "`forbidden_live`: Your plan does not include in-play (live) odds.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "forbidden_live",
                "message": "Your plan does not include in-play (live) odds.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      },
      "forbidden_bookmaker": {
        "description": "`forbidden_bookmaker`: Your plan does not include one of the requested bookmakers (see `GET /v2/me`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "forbidden_bookmaker",
                "message": "Your plan does not include one of the requested bookmakers (see `GET /v2/me`).",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      },
      "forbidden_unmapped": {
        "description": "`forbidden_unmapped`: Your plan does not include unmapped prices (`include=unmapped`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "forbidden_unmapped",
                "message": "Your plan does not include unmapped prices (`include=unmapped`).",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      },
      "not_found": {
        "description": "`not_found`: The resource or path does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "not_found",
                "message": "The resource or path does not exist.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z"
              }
            }
          }
        }
      },
      "forbidden_product": {
        "description": "`forbidden_product`: Your plan does not include this product (e.g. history, live odds or the Stats API). See `upgrade_url` and `GET /v2/me`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "forbidden_product",
                "message": "Your plan does not include this product (e.g. history, live odds or the Stats API). See `upgrade_url` and `GET /v2/me`.",
                "docs_url": "https://api.valueoddsapi.com/v2/docs#section/Errors",
                "request_id": "req_3k9x2m4q7a1z",
                "upgrade_url": "https://valueoddsapi.com/pricing/"
              }
            }
          }
        }
      }
    },
    "headers": {
      "X-RateLimit-Warning": {
        "description": "Only when 80% or more of the hourly quota is used, e.g. `85% of the hourly quota used`. Over the quota you get 429 (no overage).",
        "schema": {
          "type": "string"
        }
      },
      "X-RateLimit-Limit": {
        "description": "Requests allowed per UTC hour.",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Requests left this hour.",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset": {
        "description": "Unix time (seconds) when the quota resets (top of the next UTC hour).",
        "schema": {
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer"
        }
      }
    },
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "voa_live_... (or voa_test_... for the sandbox)."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authorization: Bearer voa_live_..."
      }
    }
  }
}
