# Get a competition

`GET /v1/competitions/{id}`

One competition by canonical or retired identifier, with its seasons. `name` is the
dated display name at `valid_at` as known at `known_at`; a registered competition
without a dated name at that date is still served, with `name` null and
`name_status: unavailable` (never a 404). `include=provenance` adds, for each field
whose value is chosen among several sources, the source it was taken from (needs the
`read:sources` scope; fields whose source holds no display right are `withheld`).
`403 not-entitled` (`restriction: competition`) when the caller's `entities` grant
names competitions and excludes this one; unknown identifiers are `404`.

Parameters:
- `id` (path, string, required): Canonical or retired competition identifier (`cmp_<digits>`); another kind's prefix or an undecodable body is a 400 naming `id`.
- `valid_at` (query, timestamp, optional): Business-effective instant (UTC); default is the request time.
- `known_at` (query, timestamp, optional): Knowledge cutoff (UTC); the answer reflects only what OddsFinder had recorded by this instant. Default is the request time. Must not be in the future.
- `include` (query, enum, optional): Optional blocks to add to a single-entity read. `provenance` names, for each field whose value is chosen among several sources, the source report it was taken from as known at `known_at`; it needs the `read:sources` scope (`403 not-entitled`, `restriction: scope` otherwise), and a field is `withheld` when its source holds no display right. One of: `provenance`.

Returns `200`: The competition as known at the cutoff.
The body is [the competition detail object](obj-CompetitionDetail.md).

Errors: `400` Malformed parameter or cursor (`invalid-request`).; `401` Missing or invalid credential (`unauthenticated`).; `403` Operation not permitted (`forbidden`) or restricted by grants/rights (`not-entitled`).; `404` Unknown identifier at the requested cutoff (`not-found`).; `422` Well-formed but unanswerable (`invalid-range`, `unsupported-historical-capability`).; `429` The per-minute rate limit is used up (`rate-limited`) or a daily allowance is exhausted (`quota-exceeded`). Failed requests (403, 404, other 4xx, 5xx) use up the per-minute rate limit too.; `500` Unexpected failure (`internal-error`); `request_id` identifies the server-side record.; `503` A service this operation depends on, or the access check, is temporarily unavailable (`unavailable`, `policy-unavailable`).

Example request (200 · Default):

```bash
curl https://api.example.com/v1/competitions/cmp_1 \
  -H "X-API-Key: $ODDSFINDER_API_KEY"
```

Example response (200):

```json
{
  "id": "cmp_1",
  "name": "Synthetic Premier Division",
  "name_status": "known",
  "association_code": "SYN",
  "organiser": "national_association",
  "competition_kind": "league",
  "tier": 1,
  "seasons": [
    {
      "id": "ssn_1",
      "label": "2026/27",
      "starts_on": "2026-08-01",
      "ends_on": "2027-05-31"
    }
  ],
  "resolution": {
    "requested_id": "cmp_1",
    "canonical_id": "cmp_1",
    "status": "canonical",
    "decision_id": null,
    "decided_at": null
  },
  "knowledge": {
    "known_at": "2026-10-04T09:00:00Z",
    "as_requested": false
  },
  "sources": {
    "status": "included",
    "items": [
      {
        "source": "synthetic_alpha",
        "observed_at": null,
        "recorded_at": "2026-09-01T00:00:00Z",
        "precision": "unknown"
      },
      {
        "source": "synthetic_beta",
        "observed_at": null,
        "recorded_at": "2026-09-01T00:00:00Z",
        "precision": "unknown"
      }
    ]
  }
}
```
