{
  "openapi": "3.1.0",
  "info": {
    "title": "The Board Game DB API",
    "version": "1.0.0",
    "summary": "An open database of board games.",
    "description": "Read the catalog of board games: facts about each game, the people and companies behind it, how it is classified and what it won.\n\n**Reading needs no key and no account.** Every answer is JSON. Successful answers put their payload under `data`; failures return `{ \"error\": \"…\", \"code\": \"…\" }`: `error` is a sentence in English written for people, `code` a stable name for the refusal (listed under the `Error` schema) that a program can act on or translate.\n\n**Accounts** are created on the website, where members add photos, playlists and rulebooks and keep lists. A member can create a personal API token on their account page and send it as `Authorization: Bearer <token>`.\n\n**Members' input.** Ratings, complexity, ranks, recommended age, player counts, language dependence on a game all come from this site's own members, through the routes described here. A game nobody has rated or voted on has `null` (or an empty list) there, never a guess.\n\n**Limits.** Without a token: 60 requests a minute, 2,000 a day and 5,000 a week per address (an IPv6 address counts by its /64). With a personal API token (`Authorization: Bearer bgdb_…`, created on the website's account page by a member whose email address is confirmed, 2 per account): 90 a minute, 3,000 a day and 7,500 a week per member, all their tokens together; on the Starter plan (for commercial use, €49.99 a month) 1,200 a minute, no daily limit and 200,000 a week. Of a week's requests, reading one game (`/games/{id}` and the routes under it) is limited further: 500 games a week without a token, 750 with one, 40,000 on the Starter plan. `/index/games` counts one request for every 25 names it may return (`limit`). Days are UTC days; weeks start on Monday at 00:00 UTC. Every counted answer carries the standard `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds since 1970) for the daily limit, or the weekly one on a paid plan, which has no daily limit; the per-minute limit shows only when reached, as a 429 with `retry-after`. It also carries `x-ratelimit-weekly-limit`, `x-ratelimit-weekly-remaining` and `x-ratelimit-weekly-reset` (when the week starts again, in seconds since 1970); reading a game adds the same three as `x-ratelimit-weekly-detail-*`. Beyond a limit the API answers 429 (`rate_limited`, or `weekly_limit` for a week's) with a `retry-after` header: the seconds to wait. `GET /limits` lists every limit, and with a token your own. For more: a free API token, the Starter plan for commercial use (https://thebgdb.org/developers), or larger volumes, data dumps and service levels on request at contact@thebgdb.org. Catalog answers are cached for up to five minutes, so a change can take that long to show.\n\n**Slugs** are stable: once a game or a credit has a slug, it does not change.\n\n**Credits.** Some descriptions come from Wikipedia and some covers from Wikimedia Commons, under licences that ask for credit: `GET /v1/credits` lists them, with their source, licence and author.\n\n**Terms of use.** Using the API and what it returns is subject to our terms: https://thebgdb.org/terms (the licence of the data at #license, the images at #images, the API's terms at #api).",
    "license": {
      "name": "CC BY-NC 4.0 (data and texts); see the terms",
      "url": "https://thebgdb.org/terms#license"
    },
    "termsOfService": "https://thebgdb.org/terms#api"
  },
  "servers": [
    {
      "url": "https://api.thebgdb.org/v1",
      "description": "Production"
    },
    {
      "url": "https://api-staging.thebgdb.org/v1",
      "description": "Staging (test data)"
    }
  ],
  "tags": [
    {
      "name": "Games",
      "description": "Look games up, list them, search them."
    },
    {
      "name": "Designers",
      "description": "People who design games."
    },
    {
      "name": "Artists",
      "description": "People who illustrate games."
    },
    {
      "name": "Publishers",
      "description": "Companies that publish games."
    },
    {
      "name": "Categories",
      "description": "What a game is about."
    },
    {
      "name": "Mechanics",
      "description": "How a game plays."
    },
    {
      "name": "Awards",
      "description": "Awards, and the games each honoured, year by year: winners, nominees and other distinctions."
    },
    {
      "name": "Families",
      "description": "Series and franchises a game belongs to."
    },
    {
      "name": "Ratings and polls",
      "description": "Members rate games and vote on their complexity, age, player counts and language dependence. The results are fields of the game."
    },
    {
      "name": "Comments",
      "description": "What members write about a game."
    },
    {
      "name": "Videos",
      "description": "Videos about a game, on other sites."
    },
    {
      "name": "Music",
      "description": "Playlists to play games to, on Apple Music, Spotify and YouTube, rated by members. A playlist is listed once and linked to every game members added it to."
    },
    {
      "name": "Rules",
      "description": "Rulebooks uploaded by members, each tagged with its language, the editions of a game, and its rules in plain words per edition and language."
    },
    {
      "name": "Tutorials",
      "description": "How to play a game step by step, per edition and language, written by members."
    },
    {
      "name": "Photos",
      "description": "Photos added by members."
    },
    {
      "name": "Corrections",
      "description": "Members propose corrections to a game's facts; a moderator accepts or rejects them. Accepted corrections are listed in the game's history."
    },
    {
      "name": "Lists",
      "description": "Lists of games made by members. Every member has one \"My Collection\" (the games they own, id `<user id>:collection`), private until they make it public, and makes as many other lists as they like, public unless made private. A private list is seen only by its owner."
    },
    {
      "name": "Accounts",
      "description": "Your plan, your API tokens, your tastes and the games suggested from them."
    },
    {
      "name": "Publisher API",
      "description": "Publishers add their own games to the catalog and keep them right. Access is granted by a moderator after an application (`POST /publisher/applications`, or the Publisher API page of the website); the member can then create API tokens with the `games:write` scope, and those tokens write the games of their publisher only.\n\n**What a game needs.** Each requirement has its own error `code`:\n- `name` (`game_name_required`) and the language it is in, `nameLanguage` (`game_name_language_required`); every other name in `names` with its language too;\n- `yearPublished` or `releaseDate` (`game_year_required`);\n- `minPlayers` and `maxPlayers` (`game_players_required`), `minPlaytime` in minutes (`game_playtime_required`), `minAge` (`game_min_age_required`);\n- at least one designer (`game_designer_required`); `publishers` must include your publisher, as written (`game_publisher_not_yours`);\n- a description of 200 to 2500 characters (`game_description_too_short`) in plain text: paragraphs separated by a blank line, and lists whose lines start with \"- \", no links, HTML or other marks (`game_description_not_plain`), in your own words: `descriptionOwnWords: true` states it (`game_description_not_own_words`);\n- a cover (`game_cover_required`): the front of the box alone, straight on, square and cropped to its edges (no border, no table or room behind it, no shadow around or on it, no glare from the shrink-wrap), at least 600 pixels on its short side (`cover_too_small`), JPEG, PNG or WebP (`cover_type_refused`) of 15 MB at most (`cover_too_large`). A vision model checks that it is a box front; a photo of the components, the back of the box or people is refused (`cover_not_box_front`). The print file of the box front is the best cover there is; the photo guidelines, with examples, are on the Publisher API page of the website. Every image is stored by us and the catalog never links to another site's file: send the file (preferred), or its address on your site, which we download once and keep our own copy of.\n\n**No duplicates.** A game we already have under the same name (and year, when both are known), the same BoardGameGeek id or the same barcode is refused with 409 `duplicate_game` and the game: update it instead, if it is yours.\n\n**Where the data comes from.** What you send is published under your publisher's name as its source, and shown with credit to you. Your facts replace what other sources said about your game, never a correction a person made, nor a cover a moderator chose. A game appears in the catalog a few seconds after the answer."
    },
    {
      "name": "Service",
      "description": "Status and this document."
    }
  ],
  "paths": {
    "/limits": {
      "get": {
        "operationId": "get_limits",
        "tags": [
          "Service"
        ],
        "summary": "List the request limits",
        "description": "Every limit this API applies, as numbers: without a token (`visitor`, per address), with a member's token (`member`, per member) and on the Starter plan (`paid`). With a token or session, also your own limits (`yours`), whatever your plan. Weeks start on Monday at 00:00 UTC. Not counted against them.",
        "responses": {
          "200": {
            "description": "The limits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "visitor",
                        "member",
                        "paid",
                        "siteRendersPerWeek",
                        "apiKeysPerAccount"
                      ],
                      "properties": {
                        "visitor": {
                          "type": "object",
                          "required": [
                            "perMinute",
                            "perDay",
                            "perWeek",
                            "detailsPerWeek"
                          ],
                          "properties": {
                            "perMinute": {
                              "type": "integer"
                            },
                            "perDay": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Null: no daily limit."
                            },
                            "perWeek": {
                              "type": "integer"
                            },
                            "detailsPerWeek": {
                              "type": "integer",
                              "description": "Games read one by one (`/games/{id}` and the routes under it) a week."
                            }
                          }
                        },
                        "member": {
                          "type": "object",
                          "required": [
                            "perMinute",
                            "perDay",
                            "perWeek",
                            "detailsPerWeek"
                          ],
                          "properties": {
                            "perMinute": {
                              "type": "integer"
                            },
                            "perDay": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Null: no daily limit."
                            },
                            "perWeek": {
                              "type": "integer"
                            },
                            "detailsPerWeek": {
                              "type": "integer",
                              "description": "Games read one by one (`/games/{id}` and the routes under it) a week."
                            }
                          }
                        },
                        "paid": {
                          "type": "object",
                          "required": [
                            "perMinute",
                            "perDay",
                            "perWeek",
                            "detailsPerWeek"
                          ],
                          "properties": {
                            "perMinute": {
                              "type": "integer"
                            },
                            "perDay": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Null: no daily limit."
                            },
                            "perWeek": {
                              "type": "integer"
                            },
                            "detailsPerWeek": {
                              "type": "integer",
                              "description": "Games read one by one (`/games/{id}` and the routes under it) a week."
                            }
                          }
                        },
                        "yours": {
                          "description": "Sent with a token or session only: the caller's plan (`free`, `starter`, or a plan agreed with us) and its limits.",
                          "allOf": [
                            {
                              "type": "object",
                              "required": [
                                "perMinute",
                                "perDay",
                                "perWeek",
                                "detailsPerWeek"
                              ],
                              "properties": {
                                "perMinute": {
                                  "type": "integer"
                                },
                                "perDay": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Null: no daily limit."
                                },
                                "perWeek": {
                                  "type": "integer"
                                },
                                "detailsPerWeek": {
                                  "type": "integer",
                                  "description": "Games read one by one (`/games/{id}` and the routes under it) a week."
                                }
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "plan": {
                                  "type": "string"
                                }
                              }
                            }
                          ]
                        },
                        "siteRendersPerWeek": {
                          "type": "integer",
                          "description": "Pages of the website one address may have rendered a week (search engines and AI crawlers are not limited)."
                        },
                        "apiKeysPerAccount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "visitor": {
                      "perMinute": 60,
                      "perDay": 2000,
                      "perWeek": 5000,
                      "detailsPerWeek": 500
                    },
                    "member": {
                      "perMinute": 90,
                      "perDay": 3000,
                      "perWeek": 7500,
                      "detailsPerWeek": 750
                    },
                    "paid": {
                      "perMinute": 1200,
                      "perDay": null,
                      "perWeek": 200000,
                      "detailsPerWeek": 40000
                    },
                    "siteRendersPerWeek": 5000,
                    "apiKeysPerAccount": 2
                  }
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "get_health",
        "tags": [
          "Service"
        ],
        "summary": "Check the API is up",
        "description": "Answers without reading the database. Not rate limited.",
        "responses": {
          "200": {
            "description": "The API is up.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "environment"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ok"
                    },
                    "environment": {
                      "type": "string",
                      "enum": [
                        "production",
                        "staging",
                        "local"
                      ]
                    }
                  }
                },
                "example": {
                  "status": "ok",
                  "environment": "production"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "get_openapi",
        "tags": [
          "Service"
        ],
        "summary": "Get this document",
        "description": "The OpenAPI 3.1 description of the API, regenerated by every deploy.",
        "responses": {
          "200": {
            "description": "The OpenAPI document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/games": {
      "get": {
        "operationId": "list_games",
        "tags": [
          "Games"
        ],
        "summary": "List games, a page at a time",
        "description": "Games, ordered and filtered as asked, a page at a time. Two ways to page: by number (`page`, with `pages` in the answer saying how many there are), to show numbered pages or jump to one; or by cursor, to read everything: call again with `cursor` set to the `nextCursor` you received, until `nextCursor` is null. Both are positions in the same order, so either may follow the other. `total` is counted once per set of filters and kept for a few minutes, so every page of a list gives the same count.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "How many games to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ],
              "default": "added"
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "page",
                    "pages",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GameSummary"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many games match, across all pages."
                    },
                    "page": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The page shown, from 1. Null when a `cursor` started it between two pages."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "How many pages of `limit` games there are: `total` divided by `limit`, rounded up. 0 for an empty list."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                      "slug": "catan",
                      "name": "Catan",
                      "originalName": null,
                      "kind": "game",
                      "yearPublished": 1995,
                      "players": {
                        "min": 3,
                        "max": 4
                      },
                      "image": "/v1/media/covers/4f1c2b9e.jpg",
                      "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                      "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                      "rating": {
                        "average": 7.42,
                        "count": 318,
                        "weighted": 7.31
                      },
                      "complexity": {
                        "average": 2.29,
                        "votes": 121
                      }
                    }
                  ],
                  "total": 21925,
                  "page": 1,
                  "pages": 1097,
                  "nextCursor": "20"
                }
              }
            }
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value, or both `page` and `cursor` were sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`page` is past the last page (`page_out_of_range`); `params.pages` says how many there are.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/index/games/counts": {
      "get": {
        "operationId": "count_games_by_letter_and_year",
        "tags": [
          "Games"
        ],
        "summary": "Count games by first letter and by year",
        "description": "The table of contents of the games index: how many names start with each letter, and how many games came out each year. Games whose year is unknown are in no year. With `lang` set to one of `de`, `es`, `fr`, `it` or `pt` (or a regional code of one), each game counts under the letter of its name in that language, as `GET /index/games` files it.",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The counts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "letters",
                        "years"
                      ],
                      "properties": {
                        "letters": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "letter",
                              "games"
                            ],
                            "properties": {
                              "letter": {
                                "type": "string",
                                "description": "A to Z, or `0` for names that start with a digit or a sign. An accented letter counts as its plain letter."
                              },
                              "games": {
                                "type": "integer"
                              }
                            }
                          }
                        },
                        "years": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "year",
                              "games"
                            ],
                            "properties": {
                              "year": {
                                "type": "integer"
                              },
                              "games": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "letters": [
                      {
                        "letter": "0",
                        "games": 212
                      },
                      {
                        "letter": "A",
                        "games": 1340
                      }
                    ],
                    "years": [
                      {
                        "year": 1995,
                        "games": 210
                      },
                      {
                        "year": 1996,
                        "games": 198
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/index/editions": {
      "get": {
        "operationId": "list_page_editions",
        "tags": [
          "Games"
        ],
        "summary": "List the editions that have a page",
        "description": "Every edition with enough of its own for a page of its own (`indexable` in `GET /games/{id}/editions/{edition}`), as the game's slug and the edition's: what a sitemap needs. Ordered by game, up to 500 per call.",
        "parameters": [
          {
            "name": "game",
            "in": "query",
            "description": "Only this game's editions: its id, slug or an older address of it.",
            "schema": {
              "type": "string"
            },
            "example": "catan"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of editions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "game",
                          "slug",
                          "language",
                          "year",
                          "publisher"
                        ],
                        "properties": {
                          "game": {
                            "type": "string",
                            "description": "The game's slug."
                          },
                          "slug": {
                            "type": "string",
                            "description": "The edition's slug."
                          },
                          "language": {
                            "type": "string"
                          },
                          "year": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "publisher": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "game": "catan",
                      "slug": "fr-filosofia-2015-k3x9q2",
                      "language": "fr",
                      "year": 2015,
                      "publisher": {
                        "slug": "filosofia",
                        "name": "Filosofia"
                      }
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "The cursor cannot be read (`invalid_cursor`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id (`game_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/index/games": {
      "get": {
        "operationId": "list_game_names",
        "tags": [
          "Games"
        ],
        "summary": "List game names by first letter or by year",
        "description": "Names only, in alphabetical order unless `order` says otherwise, up to 500 per call: what an A to Z index or a list of a year's games needs. Counts as one request for every 25 names `limit` asks for. Use `/games` for full summaries. With `lang` set to `de`, `es`, `fr`, `it` or `pt` (or a regional code of one: `pt-BR` files as `pt`), each game is filed, ordered and shown under its name in that language (`name`; the main name is `originalName`), or its main name when it has none in the language: \"Nome in codice\" (Codenames) is under N in Italian. With any other `lang` (`ja` included), the name in the language is shown but the letter and the order stay those of the main name. Either way a game is under exactly one letter per language.",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose name starts with this letter (A to Z, case ignored), the name in the language of `lang` as described above. The first letter is read as written, articles included (\"Les Aventuriers du Rail\" is under L), and an accented letter counts as its plain letter. `0` gives the names that start with anything else.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "year",
            "in": "query",
            "description": "Only games first published this year.",
            "schema": {
              "type": "integer",
              "minimum": -4000,
              "maximum": 2100
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical. `popular` ranked games first, best rank first, then the best known (the measure of `order=popular` on `GET /games`), then by name. `famous` the most awards won first, then the most members' ratings, then the best known, then by name.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "popular",
                "famous"
              ],
              "default": "name"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of names.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "originalName",
                          "yearPublished"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string",
                            "description": "The name in the language asked for with `lang`, when the game has one; its main name otherwise."
                          },
                          "originalName": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The main name, which decides the letter and the order, when `name` is a translation of it."
                          },
                          "yearPublished": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many games match in all."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6c45ac28-4841-43f5-a1b3-59ea01e63f16",
                      "slug": "catan",
                      "name": "Catan",
                      "originalName": null,
                      "yearPublished": 1995
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`letter`, `year` or `cursor` is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}": {
      "get": {
        "operationId": "get_game",
        "tags": [
          "Games"
        ],
        "summary": "Get one game",
        "description": "Everything the catalog knows about a game: its facts, its names in every language, its credits by kind, its photos, what members made of it (rating, complexity, ranks, poll results), and how many playlists and rulebooks it has. Answers are cached, so a vote can take up to five minutes to show here.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The game.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Game"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "The entry was withdrawn because it is not a game (a series, a kind of game, an app); `reason` says what it is.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/photos": {
      "get": {
        "operationId": "list_game_photos",
        "tags": [
          "Photos"
        ],
        "summary": "List a game's photos",
        "description": "The photos members added to the game and a moderator approved, oldest first, each with what it shows (`kind`). A member signed in also sees their own photos waiting for review. The game's cover from its source is not a photo: it is `image` on the game, with `imageKind`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only photos that show this. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`.",
            "schema": {
              "type": "string",
              "enum": [
                "box_front",
                "board_traditional",
                "box_partial",
                "logo",
                "components",
                "in_play",
                "people",
                "other",
                "box_back",
                "setup",
                "cards",
                "rulebook"
              ]
            },
            "example": "box_back"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of photos.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Photo"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`kind` is not one of the words listed (`invalid_photo_kind`), or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/images": {
      "post": {
        "operationId": "add_game_photo",
        "tags": [
          "Photos"
        ],
        "summary": "Add a photo to a game",
        "description": "Upload one JPEG, PNG or WebP file of at most 5 MB, say what it shows (`kind`), and optionally say which language the edition it shows is in. A vision model also looks at the photo; its opinion is kept apart and shown to moderators, who may correct `kind`. The member's email address must be confirmed. The type is checked from the file's content, not its name. A photo of the box front or back (`box_front`, `box_back`) is the box alone, straight on, with no border, background or shadow: at least 500 × 500 pixels, and roughly square (longest side at most 1.4 times the shortest). Faces of people are not shown in any photo: hands and the table only. A member can add 20 photos a day. A photo is shown to others once a moderator has approved it; the game's oldest approved photo is used as its cover. A member verified as representing one of the game's publishers may send `official` = `true`: once approved, that photo is the cover ahead of the others.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file",
                  "kind"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "box_front",
                      "board_traditional",
                      "box_partial",
                      "logo",
                      "components",
                      "in_play",
                      "people",
                      "other",
                      "box_back",
                      "setup",
                      "cards",
                      "rulebook"
                    ],
                    "description": "What the photo shows. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`."
                  },
                  "official": {
                    "type": "string",
                    "enum": [
                      "true"
                    ],
                    "description": "The game's official cover. Only from a verified representative of one of its publishers."
                  },
                  "language": {
                    "type": "string",
                    "description": "The language of the edition the photo shows, as a code such as \"en\" or \"pt-BR\". Optional; taken from `nameId` when that is sent alone."
                  },
                  "editionId": {
                    "type": "string",
                    "description": "The edition the photo shows, an `id` from `GET /v1/games/{id}/editions`. Optional."
                  },
                  "nameId": {
                    "type": "string",
                    "description": "Which of the game's names is on the box, a name's `id` from the game's `names`. Optional."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The photo was stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "path",
                        "kind",
                        "language"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "path": {
                          "type": "string",
                          "description": "Path of the file on this API."
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "box_front",
                            "board_traditional",
                            "box_partial",
                            "logo",
                            "components",
                            "in_play",
                            "people",
                            "other",
                            "box_back",
                            "setup",
                            "cards",
                            "rulebook"
                          ],
                          "description": "What the photo shows, as sent."
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The language of the edition shown, when it was said."
                        },
                        "edition": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/CoverEdition"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/CoverName"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No file was sent (`photo_missing`), `kind` is missing (`photo_kind_missing`) or not one of the words listed (`invalid_photo_kind`), the language is not a language code (`invalid_language`), or `editionId` or `nameId` is not the game's (`edition_not_found`, `name_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address, or sent `official` without being a verified representative of one of the game's publishers.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 5 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The file is not a JPEG, PNG or WebP image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A box front or back photo is smaller than 500 × 500 pixels (`photo_too_small`) or far from square (`photo_not_square`); `params` holds its `width`, `height` and the `min` side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or the member already added 20 photos today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/media/{key}": {
      "get": {
        "operationId": "get_media",
        "tags": [
          "Photos"
        ],
        "summary": "Download an uploaded photo or rulebook file",
        "description": "Serves the file behind a photo's or a rulebook file's `path`. Photos never change, so they are cached for a year; rulebook files for an hour. A rulebook file is sent with a `content-disposition` that names it and lets a browser show it in place. The file of a rulebook that waits for review is served only to its uploader and to moderators, who must send their session; to anyone else it does not exist.\n\nThese addresses are for our own site and for programs that download the file. A page of another site may not embed them: a request whose `Referer` or `Origin` names another site is refused (403), except the image results of the main search engines, and photos and rulebook files carry `Cross-Origin-Resource-Policy: same-site`. To show a cover or a photo in your own pages, download it once and serve your own copy, within its licence (each record says its credit and licence). Every file we store carries a short note naming us and the record it came from.",
        "security": [
          {},
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "description": "The rest of a `path` after `/v1/media/`. It contains slashes.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "description": "Asked by a page of another site (its `Referer` or `Origin`): embedding our files is not allowed. Plain text.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No file has this key, or it waits for review and is not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "search_games",
        "tags": [
          "Games"
        ],
        "summary": "Search games, people and publishers by name",
        "description": "With `type=people` or `type=publishers`, returns the designers and artists, or the publishers, one of whose names (their own, or a spelling merged into them) starts at a word with `q`: `feld` finds Stefan Feld, `ouset media` finds Ouset, case and accents ignored. A name typed whole comes first, then a word of it typed to its end, then the start of the name, then the start of a word; within that, the ones with more games first. With `type=all`, the games as below, and up to 10 people and publishers in `terms` on the first page.\n\nBy default (`type=games`), returns games one of whose names contains every word of `q`, in any order: the main name or any alternate name, in any language. A game is returned once, with `matchedName` saying which alternate name was found when it was not the main one. Case, accents and punctuation are ignored (`catan!` finds Catan, `flugelschlag` finds Flügelschlag). Words shorter than three characters are looked for only at the start of a name (`go` finds Go).\n\nOrder: a name equal to the query first, then names starting with it, then names with a word starting with it, then names containing it; within that, better-known games first (how often the game is looked at and rated, its rank, how many languages name it), and a game's main name or its name in `lang` before its other names. The best-known names are read first and the reading stops at a few hundred names, so a query matching thousands of names (`the`) lists the best known of them.\n\nMisspellings: when fewer than `limit` games match the query as written, games with a name close to it are added after them, marked `approximate: true` (`cattan` finds Catan, `wingspn` finds Wingspan, `brass birmigham` finds Brass: Birmingham). Close means one slip (a character added, dropped or replaced, or two neighbours swapped) for a query of 4 to 8 characters, two up to 16, three beyond; the query may be close to a whole name or to consecutive words of one. A query of up to three characters is never corrected, and one of four or five only when nothing matches it as written. A single word of four or five characters that shares no run of three characters with any name (`kahn` for Khan, `uzno` for UNO) is compared with the names of about its length (one character shorter or longer at most) that start with the same letter; a slip in the first letter of such a word is not corrected.\n\nAnswers are cached for everyone alike until the catalog changes, and a cached answer does not count against the rate limits. For a search box, `GET /suggest` is lighter.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What to look for.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            "example": "catan"
          },
          {
            "name": "type",
            "in": "query",
            "description": "What to look for: games (the default), people (designers and artists), publishers, or all (games, and people and publishers in `terms`).",
            "schema": {
              "type": "string",
              "enum": [
                "games",
                "people",
                "publishers",
                "all"
              ],
              "default": "games"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching games, best match first (see the order above); then the approximate matches, closest first. Approximate matches are added only to the first page, when every match as written fits on it.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "query",
                    "total",
                    "page",
                    "pages",
                    "nextCursor",
                    "data"
                  ],
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many games match as written, across all pages (up to the few hundred names read), plus the approximate matches when there are any."
                    },
                    "page": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The page shown, from 1. Null when a `cursor` started it between two pages."
                    },
                    "pages": {
                      "type": "integer",
                      "description": "How many pages of `limit` games there are: `total` divided by `limit`, rounded up. 0 for an empty list."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    },
                    "data": {
                      "type": "array",
                      "description": "Games (`SearchResult`); people or publishers (`TermResult`) with `type=people` or `type=publishers`.",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/SearchResult"
                          },
                          {
                            "$ref": "#/components/schemas/TermResult"
                          }
                        ]
                      }
                    },
                    "terms": {
                      "type": "array",
                      "description": "With `type=all`, on the first page: the people and publishers found, best first.",
                      "items": {
                        "$ref": "#/components/schemas/TermResult"
                      }
                    }
                  }
                },
                "example": {
                  "query": "colons de catane",
                  "total": 1,
                  "page": 1,
                  "pages": 1,
                  "nextCursor": null,
                  "data": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                      "slug": "catan",
                      "name": "Catan",
                      "originalName": null,
                      "kind": "game",
                      "yearPublished": 1995,
                      "players": {
                        "min": 3,
                        "max": 4
                      },
                      "image": "/v1/media/covers/4f1c2b9e.jpg",
                      "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                      "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                      "rating": {
                        "average": 7.42,
                        "count": 318,
                        "weighted": 7.31
                      },
                      "complexity": {
                        "average": 2.29,
                        "votes": 121
                      },
                      "matchedName": {
                        "name": "Les Colons de Catane",
                        "language": "fr"
                      },
                      "approximate": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`q` is shorter than 2 or longer than 100 characters, `lang` is not a language code, or `page` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`page` is past the last page (`page_out_of_range`); `params.pages` says how many there are.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/suggest": {
      "get": {
        "operationId": "suggest_games",
        "tags": [
          "Games"
        ],
        "summary": "Suggest games while someone types",
        "description": "What a search box should offer for what has been typed so far: games, and up to 3 designers, artists or publishers (`TermResult`, told apart by their `kind`) found as by `GET /search?type=all`. A person or publisher whose name matches better than the best game comes first (`feld`: Stefan Feld before a game whose name merely starts with Feld); the others come after the first game. Games: the same matching and order as `GET /search`, misspellings included, in a slimmer answer (no ratings, no cover judgement) read in one step from the search index, so it answers in a few milliseconds. `thumbnail` is our small copy of the game's main cover. Answers are cached for everyone alike until the catalog changes, keyed by the query with case, accents and punctuation removed; a cached answer does not count against the rate limits.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What has been typed so far.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            "example": "wingsp"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 8
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "Suggestions, best first; approximate ones last.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "query",
                    "data"
                  ],
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/Suggestion"
                          },
                          {
                            "$ref": "#/components/schemas/TermResult"
                          }
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "query": "colons de",
                  "data": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                      "slug": "catan",
                      "name": "Catan",
                      "originalName": null,
                      "kind": "game",
                      "yearPublished": 1995,
                      "players": {
                        "min": 3,
                        "max": 4
                      },
                      "thumbnail": "/v1/media/covers/abababababababababababababababababababababababababababababababab-small.webp",
                      "matchedName": {
                        "name": "Les Colons de Catane",
                        "language": "fr"
                      },
                      "approximate": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`q` is shorter than 2 or longer than 100 characters, or `lang` is not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/credits": {
      "get": {
        "operationId": "list_credits",
        "tags": [
          "Games"
        ],
        "summary": "Texts and images to credit",
        "description": "What a Wikimedia licence asks us to credit: descriptions taken from Wikipedia (CC BY-SA) and covers from Wikimedia Commons under a licence asking for credit (CC BY, CC BY-SA). Facts from Wikidata are CC0 and need no credit. Nothing else is listed. One entry per text or image, ordered by the game's main name; a game with both has its text first. Show the source, the licence and the author wherever you reuse them. The website lists the same at https://thebgdb.org/credits.",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "description": "Only texts, or only images. Both when absent.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "image"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of credits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "kind",
                          "game",
                          "sourceUrl",
                          "sourceTitle",
                          "license",
                          "licenseUrl",
                          "author"
                        ],
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "text",
                              "image"
                            ],
                            "description": "`text`: the game's `description`, from Wikipedia. `image`: the game's cover, from Wikimedia Commons."
                          },
                          "game": {
                            "type": "object",
                            "required": [
                              "id",
                              "slug",
                              "name"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string",
                                "description": "The game's main name, or its name in the language asked for with `lang`."
                              }
                            }
                          },
                          "sourceUrl": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uri",
                            "description": "The Wikipedia article the text was taken from, or the Wikimedia Commons page of the image. Null when no such page is on record. No other source is ever named.",
                            "example": "https://en.wikipedia.org/wiki/Catan"
                          },
                          "sourceTitle": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The Wikipedia article's title or the image's file name. Null when the address does not give one.",
                            "example": "Catan"
                          },
                          "license": {
                            "type": "string",
                            "description": "The licence, by its short name.",
                            "example": "CC BY-SA 4.0"
                          },
                          "licenseUrl": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "uri",
                            "description": "The licence's deed. Null when the short name does not say which version.",
                            "example": "https://creativecommons.org/licenses/by-sa/4.0/"
                          },
                          "author": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The author to name, as the source names them. Null when the source names nobody (Wikipedia texts are credited to the article): credit the source itself.",
                            "example": "Jane Doe"
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many credits match."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "kind": "text",
                      "game": {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan"
                      },
                      "sourceUrl": "https://en.wikipedia.org/wiki/Catan",
                      "sourceTitle": "Catan",
                      "license": "CC BY-SA 4.0",
                      "licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
                      "author": null
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`kind` or `cursor` is not an accepted value, or `lang` is not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/anniversaries": {
      "get": {
        "operationId": "list_anniversaries",
        "tags": [
          "Games"
        ],
        "summary": "Games with a round birthday this year",
        "description": "Games whose age this year is a multiple of five, at most 100. The catalog records publication years, not days.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`oldest`: the oldest game first (the largest age). `youngest`: the youngest first (the smallest age, such as 5 years). Games of the same age come in alphabetical order. With more than 100 anniversaries, the order also decides which 100 are returned.",
            "schema": {
              "type": "string",
              "enum": [
                "oldest",
                "youngest"
              ],
              "default": "oldest"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "This year's anniversaries, in the order asked for.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "year",
                    "data"
                  ],
                  "properties": {
                    "year": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/GameSummary"
                          },
                          {
                            "type": "object",
                            "required": [
                              "age"
                            ],
                            "properties": {
                              "age": {
                                "type": "integer",
                                "description": "Years since publication."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/designers": {
      "get": {
        "operationId": "list_designers",
        "tags": [
          "Designers"
        ],
        "summary": "List designers",
        "description": "The designers in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of designers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "klaus-teuber",
                      "name": "Klaus Teuber",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/designers/{slug}": {
      "get": {
        "operationId": "get_designer",
        "tags": [
          "Designers"
        ],
        "summary": "Get one designer and its games",
        "description": "The designer and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a designer written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The designer's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "klaus-teuber"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The designer with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "klaus-teuber",
                    "name": "Klaus Teuber",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a designer merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No designer has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/artists": {
      "get": {
        "operationId": "list_artists",
        "tags": [
          "Artists"
        ],
        "summary": "List artists",
        "description": "The artists in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of artists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "beth-sobel",
                      "name": "Beth Sobel",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/artists/{slug}": {
      "get": {
        "operationId": "get_artist",
        "tags": [
          "Artists"
        ],
        "summary": "Get one artist and its games",
        "description": "The artist and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a artist written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The artist's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "beth-sobel"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The artist with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "beth-sobel",
                    "name": "Beth Sobel",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a artist merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No artist has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publishers": {
      "get": {
        "operationId": "list_publishers",
        "tags": [
          "Publishers"
        ],
        "summary": "List publishers",
        "description": "The publishers in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of publishers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "kosmos",
                      "name": "Kosmos",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publishers/{slug}": {
      "get": {
        "operationId": "get_publisher",
        "tags": [
          "Publishers"
        ],
        "summary": "Get one publisher and its games",
        "description": "The publisher and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a publisher written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The publisher's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "kosmos"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The publisher with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "kosmos",
                    "name": "Kosmos",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a publisher merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No publisher has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/categories": {
      "get": {
        "operationId": "list_categories",
        "tags": [
          "Categories"
        ],
        "summary": "List categories",
        "description": "The categories in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of categories.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "family",
                      "name": "Family",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/categories/{slug}": {
      "get": {
        "operationId": "get_category",
        "tags": [
          "Categories"
        ],
        "summary": "Get one category and its games",
        "description": "The category and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a category written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The category's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "family"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The category with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "family",
                    "name": "Family",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a category merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No category has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mechanics": {
      "get": {
        "operationId": "list_mechanics",
        "tags": [
          "Mechanics"
        ],
        "summary": "List mechanics",
        "description": "The mechanics in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of mechanics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "tile-placement",
                      "name": "Tile placement",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mechanics/{slug}": {
      "get": {
        "operationId": "get_mechanic",
        "tags": [
          "Mechanics"
        ],
        "summary": "Get one mechanic and its games",
        "description": "The mechanic and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a mechanic written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The mechanic's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "tile-placement"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The mechanic with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "tile-placement",
                    "name": "Tile placement",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a mechanic merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No mechanic has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/awards": {
      "get": {
        "operationId": "list_awards",
        "tags": [
          "Awards"
        ],
        "summary": "List awards",
        "description": "The awards in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of awards.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "spiel-des-jahres",
                      "name": "Spiel des Jahres",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/awards/{slug}": {
      "get": {
        "operationId": "get_award",
        "tags": [
          "Awards"
        ],
        "summary": "Get one award and its games",
        "description": "The award, the games it honoured a page at a time (optionally filtered and ordered; `total` counts the games that pass the filters), and its `years`: every year newest first, each with the games honoured that year by category and result. `years` holds the 500 most recent honours and does not follow the filters or the paging. A prize that used to be listed as an award of its own (`kennerspiel-des-jahres`) answers with a redirect to its award. The old address of an award merged into another (one award written two ways) redirects to it.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The award's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "spiel-des-jahres"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The award with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AwardWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "spiel-des-jahres",
                    "name": "Spiel des Jahres",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null,
                    "years": [
                      {
                        "year": 1995,
                        "honours": [
                          {
                            "category": null,
                            "result": "winner",
                            "game": {
                              "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                              "slug": "catan",
                              "name": "Catan",
                              "originalName": null,
                              "yearPublished": 1995,
                              "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg"
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is a prize that now belongs to an award, or an award merged into another: `Location` is that award's address."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No award has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/families": {
      "get": {
        "operationId": "list_families",
        "tags": [
          "Families"
        ],
        "summary": "List families",
        "description": "The families in the catalog with the number of games linked to each, a page at a time.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`name` alphabetical, `games` most games first.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "games"
              ],
              "default": "name"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Only names starting with this text. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Only names with a word starting with this text: `rosen` finds Uwe Rosenberg. Case is ignored.",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of families.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TermCount"
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match, across all pages."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "slug": "catan-series",
                      "name": "Catan series",
                      "games": 2
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` or `order` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/families/{slug}": {
      "get": {
        "operationId": "get_family",
        "tags": [
          "Families"
        ],
        "summary": "Get one family and its games",
        "description": "The family and the games linked to it, a page at a time, optionally filtered and ordered. `total` counts the games that pass the filters. The old address of a family written twice and merged into one answers with a permanent redirect (301) to the one kept.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The family's slug, as returned by the API.",
            "schema": {
              "type": "string"
            },
            "example": "catan-series"
          },
          {
            "name": "order",
            "in": "query",
            "description": "`added` oldest entry first, `new` newest entry first, `name` alphabetical, `year` most recent game first, `oldest` oldest game first (games with no known year are left out), `hot` highest hotness first (see `GET /hot`), `rating` highest weighted rating first, `complexity` heaviest first, `popular` best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), `ranked` best ranked first by our overall rank (unranked games last), `random` shuffled by `seed`. With `rating` and `complexity`, games nobody has rated or voted on come last. Without it: most recently added first.",
            "schema": {
              "type": "string",
              "enum": [
                "added",
                "new",
                "name",
                "year",
                "oldest",
                "hot",
                "rating",
                "complexity",
                "popular",
                "ranked",
                "random"
              ]
            }
          },
          {
            "name": "seed",
            "in": "query",
            "description": "With `order=random`: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483646
            },
            "example": 482913
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Only entries of this type: `game` a stand-alone game, `expansion` one that needs another game, `accessory` something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.",
            "schema": {
              "type": "string",
              "enum": [
                "game",
                "expansion",
                "accessory"
              ]
            }
          },
          {
            "name": "players",
            "in": "query",
            "description": "Only games that can be played by this many players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_from",
            "in": "query",
            "description": "With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "players_to",
            "in": "query",
            "description": "Upper end of the range started by players_from.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 99
            }
          },
          {
            "name": "year_from",
            "in": "query",
            "description": "Only games published in this year or later.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "year_to",
            "in": "query",
            "description": "Only games published in this year or earlier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "time_max",
            "in": "query",
            "description": "Only games that can be finished within this many minutes.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "age",
            "in": "query",
            "description": "Only games suitable for someone of this age.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            }
          },
          {
            "name": "illustrated",
            "in": "query",
            "description": "Set to 1 for only games that have a cover image.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "cover",
            "in": "query",
            "description": "Only games whose cover is in this state. `ok`: a good cover (`imageAcceptable` true). `needs_work`: a cover found not good (not the box front, a person in it, or `imageQuality` below 3), so a better one is wanted. `unreviewed`: a cover nothing has looked at yet. `none`: no cover at all. A cover that was not looked at is neither `ok` nor `needs_work`.",
            "schema": {
              "type": "string",
              "enum": [
                "ok",
                "needs_work",
                "unreviewed",
                "none"
              ]
            }
          },
          {
            "name": "complexity_min",
            "in": "query",
            "description": "Only games whose average complexity is at least this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 2.5
          },
          {
            "name": "complexity_max",
            "in": "query",
            "description": "Only games whose average complexity is at most this. Games nobody has voted on are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 5
            },
            "example": 3.5
          },
          {
            "name": "rating_min",
            "in": "query",
            "description": "Only games whose average rating is at least this. Games nobody has rated are left out.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 10
            },
            "example": 7
          },
          {
            "name": "letter",
            "in": "query",
            "description": "Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: \"Écarté\" is under E). `0` gives the names that start with anything else. This filter always reads the main name, whatever `lang` says; `GET /index/games` files by the name in the language. With `order=popular`: the best-known games of a letter.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0]$"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The family with its games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TermWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "slug": "catan-series",
                    "name": "Catan series",
                    "total": 1,
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "page": 1,
                    "pages": 1,
                    "nextCursor": null
                  }
                }
              }
            }
          },
          "301": {
            "description": "The slug is the old address of a family merged into another (the same written two ways): `Location` is the address of the one kept."
          },
          "400": {
            "description": "`page`, `cursor`, `order`, `lang` or a filter is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No family has this slug (`not_found`), or `page` is past the last page (`page_out_of_range`, with `params.pages`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/honours/recent": {
      "get": {
        "operationId": "list_recent_honours",
        "tags": [
          "Games"
        ],
        "summary": "Games with the most recent award wins",
        "description": "The games that won an award most recently, newest year first, one entry per game with the prize that put it there. Wins with no stated year are left out.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 10
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "Winning games, most recent first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "game",
                          "honour"
                        ],
                        "properties": {
                          "game": {
                            "$ref": "#/components/schemas/GameSummary"
                          },
                          "honour": {
                            "type": "object",
                            "required": [
                              "award",
                              "category",
                              "year",
                              "result"
                            ],
                            "properties": {
                              "award": {
                                "type": "object",
                                "required": [
                                  "slug",
                                  "name"
                                ],
                                "properties": {
                                  "slug": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              "category": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "year": {
                                "type": "integer"
                              },
                              "result": {
                                "type": "string",
                                "enum": [
                                  "winner"
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "game": {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      },
                      "honour": {
                        "award": {
                          "slug": "spiel-des-jahres",
                          "name": "Spiel des Jahres"
                        },
                        "category": null,
                        "year": 1995,
                        "result": "winner"
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/hot": {
      "get": {
        "operationId": "list_hot_games",
        "tags": [
          "Games"
        ],
        "summary": "The games people are looking at now",
        "description": "Games by hotness, highest first; games with none are left out. Hotness is recomputed every hour from views over the last 7 days (the game's page opened on the website, or the game read with `GET /games/{id}`; programs that announce themselves are not counted), the game's weighted rating and the number of ratings given in the last 30 days. **The formula is provisional and will change**; rely on the order, not on a value. The same order is available on any list of games with `order=hot`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The hottest games, hottest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GameSummary"
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                      "slug": "catan",
                      "name": "Catan",
                      "originalName": null,
                      "kind": "game",
                      "yearPublished": 1995,
                      "players": {
                        "min": 3,
                        "max": 4
                      },
                      "image": "/v1/media/covers/4f1c2b9e.jpg",
                      "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                      "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                      "rating": {
                        "average": 7.42,
                        "count": 318,
                        "weighted": 7.31
                      },
                      "complexity": {
                        "average": 2.29,
                        "votes": 121
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rating": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "rate_game",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Rate a game",
        "description": "A rating from 1 to 10, with at most one decimal. One rating per member; rating again replaces it. The member's email address must be confirmed. The game's `rating` changes at once; ranks follow within the hour.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "rating"
                ],
                "properties": {
                  "rating": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 10,
                    "multipleOf": 0.1
                  }
                }
              },
              "example": {
                "rating": 7.5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rating was stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "rating"
                      ],
                      "properties": {
                        "rating": {
                          "type": "number"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "rating": 7.5
                  }
                }
              }
            }
          },
          "400": {
            "description": "`rating` is not a number from 1 to 10 with at most one decimal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unrate_game",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Remove your rating of a game",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no rating on this game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/cover-votes": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_cover_votes",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Votes on a game's main cover",
        "description": "How members voted on the game's main cover: to keep it (`keep`), for a better one (`change`), or for one of the game's other box fronts (`cover:<id>` for another edition's or language's cover in `covers`, `photo:<id>` for a member's approved photo of the box front).",
        "responses": {
          "200": {
            "description": "The votes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "keep",
                        "change",
                        "alternatives",
                        "mine",
                        "threshold",
                        "candidates"
                      ],
                      "properties": {
                        "keep": {
                          "type": "integer",
                          "description": "Votes to keep the cover."
                        },
                        "change": {
                          "type": "integer",
                          "description": "Votes for a better cover."
                        },
                        "alternatives": {
                          "type": "array",
                          "description": "Votes for each of the game's other box fronts, most first.",
                          "items": {
                            "type": "object",
                            "required": [
                              "choice",
                              "votes"
                            ],
                            "properties": {
                              "choice": {
                                "type": "string",
                                "example": "cover:c-1"
                              },
                              "votes": {
                                "type": "integer"
                              }
                            }
                          }
                        },
                        "mine": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The asking member's vote; null for a visitor or a member who has not voted."
                        },
                        "threshold": {
                          "type": "integer",
                          "description": "Votes one of the other box fronts needs, with more than `keep`, to become the main cover; `change` needs as many to have a better cover looked for.",
                          "example": 3
                        },
                        "candidates": {
                          "type": "array",
                          "description": "The game's other box fronts that may be voted for, each with its image on this API (as `image` and the photos give it).",
                          "items": {
                            "type": "object",
                            "required": [
                              "choice",
                              "image"
                            ],
                            "properties": {
                              "choice": {
                                "type": "string"
                              },
                              "image": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "keep": 1,
                    "change": 0,
                    "alternatives": [
                      {
                        "choice": "cover:c-1",
                        "votes": 2
                      }
                    ],
                    "mine": null,
                    "threshold": 3,
                    "candidates": [
                      {
                        "choice": "cover:c-1",
                        "image": "/v1/media/covers/abc.jpg"
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "vote_cover",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Vote on a game's main cover",
        "description": "One vote per member and game; voting again replaces it. The member's email address must be confirmed. A box front becomes the main cover once it has 3 votes and more than `keep` (a moderator's vote decides at once): it is copied to our storage if need be, the previous cover is kept, and the votes start again. `change` with 3 votes and more than `keep` asks the moderators' search for a better cover.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "choice"
                ],
                "properties": {
                  "choice": {
                    "type": "string",
                    "description": "`keep`, `change`, or one of the game's other box fronts: `cover:<id>` or `photo:<id>`."
                  }
                }
              },
              "example": {
                "choice": "cover:c-1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vote was stored. `outcome` says what it did: `switched` (the box front voted for is now the main cover), `flagged` (a better cover is being looked for), or null; `problem` says why a cover that won could not be put in place.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "keep",
                        "change",
                        "alternatives",
                        "mine",
                        "outcome",
                        "problem"
                      ],
                      "properties": {
                        "keep": {
                          "type": "integer"
                        },
                        "change": {
                          "type": "integer"
                        },
                        "alternatives": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "mine": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "outcome": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "switched",
                            "flagged",
                            null
                          ]
                        },
                        "problem": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "keep": 0,
                    "change": 0,
                    "alternatives": [
                      {
                        "choice": "cover:c-1",
                        "votes": 1
                      }
                    ],
                    "mine": "cover:c-1",
                    "outcome": null,
                    "problem": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "`choice` is not `keep`, `change` or one of the game's other box fronts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/complexity": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "vote_complexity",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Vote on a game's complexity",
        "description": "How hard the game is to learn and play: 1 light, 2 medium light, 3 medium, 4 medium heavy, 5 heavy. One vote per member; voting again replaces it. The result is `complexity` on the game.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "weight"
                ],
                "properties": {
                  "weight": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5
                  }
                }
              },
              "example": {
                "weight": 3
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vote was counted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "`weight` is not a whole number from 1 to 5.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_complexity",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Take back your vote on a game's complexity",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no vote on this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/polls/age": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "vote_recommended_age",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Vote on a game's recommended age",
        "description": "The youngest age, in years, the member would recommend the game for. This is members' opinion; the age stated by the publisher is `minAge`. One vote per member; voting again replaces it. The result is `recommendedAge` on the game.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "age"
                ],
                "properties": {
                  "age": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 21
                  }
                }
              },
              "example": {
                "age": 10
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vote was counted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "`age` is not a whole number from 1 to 21.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_recommended_age",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Take back your vote on a game's recommended age",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no vote on this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/polls/language": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "vote_language_dependence",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Vote on a game's language dependence",
        "description": "How much the game depends on reading its language: 1 no text needed in play, 2 a little text, easy to memorise or explain, 3 a moderate amount, needs a reference sheet or stickers, 4 a lot of text, 5 unplayable in another language. One vote per member; voting again replaces it. The result is `languageDependence` on the game.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "level"
                ],
                "properties": {
                  "level": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5
                  }
                }
              },
              "example": {
                "level": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vote was counted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "`level` is not a whole number from 1 to 5.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_language_dependence",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Take back your vote on a game's language dependence",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no vote on this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/polls/players": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "vote_player_counts",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Vote on how many players a game is good with",
        "description": "One ballot per member: for each number of players the member has an opinion on, whether the game is `best`, `recommended` or `not_recommended` with that many. Sending a ballot replaces the member's previous one entirely. The results are `playerCounts`, `bestWith` and `recommendedWith` on the game.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "votes"
                ],
                "properties": {
                  "votes": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 20,
                    "description": "Each number of players at most once.",
                    "items": {
                      "type": "object",
                      "required": [
                        "players",
                        "vote"
                      ],
                      "properties": {
                        "players": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 20
                        },
                        "vote": {
                          "type": "string",
                          "enum": [
                            "best",
                            "recommended",
                            "not_recommended"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "votes": [
                  {
                    "players": 2,
                    "vote": "not_recommended"
                  },
                  {
                    "players": 3,
                    "vote": "recommended"
                  },
                  {
                    "players": 4,
                    "vote": "best"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The ballot was counted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "The ballot is empty, repeats a number of players, or has a value out of range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_player_counts",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "Take back your ballot on player counts",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no ballot on this game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/ratings": {
      "get": {
        "operationId": "list_ratings",
        "tags": [
          "Ratings and polls"
        ],
        "summary": "List your ratings",
        "description": "The games the member has rated, with the rating and when it was last given. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "description": "`recent`: the latest rating first. `rating`: the highest rating first.",
            "schema": {
              "type": "string",
              "enum": [
                "recent",
                "rating"
              ],
              "default": "recent"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the member's ratings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "game",
                          "rating",
                          "ratedAt"
                        ],
                        "properties": {
                          "game": {
                            "$ref": "#/components/schemas/GameSummary"
                          },
                          "rating": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 10,
                            "description": "The member's rating, out of 10."
                          },
                          "ratedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the rating was last given."
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many games the member has rated."
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "game": {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      },
                      "rating": 7.5,
                      "ratedAt": "2026-11-20T18:04:11.120Z"
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`order` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/playlist-votes": {
      "get": {
        "operationId": "get_my_playlist_votes",
        "tags": [
          "Accounts"
        ],
        "summary": "Your votes on some playlists",
        "description": "The member's own votes on the playlists named, for a list of playlists from several games. Playlists the member has not voted on are left out. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "description": "Up to 50 playlist ids, separated by commas.",
            "schema": {
              "type": "string"
            },
            "example": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21"
          }
        ],
        "responses": {
          "200": {
            "description": "The member's votes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "playlistId",
                          "vote"
                        ],
                        "properties": {
                          "playlistId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "vote": {
                            "type": "string",
                            "enum": [
                              "up",
                              "down"
                            ]
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "playlistId": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                      "vote": "up"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/games/{id}": {
      "get": {
        "operationId": "get_my_answers",
        "tags": [
          "Accounts"
        ],
        "summary": "What you said about a game",
        "description": "The member's own rating, votes, comment, submitted videos, playlist votes and uploaded rulebooks for one game, so an application can show them next to the game. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          }
        ],
        "responses": {
          "200": {
            "description": "The member's answers about the game.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MyAnswers"
                    }
                  }
                },
                "example": {
                  "data": {
                    "rating": 7.5,
                    "complexity": 2,
                    "recommendedAge": 10,
                    "languageDependence": 2,
                    "playerCounts": [
                      {
                        "players": 3,
                        "vote": "recommended"
                      },
                      {
                        "players": 4,
                        "vote": "best"
                      }
                    ],
                    "comment": {
                      "id": "4a0e7f0c-64d0-4f0e-8a51-6f4b1b2f9d10",
                      "text": "Trade wood for sheep.",
                      "status": "visible",
                      "createdAt": "2026-11-20T18:04:11.120Z",
                      "updatedAt": "2026-11-20T18:04:11.120Z"
                    },
                    "videos": [
                      {
                        "id": "0b0f5a51-64a5-4f6b-9a39-0a4d6c5c0f11",
                        "provider": "youtube",
                        "videoId": "dQw4w9WgXcQ",
                        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
                        "title": "How to play Catan",
                        "language": "en",
                        "category": "how_to_play",
                        "submittedBy": "Ana",
                        "likes": 12,
                        "dislikes": 1,
                        "createdAt": "2026-11-20T18:04:11.120Z",
                        "status": "pending"
                      }
                    ],
                    "playlistVotes": [
                      {
                        "playlistId": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                        "vote": "up"
                      }
                    ],
                    "rulebooks": [
                      {
                        "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
                        "type": "rulebook",
                        "language": "en",
                        "edition": "5th edition, 2015",
                        "kind": "pdf",
                        "pages": null,
                        "size": 4812330,
                        "createdAt": "2026-11-20T18:04:11.120Z",
                        "files": [
                          {
                            "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf",
                            "contentType": "application/pdf",
                            "size": 4812330,
                            "kind": null
                          }
                        ],
                        "status": "pending"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/comments": {
      "get": {
        "operationId": "list_game_comments",
        "tags": [
          "Comments"
        ],
        "summary": "List a game's comments",
        "description": "What members wrote about the game, newest first, each with its author's rating of the game when they gave one. `text` is plain text exactly as written: escape it before putting it in a page.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of comments.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "total",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Comment"
                      }
                    },
                    "total": {
                      "type": "integer"
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "4a0e7f0c-64d0-4f0e-8a51-6f4b1b2f9d10",
                      "author": "Ana",
                      "text": "Trade wood for sheep.",
                      "rating": 7.5,
                      "likes": 4,
                      "dislikes": 0,
                      "createdAt": "2026-11-20T18:04:11.120Z",
                      "updatedAt": "2026-11-20T18:04:11.120Z"
                    }
                  ],
                  "total": 1,
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`cursor` is not a value this API issued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/comment": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "write_comment",
        "tags": [
          "Comments"
        ],
        "summary": "Write or edit your comment on a game",
        "description": "One comment per member and game, of at most 2 000 characters; sending again edits it. Plain text: line breaks are kept, control characters are removed, and markup is stored as the characters typed, never interpreted. The member's email address must be confirmed. A member can send five comments or videos a minute. A comment removed by a moderator cannot be replaced.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                }
              },
              "example": {
                "text": "Trade wood for sheep."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The comment as stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "text",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "text": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "4a0e7f0c-64d0-4f0e-8a51-6f4b1b2f9d10",
                    "text": "Trade wood for sheep.",
                    "createdAt": "2026-11-20T18:04:11.120Z",
                    "updatedAt": "2026-11-20T18:04:11.120Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The text is empty or longer than 2 000 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address, or a moderator removed their comment on this game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or more than five posts in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_comment",
        "tags": [
          "Comments"
        ],
        "summary": "Delete your comment on a game",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member has no visible comment on this game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/videos": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "list_game_videos",
        "tags": [
          "Videos"
        ],
        "summary": "List a game's videos",
        "description": "Videos about the game that a moderator has approved, newest first.",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "Only videos of this kind.",
            "schema": {
              "$ref": "#/components/schemas/VideoCategory"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of videos.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Video"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "0b0f5a51-64a5-4f6b-9a39-0a4d6c5c0f11",
                      "provider": "youtube",
                      "videoId": "dQw4w9WgXcQ",
                      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
                      "title": "How to play Catan",
                      "language": "en",
                      "category": "how_to_play",
                      "submittedBy": "Ana",
                      "likes": 12,
                      "dislikes": 1,
                      "createdAt": "2026-11-20T18:04:11.120Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`category` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "submit_video",
        "tags": [
          "Videos"
        ],
        "summary": "Suggest a video for a game",
        "description": "Send the address of a video on YouTube or Vimeo; no other site is accepted. Only the provider and the video's id are kept, and `url` is rebuilt from them. The video is listed once a moderator has approved it. The member's email address must be confirmed. A member can send five comments or videos a minute and 20 videos a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "title",
                  "language",
                  "category"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "A YouTube or Vimeo video page."
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "language": {
                    "type": "string",
                    "description": "The language spoken, as a code such as \"en\" or \"pt-BR\"."
                  },
                  "category": {
                    "$ref": "#/components/schemas/VideoCategory"
                  }
                }
              },
              "example": {
                "url": "https://youtu.be/dQw4w9WgXcQ",
                "title": "How to play Catan",
                "language": "en",
                "category": "how_to_play"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The video was stored and waits for review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "provider",
                        "videoId",
                        "url",
                        "title",
                        "language",
                        "category",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "youtube",
                            "vimeo"
                          ]
                        },
                        "videoId": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "title": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string"
                        },
                        "category": {
                          "$ref": "#/components/schemas/VideoCategory"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "approved"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "0b0f5a51-64a5-4f6b-9a39-0a4d6c5c0f11",
                    "provider": "youtube",
                    "videoId": "dQw4w9WgXcQ",
                    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
                    "title": "How to play Catan",
                    "language": "en",
                    "category": "how_to_play",
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The address is not a YouTube or Vimeo video, or the title, language or category is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "This video was already sent in for this game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, more than five posts in a minute, or 20 videos already sent today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/playlists": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "list_game_playlists",
        "tags": [
          "Music"
        ],
        "summary": "List music to play a game to",
        "description": "Playlists and albums on Apple Music, Spotify and YouTube that members suggest as a soundtrack for the game. Best score first (votes up minus votes down), then newest. A playlist members voted down to a score of −3 or lower, with at least 5 votes, is left out. The list is the same for everyone; a member's own votes are in `GET /account/games/{id}`.",
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "description": "Only playlists on this service.",
            "schema": {
              "$ref": "#/components/schemas/MusicProvider"
            },
            "example": "spotify"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of playlists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Playlist"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                      "provider": "spotify",
                      "kind": "playlist",
                      "title": "Island traders: calm medieval folk",
                      "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
                      "score": 4,
                      "votes": 6,
                      "submittedBy": "Ana",
                      "createdAt": "2026-11-20T18:04:11.120Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`provider` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Add a playlist to a game",
        "description": "Send the address of a playlist or an album on Apple Music (`music.apple.com`), Spotify (`open.spotify.com`) or YouTube and YouTube Music (`youtube.com/playlist?list=…`); no other site is accepted, and neither are single tracks, mixes or personal lists such as \"liked\". Only the service, the kind and the playlist's id there are kept, and `url` is rebuilt from them. The title is the playlist's own, read from the service; `title` is only used when the service does not give one (a private playlist, or the service not answering), so it can be left out. The playlist is listed at once. A playlist is listed once: the address of one already listed for another game links it to this game too, with its title, votes and score. The member's email address must be confirmed. A member can send five posts a minute and 20 playlists a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "A playlist or album page on Apple Music, Spotify or YouTube."
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120,
                    "description": "A title to fall back on when the service does not give the playlist's own."
                  }
                }
              },
              "example": {
                "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO?si=abc",
                "title": "Island traders: calm medieval folk"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The playlist is listed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Playlist"
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                    "provider": "spotify",
                    "kind": "playlist",
                    "title": "Island traders: calm medieval folk",
                    "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
                    "score": 0,
                    "votes": 0,
                    "submittedBy": "Ana",
                    "createdAt": "2026-11-20T18:04:11.120Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The address is not a playlist or album on one of the three services, the title is longer than 120 characters, or the service gave no title and none of 2 to 120 characters was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "This playlist is already listed for this game, or was and is no longer shown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, more than five posts in a minute, or 20 playlists already added today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/merge-proposals": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "post": {
        "operationId": "propose_merge",
        "tags": [
          "Corrections"
        ],
        "summary": "Say a game is the same as another entry",
        "description": "The game in the address and the one named by `sameAs` are the same game listed twice. A moderator merges them or keeps them apart; the merged entry's address then leads to the kept one. `mergeNow` (moderators only) merges at once: the entry kept is the one with an English main name, then more facts, then the older.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sameAs"
                ],
                "properties": {
                  "sameAs": {
                    "type": "string",
                    "description": "The other entry's id or address (slug)."
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "Why, for the moderator."
                  },
                  "mergeNow": {
                    "type": "boolean",
                    "description": "Moderators only: merge without review."
                  }
                }
              },
              "example": {
                "sameAs": "a-feast-for-odin",
                "note": "Odin is the short name on the 2023 box."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Merged at once (`mergeNow`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "status",
                        "kept"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "merged"
                          ]
                        },
                        "kept": {
                          "type": "object",
                          "required": [
                            "id",
                            "slug",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "slug": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "The proposal, waiting for a moderator.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`sameAs` names no other game of the catalog, or the note is too long.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address, or asked for `mergeNow` without being a moderator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "A proposal about these two games is already waiting, or the merge was refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The merge could not be made now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/comments/{comment}/vote": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        },
        {
          "name": "comment",
          "in": "path",
          "required": true,
          "description": "The comment's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "4a0e7f0c-64d0-4f0e-8a51-6f4b1b2f9d10"
        }
      ],
      "put": {
        "operationId": "vote_comment",
        "tags": [
          "Comments"
        ],
        "summary": "Like or dislike a comment",
        "description": "`up` likes the comment, `down` dislikes it. One vote per member; voting again replaces it. Members cannot vote on what they added themselves. A vote that brings dislikes 3 or more ahead of likes, once at least 5 members have voted, hides the comment (`status` becomes `hidden`) until a moderator shows it again or removes it.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vote"
                ],
                "properties": {
                  "vote": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                }
              },
              "example": {
                "vote": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The comment's counts after the vote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 4,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`vote` is not \"up\" or \"down\".",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The comment is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such comment is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_comment",
        "tags": [
          "Comments"
        ],
        "summary": "Take back your vote on a comment",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The comment's counts with the member's vote taken out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 3,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The comment is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such comment is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/videos/{video}/vote": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        },
        {
          "name": "video",
          "in": "path",
          "required": true,
          "description": "The video's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "0b0f5a51-64a5-4f6b-9a39-0a4d6c5c0f11"
        }
      ],
      "put": {
        "operationId": "vote_video",
        "tags": [
          "Videos"
        ],
        "summary": "Like or dislike a video",
        "description": "`up` likes the video, `down` dislikes it. One vote per member; voting again replaces it. Members cannot vote on what they added themselves. A vote that brings dislikes 3 or more ahead of likes, once at least 5 members have voted, hides the video (`status` becomes `hidden`) until a moderator shows it again or removes it.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vote"
                ],
                "properties": {
                  "vote": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                }
              },
              "example": {
                "vote": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The video's counts after the vote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 4,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`vote` is not \"up\" or \"down\".",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The video is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such video is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_video",
        "tags": [
          "Videos"
        ],
        "summary": "Take back your vote on a video",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The video's counts with the member's vote taken out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 3,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The video is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such video is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/photos/{photo}/vote": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        },
        {
          "name": "photo",
          "in": "path",
          "required": true,
          "description": "The photo's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "2f6a3c1e-8d4b-4b8f-9a0e-1c2d3e4f5a6b"
        }
      ],
      "put": {
        "operationId": "vote_photo",
        "tags": [
          "Photos"
        ],
        "summary": "Like or dislike a photo",
        "description": "`up` likes the photo, `down` dislikes it. One vote per member; voting again replaces it. Members cannot vote on what they added themselves. A vote that brings dislikes 3 or more ahead of likes, once at least 5 members have voted, hides the photo (`status` becomes `hidden`) until a moderator shows it again or removes it.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vote"
                ],
                "properties": {
                  "vote": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                }
              },
              "example": {
                "vote": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The photo's counts after the vote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 4,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`vote` is not \"up\" or \"down\".",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The photo is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such photo is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_photo",
        "tags": [
          "Photos"
        ],
        "summary": "Take back your vote on a photo",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The photo's counts with the member's vote taken out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoteStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "likes": 3,
                    "dislikes": 1,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The photo is the member's own.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or no such photo is shown on it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/playlists/{playlist}/vote": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        },
        {
          "name": "playlist",
          "in": "path",
          "required": true,
          "description": "The playlist's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21"
        }
      ],
      "put": {
        "operationId": "vote_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Vote a playlist up or down",
        "description": "One vote per member and playlist; voting again replaces it. The playlist's `score` moves at once. A vote that brings the score to −3 or lower, once at least 5 members have voted, hides the playlist (`status` becomes `hidden`): it leaves the list and can no longer be voted on.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vote"
                ],
                "properties": {
                  "vote": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                }
              },
              "example": {
                "vote": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The playlist's standing after the vote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PlaylistStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "score": 5,
                    "votes": 7,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`vote` is not \"up\" or \"down\".",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it lists no such playlist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Take back your vote on a playlist",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The playlist's standing with the member's vote taken out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PlaylistStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "score": 4,
                    "votes": 6,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it lists no such playlist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/playlists": {
      "get": {
        "operationId": "list_playlists",
        "tags": [
          "Music"
        ],
        "summary": "List the best or newest playlists of every game",
        "description": "Playlists and albums members suggest for any game, each listed once with the games it is linked to. `order=top` (the default) puts the best score first (votes up minus votes down), then the newest; `order=new` the newest first. Each playlist carries the first 3 games it was linked to (`games`) and how many listed games it is linked to in all (`gameCount`). Playlists members voted down to a score of −3 or lower, with at least 5 votes, are left out.",
        "parameters": [
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "top",
                "new"
              ],
              "default": "top"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "description": "Only playlists on this service.",
            "schema": {
              "$ref": "#/components/schemas/MusicProvider"
            },
            "example": "spotify"
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 24
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of playlists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PlaylistWithGames"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                      "provider": "spotify",
                      "kind": "playlist",
                      "title": "Island traders: calm medieval folk",
                      "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
                      "score": 4,
                      "votes": 6,
                      "submittedBy": "Ana",
                      "createdAt": "2026-11-20T18:04:11.120Z",
                      "games": [
                        {
                          "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                          "slug": "catan",
                          "name": "Catan",
                          "originalName": null,
                          "kind": "game",
                          "yearPublished": 1995,
                          "players": {
                            "min": 3,
                            "max": 4
                          },
                          "image": "/v1/media/covers/4f1c2b9e.jpg",
                          "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                          "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                          "rating": {
                            "average": 7.42,
                            "count": 318,
                            "weighted": 7.31
                          },
                          "complexity": {
                            "average": 2.29,
                            "votes": 121
                          }
                        }
                      ],
                      "gameCount": 1
                    }
                  ],
                  "nextCursor": "24"
                }
              }
            }
          },
          "400": {
            "description": "`order`, `provider`, `lang` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/playlists/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The playlist's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21"
        }
      ],
      "get": {
        "operationId": "get_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Get a playlist and its games",
        "description": "One playlist with the games it is linked to, in the order they were linked (up to 100; `gameCount` counts them all).",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The playlist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PlaylistWithGames"
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                    "provider": "spotify",
                    "kind": "playlist",
                    "title": "Island traders: calm medieval folk",
                    "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
                    "score": 4,
                    "votes": 6,
                    "submittedBy": "Ana",
                    "createdAt": "2026-11-20T18:04:11.120Z",
                    "games": [
                      {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                        "slug": "catan",
                        "name": "Catan",
                        "originalName": null,
                        "kind": "game",
                        "yearPublished": 1995,
                        "players": {
                          "min": 3,
                          "max": 4
                        },
                        "image": "/v1/media/covers/4f1c2b9e.jpg",
                        "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
                        "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
                        "rating": {
                          "average": 7.42,
                          "count": 318,
                          "weighted": 7.31
                        },
                        "complexity": {
                          "average": 2.29,
                          "votes": 121
                        }
                      }
                    ],
                    "gameCount": 1
                  }
                }
              }
            }
          },
          "404": {
            "description": "No playlist has this id, or members or a moderator took it off the lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/playlists/{id}/games": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The playlist's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21"
        }
      ],
      "post": {
        "operationId": "add_playlist_to_game",
        "tags": [
          "Music"
        ],
        "summary": "Add a playlist to another game",
        "description": "Links a listed playlist to one more game. It keeps its title, its votes and its score, shared by every game it is linked to. Adding the address of a listed playlist with `POST /games/{id}/playlists` does the same. The member's email address must be confirmed; it counts against the 20 playlists a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "game"
                ],
                "properties": {
                  "game": {
                    "type": "string",
                    "description": "The game's id or address (slug)."
                  }
                }
              },
              "example": {
                "game": "catan-seafarers"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The playlist is linked to the game.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Playlist"
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
                    "provider": "spotify",
                    "kind": "playlist",
                    "title": "Island traders: calm medieval folk",
                    "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
                    "score": 4,
                    "votes": 6,
                    "submittedBy": "Ana",
                    "createdAt": "2026-11-20T18:04:11.120Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No playlist has this id, or no game is named `game`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The playlist is already linked to this game, or it is no longer shown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, more than five posts in a minute, or 20 playlists already added today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/playlists/{id}/vote": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The playlist's id.",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "example": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21"
        }
      ],
      "put": {
        "operationId": "vote_on_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Vote a playlist up or down, from any of its games",
        "description": "The same vote as `PUT /games/{id}/playlists/{playlist}/vote`, without naming a game: a playlist has one score on every game it is linked to.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vote"
                ],
                "properties": {
                  "vote": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                }
              },
              "example": {
                "vote": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The playlist's standing after the vote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PlaylistStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "score": 5,
                    "votes": 7,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`vote` is not \"up\" or \"down\".",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No listed playlist has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unvote_on_playlist",
        "tags": [
          "Music"
        ],
        "summary": "Take back your vote on a playlist, from any of its games",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The playlist's standing with the member's vote taken out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PlaylistStanding"
                    }
                  }
                },
                "example": {
                  "data": {
                    "score": 4,
                    "votes": 6,
                    "status": "visible"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No listed playlist has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rulebooks": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "list_game_rulebooks",
        "tags": [
          "Rules"
        ],
        "summary": "List a game's rulebooks and other files",
        "description": "The files members uploaded for the game and a moderator approved, by language then newest first: rulebooks, and beside them player aids, score sheets, FAQ, campaign books, print-and-play files and variants, each with its `type`. Ask for `type=rulebook` for the rules alone. A file is one PDF, or the pages as images in reading order. Each file's `path` is served by `GET /media/{key}`.",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "description": "Only files written in this language.",
            "schema": {
              "type": "string",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "fr"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Only files of this type.",
            "schema": {
              "type": "string",
              "enum": [
                "rulebook",
                "player_aid",
                "score_sheet",
                "faq",
                "campaign",
                "print_and_play",
                "variant",
                "other"
              ],
              "description": "What the file is. `rulebook`: the game's rules (the only type structured rules are drafted from); `player_aid`: player aids, reference sheets, rules summaries; `score_sheet`: score sheets and printable trackers; `faq`: FAQ and errata; `campaign`: campaign logs, scenario books; `print_and_play`: print-and-play files; `variant`: solo, automa and fan variants; `other`: anything else."
            },
            "example": "rulebook"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of files.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Rulebook"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` to get the next page. Null on the last page."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
                      "type": "rulebook",
                      "language": "en",
                      "edition": "5th edition, 2015",
                      "kind": "pdf",
                      "pages": null,
                      "size": 4812330,
                      "uploadedBy": "Ana",
                      "createdAt": "2026-11-20T18:04:11.120Z",
                      "files": [
                        {
                          "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf",
                          "contentType": "application/pdf",
                          "size": 4812330,
                          "kind": null
                        }
                      ]
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "`language`, `type` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "upload_rulebook",
        "tags": [
          "Rules"
        ],
        "summary": "Upload a rulebook or another file for a game",
        "description": "`type` says what the file is (a rulebook when left out; see the `Rulebook` schema for the words). Send one PDF, or up to 20 JPEG, PNG or WebP images of the pages in reading order, as repeated `file` fields. All files together may weigh 25 MB at most, and each image 5 MB; a PDF of up to 200 MB is sent in parts instead, starting with `POST /games/{id}/rulebooks/uploads`. The type is checked from each file's content, not its name. `language` says which language the rules are written in. The member's email address must be confirmed. A member can upload 10 rulebooks a day. A rulebook is shown to others once a moderator has approved it; until then only its uploader can list it (`GET /account/games/{id}`) and download its files.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file",
                  "language"
                ],
                "properties": {
                  "file": {
                    "type": "array",
                    "description": "One PDF, or 1 to 20 images.",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "rulebook",
                      "player_aid",
                      "score_sheet",
                      "faq",
                      "campaign",
                      "print_and_play",
                      "variant",
                      "other"
                    ],
                    "description": "What the file is. `rulebook`: the game's rules (the only type structured rules are drafted from); `player_aid`: player aids, reference sheets, rules summaries; `score_sheet`: score sheets and printable trackers; `faq`: FAQ and errata; `campaign`: campaign logs, scenario books; `print_and_play`: print-and-play files; `variant`: solo, automa and fan variants; `other`: anything else.",
                    "default": "rulebook"
                  },
                  "language": {
                    "type": "string",
                    "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
                  },
                  "edition": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Which edition or printing these rules belong to. Optional."
                  }
                }
              },
              "example": {
                "type": "rulebook",
                "language": "en",
                "edition": "5th edition, 2015"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rulebook was stored and waits for review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/OwnRulebook"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "approved"
                              ]
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
                    "type": "rulebook",
                    "language": "en",
                    "edition": "5th edition, 2015",
                    "kind": "pdf",
                    "pages": null,
                    "size": 4812330,
                    "files": [
                      {
                        "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf",
                        "contentType": "application/pdf",
                        "size": 4812330,
                        "kind": null
                      }
                    ],
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "No file was sent, a PDF was sent with other files, there are more than 20 images, or the type, language or edition is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The files weigh more than 25 MB together, or an image more than 5 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "A file is not a PDF, JPEG, PNG or WebP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or the member already uploaded 10 rulebooks today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rulebooks/uploads": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "post": {
        "operationId": "start_rulebook_upload",
        "tags": [
          "Rules"
        ],
        "summary": "Start sending a large PDF rulebook in parts",
        "description": "For a PDF too heavy for `POST /games/{id}/rulebooks`: up to 200 MB. Say how many bytes the file has; the answer tells how to cut it (`partSize` bytes a part, the last one shorter, `parts` in all) and gives a `token`. Send each part with `PUT /rulebook-uploads/{upload}/parts/{part}`, then `POST /rulebook-uploads/{upload}/complete`; those calls carry the token in the `x-upload-token` header and nothing else. The token opens this one upload, for two hours. The member's email address must be confirmed. A member can start five uploads a minute, have three under way at once, and add 10 rulebooks a day, uploads under way included. An upload neither completed nor cancelled is discarded after a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "size",
                  "language"
                ],
                "properties": {
                  "size": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 209715200,
                    "description": "Bytes of the whole file."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "rulebook",
                      "player_aid",
                      "score_sheet",
                      "faq",
                      "campaign",
                      "print_and_play",
                      "variant",
                      "other"
                    ],
                    "description": "What the file is. `rulebook`: the game's rules (the only type structured rules are drafted from); `player_aid`: player aids, reference sheets, rules summaries; `score_sheet`: score sheets and printable trackers; `faq`: FAQ and errata; `campaign`: campaign logs, scenario books; `print_and_play`: print-and-play files; `variant`: solo, automa and fan variants; `other`: anything else.",
                    "default": "rulebook"
                  },
                  "language": {
                    "type": "string",
                    "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
                  },
                  "edition": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Which edition or printing these rules belong to. Optional."
                  }
                }
              },
              "example": {
                "size": 61250112,
                "language": "en",
                "edition": "5th edition, 2015"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload is open.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/RulebookUpload"
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
                    "token": "9f2c61f0a4b84d7e9c3a5b1d7e2f4a6c8b0d2e4f6a8c0e2f4a6b8d0c2e4f6a81",
                    "partSize": 8388608,
                    "parts": 8,
                    "expiresAt": "2026-11-21T20:04:11.120Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The size, the type, the language or the edition is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 200 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, more than five starts in a minute, three uploads already under way, or 10 rulebooks already added today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/rulebook-uploads/{upload}/parts/{part}": {
      "parameters": [
        {
          "name": "upload",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The upload's id, from `POST /games/{id}/rulebooks/uploads`."
        },
        {
          "name": "part",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "description": "The part's number, from 1 to `parts`."
        }
      ],
      "put": {
        "operationId": "send_rulebook_upload_part",
        "tags": [
          "Rules"
        ],
        "summary": "Send one part of a large rulebook",
        "description": "The request body is the part's bytes, nothing around them, with their exact `content-length`: `partSize` for every part but the last, the remainder for the last. Parts can be sent in any order, and a part that failed can be sent again. The first part must begin as a PDF does (`%PDF-`): if it does not, the whole upload is discarded. Browsers are answered only on the website's own pages.",
        "security": [
          {
            "uploadToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The part is stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "part"
                      ],
                      "properties": {
                        "part": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "part": 3
                  }
                }
              }
            }
          },
          "400": {
            "description": "The part number is not a number, the body is shorter than the part should be, or it did not arrive whole.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The `x-upload-token` header is missing, or the token has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No upload has this id and token: it was completed, cancelled or discarded, or the token is another upload's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is longer than this part should be, or the upload has fewer parts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The first part is not the start of a PDF.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/rulebook-uploads/{upload}/complete": {
      "parameters": [
        {
          "name": "upload",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The upload's id, from `POST /games/{id}/rulebooks/uploads`."
        }
      ],
      "post": {
        "operationId": "complete_rulebook_upload",
        "tags": [
          "Rules"
        ],
        "summary": "Finish a large rulebook once its parts are sent",
        "description": "Puts the parts together. The file becomes a rulebook that waits for review, exactly as one sent with `POST /games/{id}/rulebooks`, under the same id as the upload. Its `pages` is null at first: the pages are counted from the stored file within the hour, usually within seconds.",
        "security": [
          {
            "uploadToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "The rulebook was stored and waits for review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/OwnRulebook"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "approved"
                              ]
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
                    "type": "rulebook",
                    "language": "en",
                    "edition": "5th edition, 2015",
                    "kind": "pdf",
                    "pages": null,
                    "size": 4812330,
                    "files": [
                      {
                        "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf",
                        "contentType": "application/pdf",
                        "size": 4812330,
                        "kind": null
                      }
                    ],
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The parts do not add up to the size announced. The upload is discarded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The `x-upload-token` header is missing, or the token has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No upload has this id and token: it was completed, cancelled or discarded, or the token is another upload's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Some parts have not arrived (`missing` lists their numbers), or the parts could not be put together.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  }
                },
                "example": {
                  "error": "Some parts have not arrived yet. Send them first.",
                  "missing": [
                    4,
                    7
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/rulebook-uploads/{upload}": {
      "parameters": [
        {
          "name": "upload",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The upload's id, from `POST /games/{id}/rulebooks/uploads`."
        }
      ],
      "delete": {
        "operationId": "cancel_rulebook_upload",
        "tags": [
          "Rules"
        ],
        "summary": "Cancel a large rulebook upload",
        "description": "Discards the upload and the parts already sent. The token stops working.",
        "security": [
          {
            "uploadToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The upload is discarded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "The `x-upload-token` header is missing, or the token has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No upload has this id and token: it was completed, cancelled or discarded, or the token is another upload's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/corrections": {
      "post": {
        "operationId": "suggest_correction",
        "tags": [
          "Corrections"
        ],
        "summary": "Suggest a correction to a game",
        "description": "One proposal holds 1 to 20 changes to one game: a fact, a credit to add or remove, an alternate name. Nothing changes until a moderator accepts it; an accepted correction is kept against later imports and credited in the game's history. The member's email address must be confirmed. A member can suggest 20 corrections a day. A member verified as representing one of the game's publishers has their correction marked as coming from the publisher; it is reviewed like any other.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "changes"
                ],
                "properties": {
                  "changes": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "title": "A fact",
                          "required": [
                            "type",
                            "field",
                            "old",
                            "new"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "field"
                            },
                            "field": {
                              "type": "string",
                              "enum": [
                                "name",
                                "yearPublished",
                                "minPlayers",
                                "maxPlayers",
                                "minPlaytime",
                                "maxPlaytime",
                                "minAge",
                                "tagline",
                                "description",
                                "officialUrl",
                                "ean",
                                "kind"
                              ]
                            },
                            "old": {
                              "type": [
                                "string",
                                "integer",
                                "null"
                              ],
                              "description": "The value the game showed when you wrote the correction. The correction is refused when the game no longer says this."
                            },
                            "new": {
                              "type": [
                                "string",
                                "integer",
                                "null"
                              ],
                              "description": "The value you propose, held to the rules of the field: `yearPublished` -3500 to 2100, players 1 to 999, playing time in minutes, `minAge` 0 to 99, `tagline` one line of 160 characters, `description` the description, plain text of 2,500 characters (paragraphs separated by a blank line and lists whose lines start with \"- \", in the order: what the game is, premise, core, a turn, components, end, variants, editions; no links, HTML or other marks), `officialUrl` an http(s) address, `ean` a valid EAN-13 (a 12-digit UPC is accepted), `kind` one of game, expansion, accessory. Null says the fact is unknown; `name` and `kind` cannot be null."
                            },
                            "source": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 500,
                              "description": "Where you read it. Optional."
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 500,
                              "description": "Optional."
                            }
                          }
                        },
                        {
                          "type": "object",
                          "title": "A credit",
                          "required": [
                            "type",
                            "action",
                            "kind"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "credit"
                            },
                            "action": {
                              "type": "string",
                              "enum": [
                                "add",
                                "remove"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "designer",
                                "artist",
                                "publisher",
                                "category",
                                "mechanic",
                                "family"
                              ]
                            },
                            "slug": {
                              "type": "string",
                              "description": "The slug of an existing entry. Required to remove a credit."
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "To add someone or something the catalog does not list yet."
                            },
                            "source": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 500,
                              "description": "Where you read it. Optional."
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 500,
                              "description": "Optional."
                            }
                          }
                        },
                        {
                          "type": "object",
                          "title": "An alternate name",
                          "required": [
                            "type",
                            "language",
                            "name"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "name"
                            },
                            "language": {
                              "type": "string",
                              "description": "A language code such as \"fr\" or \"pt-br\"."
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "source": {
                              "type": "string",
                              "format": "uri",
                              "maxLength": 500,
                              "description": "Where you read it. Optional."
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 500,
                              "description": "Optional."
                            }
                          }
                        }
                      ]
                    }
                  },
                  "textDeclared": {
                    "type": "boolean",
                    "description": "Must be true when a description is proposed: you wrote the text, or it is free to reuse."
                  }
                }
              },
              "example": {
                "changes": [
                  {
                    "type": "field",
                    "field": "yearPublished",
                    "old": 1994,
                    "new": 1995,
                    "source": "https://www.catan.com/about-us"
                  },
                  {
                    "type": "credit",
                    "action": "add",
                    "kind": "artist",
                    "name": "Michael Menzel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The correction waits for a moderator.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "status",
                        "fromPublisher",
                        "changes"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "type": "string",
                          "const": "pending"
                        },
                        "fromPublisher": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The publisher the member verifiably represents, when the game is credited to it."
                        },
                        "changes": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "title": "A fact",
                                "required": [
                                  "type",
                                  "field",
                                  "old",
                                  "new"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "field"
                                  },
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "name",
                                      "yearPublished",
                                      "minPlayers",
                                      "maxPlayers",
                                      "minPlaytime",
                                      "maxPlaytime",
                                      "minAge",
                                      "tagline",
                                      "description",
                                      "officialUrl",
                                      "ean",
                                      "kind"
                                    ]
                                  },
                                  "old": {
                                    "type": [
                                      "string",
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The value the game showed when you wrote the correction. The correction is refused when the game no longer says this."
                                  },
                                  "new": {
                                    "type": [
                                      "string",
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The value you propose, held to the rules of the field: `yearPublished` -3500 to 2100, players 1 to 999, playing time in minutes, `minAge` 0 to 99, `tagline` one line of 160 characters, `description` the description, plain text of 2,500 characters (paragraphs separated by a blank line and lists whose lines start with \"- \", in the order: what the game is, premise, core, a turn, components, end, variants, editions; no links, HTML or other marks), `officialUrl` an http(s) address, `ean` a valid EAN-13 (a 12-digit UPC is accepted), `kind` one of game, expansion, accessory. Null says the fact is unknown; `name` and `kind` cannot be null."
                                  },
                                  "source": {
                                    "type": "string",
                                    "format": "uri",
                                    "maxLength": 500,
                                    "description": "Where you read it. Optional."
                                  },
                                  "note": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "description": "Optional."
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "title": "A credit",
                                "required": [
                                  "type",
                                  "action",
                                  "kind"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "credit"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "add",
                                      "remove"
                                    ]
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "designer",
                                      "artist",
                                      "publisher",
                                      "category",
                                      "mechanic",
                                      "family"
                                    ]
                                  },
                                  "slug": {
                                    "type": "string",
                                    "description": "The slug of an existing entry. Required to remove a credit."
                                  },
                                  "name": {
                                    "type": "string",
                                    "maxLength": 200,
                                    "description": "To add someone or something the catalog does not list yet."
                                  },
                                  "source": {
                                    "type": "string",
                                    "format": "uri",
                                    "maxLength": 500,
                                    "description": "Where you read it. Optional."
                                  },
                                  "note": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "description": "Optional."
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "title": "An alternate name",
                                "required": [
                                  "type",
                                  "language",
                                  "name"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "name"
                                  },
                                  "language": {
                                    "type": "string",
                                    "description": "A language code such as \"fr\" or \"pt-br\"."
                                  },
                                  "name": {
                                    "type": "string",
                                    "maxLength": 300
                                  },
                                  "source": {
                                    "type": "string",
                                    "format": "uri",
                                    "maxLength": 500,
                                    "description": "Where you read it. Optional."
                                  },
                                  "note": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "description": "Optional."
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A change is not valid; the message says which and why.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The game no longer says what `old` states, or already is as proposed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or the member already suggested 20 corrections today.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/history": {
      "get": {
        "operationId": "get_game_history",
        "tags": [
          "Corrections"
        ],
        "summary": "List the accepted corrections of a game",
        "description": "Who corrected what, newest first: the member's display name, the date and the facts changed. Corrections a moderator took back are left out. At most 100.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          }
        ],
        "responses": {
          "200": {
            "description": "The game's accepted corrections.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "date",
                          "contributor",
                          "fromPublisher",
                          "changes"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "date": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "contributor": {
                            "type": "string",
                            "description": "Display name of the member."
                          },
                          "fromPublisher": {
                            "type": "boolean",
                            "description": "The member was verified as representing one of the game's publishers."
                          },
                          "changes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "field",
                                "action",
                                "value"
                              ],
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "A fact's name (`yearPublished`), a kind of credit (`designers`) or `names`."
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "changed",
                                    "added",
                                    "removed"
                                  ]
                                },
                                "value": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The credit or name added or removed; null for a fact."
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "0c8a6e0e-1a53-4c55-9f43-0f1f2a3b4c5d",
                      "date": "2026-11-21T09:12:44.031Z",
                      "contributor": "Ana",
                      "fromPublisher": false,
                      "changes": [
                        {
                          "field": "yearPublished",
                          "action": "changed",
                          "value": null
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No game has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/corrections": {
      "get": {
        "operationId": "list_own_corrections",
        "tags": [
          "Corrections"
        ],
        "summary": "List your corrections",
        "description": "The corrections the member suggested, newest first, each with its status and, when rejected, the moderator's reason. Once decided, each change says whether it was accepted or declined. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "`nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the member's corrections.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "status",
                          "reason",
                          "createdAt",
                          "reviewedAt",
                          "undone",
                          "game",
                          "changes"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "accepted",
                              "rejected"
                            ]
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Why it was rejected."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "reviewedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          },
                          "undone": {
                            "type": "boolean",
                            "description": "Accepted, then taken back by a moderator."
                          },
                          "game": {
                            "type": "object",
                            "required": [
                              "id",
                              "slug",
                              "name"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "changes": {
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "title": "A fact",
                                      "required": [
                                        "type",
                                        "field",
                                        "old",
                                        "new"
                                      ],
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "const": "field"
                                        },
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "name",
                                            "yearPublished",
                                            "minPlayers",
                                            "maxPlayers",
                                            "minPlaytime",
                                            "maxPlaytime",
                                            "minAge",
                                            "tagline",
                                            "description",
                                            "officialUrl",
                                            "ean",
                                            "kind"
                                          ]
                                        },
                                        "old": {
                                          "type": [
                                            "string",
                                            "integer",
                                            "null"
                                          ],
                                          "description": "The value the game showed when you wrote the correction. The correction is refused when the game no longer says this."
                                        },
                                        "new": {
                                          "type": [
                                            "string",
                                            "integer",
                                            "null"
                                          ],
                                          "description": "The value you propose, held to the rules of the field: `yearPublished` -3500 to 2100, players 1 to 999, playing time in minutes, `minAge` 0 to 99, `tagline` one line of 160 characters, `description` the description, plain text of 2,500 characters (paragraphs separated by a blank line and lists whose lines start with \"- \", in the order: what the game is, premise, core, a turn, components, end, variants, editions; no links, HTML or other marks), `officialUrl` an http(s) address, `ean` a valid EAN-13 (a 12-digit UPC is accepted), `kind` one of game, expansion, accessory. Null says the fact is unknown; `name` and `kind` cannot be null."
                                        },
                                        "source": {
                                          "type": "string",
                                          "format": "uri",
                                          "maxLength": 500,
                                          "description": "Where you read it. Optional."
                                        },
                                        "note": {
                                          "type": "string",
                                          "maxLength": 500,
                                          "description": "Optional."
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "title": "A credit",
                                      "required": [
                                        "type",
                                        "action",
                                        "kind"
                                      ],
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "const": "credit"
                                        },
                                        "action": {
                                          "type": "string",
                                          "enum": [
                                            "add",
                                            "remove"
                                          ]
                                        },
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "designer",
                                            "artist",
                                            "publisher",
                                            "category",
                                            "mechanic",
                                            "family"
                                          ]
                                        },
                                        "slug": {
                                          "type": "string",
                                          "description": "The slug of an existing entry. Required to remove a credit."
                                        },
                                        "name": {
                                          "type": "string",
                                          "maxLength": 200,
                                          "description": "To add someone or something the catalog does not list yet."
                                        },
                                        "source": {
                                          "type": "string",
                                          "format": "uri",
                                          "maxLength": 500,
                                          "description": "Where you read it. Optional."
                                        },
                                        "note": {
                                          "type": "string",
                                          "maxLength": 500,
                                          "description": "Optional."
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "title": "An alternate name",
                                      "required": [
                                        "type",
                                        "language",
                                        "name"
                                      ],
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "const": "name"
                                        },
                                        "language": {
                                          "type": "string",
                                          "description": "A language code such as \"fr\" or \"pt-br\"."
                                        },
                                        "name": {
                                          "type": "string",
                                          "maxLength": 300
                                        },
                                        "source": {
                                          "type": "string",
                                          "format": "uri",
                                          "maxLength": 500,
                                          "description": "Where you read it. Optional."
                                        },
                                        "note": {
                                          "type": "string",
                                          "maxLength": 500,
                                          "description": "Optional."
                                        }
                                      }
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "decision": {
                                      "type": "string",
                                      "enum": [
                                        "accepted",
                                        "declined"
                                      ]
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass as `cursor` for the next page."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/publisher-claims": {
      "get": {
        "operationId": "list_publisher_claims",
        "tags": [
          "Corrections"
        ],
        "summary": "List the publishers you asked to represent",
        "description": "The member's requests to be recognised as representing a publisher, with their status.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member's requests, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "status",
                          "emailDomain",
                          "note",
                          "publisher"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "verified",
                              "rejected"
                            ]
                          },
                          "emailDomain": {
                            "type": "string"
                          },
                          "note": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "verifiedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          },
                          "publisher": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "claim_publisher",
        "tags": [
          "Corrections"
        ],
        "summary": "Say you represent a publisher",
        "description": "A moderator checks the request by hand. Once verified, the member's corrections to that publisher's games are marked as coming from the publisher, and the member may send a game's official cover (`official` on `POST /games/{id}/images`). The member's email address must be confirmed.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "publisher",
                  "emailDomain"
                ],
                "properties": {
                  "publisher": {
                    "type": "string",
                    "description": "The publisher's slug."
                  },
                  "emailDomain": {
                    "type": "string",
                    "description": "The company's email domain."
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 500
                  }
                }
              },
              "example": {
                "publisher": "kosmos",
                "emailDomain": "kosmos.de",
                "note": "Product manager for the Catan line."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The request waits for a moderator.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "status",
                        "emailDomain",
                        "note",
                        "publisher"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "verified",
                            "rejected"
                          ]
                        },
                        "emailDomain": {
                          "type": "string"
                        },
                        "note": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "verifiedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "publisher": {
                          "type": "object",
                          "required": [
                            "slug",
                            "name"
                          ],
                          "properties": {
                            "slug": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The publisher, the domain or the note is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The member already sent a request for this publisher.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited, or five requests are already waiting.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/editions": {
      "get": {
        "operationId": "find_edition_by_barcode",
        "tags": [
          "Rules"
        ],
        "summary": "Find an edition by its barcode",
        "description": "The editions whose barcode (EAN-13, or the 12-digit UPC-A on boxes sold in North America) is `ean`, each with its game: an edition's own barcode, the game's barcode (its original edition), or a barcode a source gave the game. Usually one; a barcode reused by a publisher can give more. Counted as one game read for the weekly limits.",
        "parameters": [
          {
            "name": "ean",
            "in": "query",
            "required": true,
            "description": "13 or 12 digits, spaces and dashes ignored; the check digit must be right.",
            "schema": {
              "type": "string"
            },
            "example": "4002051694104"
          }
        ],
        "responses": {
          "200": {
            "description": "The editions with this barcode.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ean",
                    "data"
                  ],
                  "properties": {
                    "ean": {
                      "type": "string",
                      "description": "As EAN-13."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "edition",
                          "game"
                        ],
                        "properties": {
                          "edition": {
                            "type": "object",
                            "required": [
                              "id",
                              "slug",
                              "name",
                              "original",
                              "language",
                              "publisher",
                              "year",
                              "productCode",
                              "ean",
                              "cover",
                              "covers"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "slug": {
                                "type": "string",
                                "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                "example": "fr-iello-2019-k3x9q2"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Null for the original edition."
                              },
                              "original": {
                                "type": "boolean"
                              },
                              "language": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The language it is printed in, when known."
                              },
                              "publisher": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "slug": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              "year": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "productCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The publisher's product code or SKU, when known."
                              },
                              "ean": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                              },
                              "cover": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "required": [
                                  "image",
                                  "thumbnail"
                                ],
                                "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                "properties": {
                                  "image": {
                                    "type": "string"
                                  },
                                  "thumbnail": {
                                    "type": "string"
                                  }
                                }
                              },
                              "covers": {
                                "type": "object",
                                "required": [
                                  "front",
                                  "back"
                                ],
                                "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                "properties": {
                                  "front": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "back": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "game": {
                            "$ref": "#/components/schemas/GameSummary"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`ean` is not a barcode (`invalid_ean`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No edition has this barcode yet (`barcode_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/lookup": {
      "post": {
        "operationId": "lookup_many",
        "tags": [
          "Rules"
        ],
        "summary": "Look up many barcodes or ids at once (paid plans)",
        "description": "Up to 100 barcodes and ids in one request, on a paid plan: each barcode as `GET /editions?ean=` answers it, each id as an edition's id, or a game's id or address with all its editions. Every item counts as a request and a game read for the weekly limits. An item that names nothing has an empty `found`; a malformed barcode an `error`.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "eans": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "example": {
                "eans": [
                  "4002051694104"
                ],
                "ids": [
                  "catan"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One result per item, barcodes first, in the order sent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ean": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "found": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "edition",
                                "game"
                              ],
                              "properties": {
                                "edition": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "slug",
                                    "name",
                                    "original",
                                    "language",
                                    "publisher",
                                    "year",
                                    "productCode",
                                    "ean",
                                    "cover",
                                    "covers"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "slug": {
                                      "type": "string",
                                      "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                      "example": "fr-iello-2019-k3x9q2"
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Null for the original edition."
                                    },
                                    "original": {
                                      "type": "boolean"
                                    },
                                    "language": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The language it is printed in, when known."
                                    },
                                    "publisher": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "slug": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "year": {
                                      "type": [
                                        "integer",
                                        "null"
                                      ]
                                    },
                                    "productCode": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The publisher's product code or SKU, when known."
                                    },
                                    "ean": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                                    },
                                    "cover": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "required": [
                                        "image",
                                        "thumbnail"
                                      ],
                                      "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                      "properties": {
                                        "image": {
                                          "type": "string"
                                        },
                                        "thumbnail": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "covers": {
                                      "type": "object",
                                      "required": [
                                        "front",
                                        "back"
                                      ],
                                      "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                      "properties": {
                                        "front": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "required": [
                                            "image",
                                            "thumbnail"
                                          ],
                                          "properties": {
                                            "image": {
                                              "type": "string"
                                            },
                                            "thumbnail": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "back": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "required": [
                                            "image",
                                            "thumbnail"
                                          ],
                                          "properties": {
                                            "image": {
                                              "type": "string"
                                            },
                                            "thumbnail": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "game": {
                                  "$ref": "#/components/schemas/GameSummary"
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No items, more than 100, or one that is not a string (`invalid_lookup`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Not on a paid plan (`paid_plan_required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/editions/{edition}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        },
        {
          "name": "edition",
          "in": "path",
          "required": true,
          "description": "The edition's `slug`, an older address of it, or its `id`. The answer's `slug` is its current address.",
          "schema": {
            "type": "string"
          },
          "example": "fr-iello-2019-k3x9q2"
        }
      ],
      "get": {
        "operationId": "get_game_edition",
        "tags": [
          "Rules"
        ],
        "summary": "Get one edition of a game",
        "description": "One edition with what the catalog holds for it: its box front and back, the languages its rules are written in, its rulebooks, what differs from the original edition (title, publisher, year, language), and the game's other editions. Counted as reading the game.\n\n`indexable` says whether it has enough of its own for a page of its own: its own front cover, a language, a publisher, a year or a barcode, and a back cover, rules or a rulebook in its language. The website gives a page to search engines only to such editions; `GET /index/editions` lists them.",
        "responses": {
          "200": {
            "description": "The edition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "slug",
                            "name",
                            "original",
                            "language",
                            "publisher",
                            "year",
                            "productCode",
                            "ean",
                            "cover",
                            "covers"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "slug": {
                              "type": "string",
                              "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                              "example": "fr-iello-2019-k3x9q2"
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Null for the original edition."
                            },
                            "original": {
                              "type": "boolean"
                            },
                            "language": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The language it is printed in, when known."
                            },
                            "publisher": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "slug": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            },
                            "year": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "productCode": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The publisher's product code or SKU, when known."
                            },
                            "ean": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                            },
                            "cover": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "required": [
                                "image",
                                "thumbnail"
                              ],
                              "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                              "properties": {
                                "image": {
                                  "type": "string"
                                },
                                "thumbnail": {
                                  "type": "string"
                                }
                              }
                            },
                            "covers": {
                              "type": "object",
                              "required": [
                                "front",
                                "back"
                              ],
                              "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                              "properties": {
                                "front": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "back": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "required": [
                            "game",
                            "front",
                            "back",
                            "rules",
                            "rulebooks",
                            "differences",
                            "indexable",
                            "others"
                          ],
                          "properties": {
                            "game": {
                              "type": "object",
                              "required": [
                                "id",
                                "slug",
                                "name"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "slug": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            },
                            "front": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "required": [
                                "image",
                                "medium",
                                "thumbnail",
                                "width",
                                "height"
                              ],
                              "properties": {
                                "image": {
                                  "type": "string",
                                  "description": "A path on this API."
                                },
                                "medium": {
                                  "type": "string",
                                  "description": "500 pixels wide, or `image` when not narrower."
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "description": "250 pixels wide, or `image` when not narrower."
                                },
                                "width": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "height": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                }
                              },
                              "description": "The front of this edition's box: its own, or for the original edition the game's main cover. Null when the catalog has none."
                            },
                            "back": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "required": [
                                "image",
                                "medium",
                                "thumbnail",
                                "width",
                                "height"
                              ],
                              "properties": {
                                "image": {
                                  "type": "string",
                                  "description": "A path on this API."
                                },
                                "medium": {
                                  "type": "string",
                                  "description": "500 pixels wide, or `image` when not narrower."
                                },
                                "thumbnail": {
                                  "type": "string",
                                  "description": "250 pixels wide, or `image` when not narrower."
                                },
                                "width": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "height": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                }
                              },
                              "description": "The back of this edition's box, when the catalog has it."
                            },
                            "rules": {
                              "type": "object",
                              "required": [
                                "languages"
                              ],
                              "properties": {
                                "languages": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "The languages this edition's rules are written in (`GET /games/{id}/rules?edition=`)."
                                }
                              }
                            },
                            "rulebooks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "type",
                                  "language",
                                  "pages"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string"
                                  },
                                  "language": {
                                    "type": "string"
                                  },
                                  "pages": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ]
                                  }
                                }
                              },
                              "description": "Approved files filed under this edition (`GET /games/{id}/rulebooks` gives their files)."
                            },
                            "differences": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "field",
                                  "edition",
                                  "original"
                                ],
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "title",
                                      "publisher",
                                      "year",
                                      "language"
                                    ]
                                  },
                                  "edition": {
                                    "type": [
                                      "string",
                                      "integer"
                                    ]
                                  },
                                  "original": {
                                    "type": [
                                      "string",
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The game's value; null when unknown."
                                  }
                                }
                              },
                              "description": "The facts of this edition that are not the game's own. Empty for the original edition."
                            },
                            "indexable": {
                              "type": "boolean"
                            },
                            "others": {
                              "type": "array",
                              "description": "The game's other editions, the original first.",
                              "items": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "slug",
                                  "name",
                                  "original",
                                  "language",
                                  "year",
                                  "titles"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "slug": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "original": {
                                    "type": "boolean"
                                  },
                                  "language": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "year": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ]
                                  },
                                  "titles": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No game has this id (`game_not_found`), or it has no such edition (`edition_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/editions": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "list_game_editions",
        "tags": [
          "Rules"
        ],
        "summary": "List a game's editions",
        "description": "The editions rules and tutorials are filed under: the original edition first (always listed), then the others members added and a moderator approved, most recent first.",
        "responses": {
          "200": {
            "description": "The editions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "original",
                          "language",
                          "publisher",
                          "year",
                          "productCode",
                          "ean",
                          "cover",
                          "covers"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string",
                            "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                            "example": "fr-iello-2019-k3x9q2"
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Null for the original edition."
                          },
                          "original": {
                            "type": "boolean"
                          },
                          "language": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The language it is printed in, when known."
                          },
                          "publisher": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "year": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "productCode": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The publisher's product code or SKU, when known."
                          },
                          "ean": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                          },
                          "cover": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "required": [
                              "image",
                              "thumbnail"
                            ],
                            "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                            "properties": {
                              "image": {
                                "type": "string"
                              },
                              "thumbnail": {
                                "type": "string"
                              }
                            }
                          },
                          "covers": {
                            "type": "object",
                            "required": [
                              "front",
                              "back"
                            ],
                            "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                            "properties": {
                              "front": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "required": [
                                  "image",
                                  "thumbnail"
                                ],
                                "properties": {
                                  "image": {
                                    "type": "string"
                                  },
                                  "thumbnail": {
                                    "type": "string"
                                  }
                                }
                              },
                              "back": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "required": [
                                  "image",
                                  "thumbnail"
                                ],
                                "properties": {
                                  "image": {
                                    "type": "string"
                                  },
                                  "thumbnail": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                      "slug": "original",
                      "name": null,
                      "original": true,
                      "language": null,
                      "publisher": null,
                      "year": 1995,
                      "productCode": null,
                      "ean": null,
                      "cover": null,
                      "covers": {
                        "front": null,
                        "back": null
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "add_game_edition",
        "tags": [
          "Rules"
        ],
        "summary": "Add an edition of a game",
        "description": "A confirmed member adds an edition (a reprint, a deluxe box, a translation). It is listed once a moderator approves it; a moderator's is approved at once.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "language": {
                    "type": "string",
                    "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
                    "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
                  },
                  "publisher": {
                    "type": "string",
                    "description": "The publisher's slug."
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 1800,
                    "maximum": 2100
                  },
                  "productCode": {
                    "type": "string",
                    "maxLength": 60
                  }
                }
              },
              "example": {
                "name": "Deluxe edition",
                "language": "en",
                "publisher": "kosmos",
                "year": 2022
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added; `status` says whether it waits for review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A field is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rules": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_game_rules",
        "tags": [
          "Rules"
        ],
        "summary": "Read a game's rules",
        "description": "A game's rules in plain words, for one edition and language, in up to six sections: summary, setup, turn, end of game, scoring and variants. Written by members, or drafted from an approved rulebook in our own words and checked by a moderator before it shows. `editions` lists every edition with the languages it has rules in.",
        "parameters": [
          {
            "name": "edition",
            "in": "query",
            "description": "An edition's id from `editions`. Without it, the game's original edition.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original"
          },
          {
            "name": "lang",
            "in": "query",
            "description": "The language wanted. When the edition has no rules in it: its base language, then English, then the first in alphabetical order.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The rules, and the editions to choose from.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "editions"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "edition",
                        "language",
                        "languages",
                        "sections",
                        "rulebooks"
                      ],
                      "properties": {
                        "edition": {
                          "type": "object",
                          "required": [
                            "id",
                            "slug",
                            "name",
                            "original",
                            "language",
                            "publisher",
                            "year",
                            "productCode",
                            "ean",
                            "cover",
                            "covers"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "slug": {
                              "type": "string",
                              "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                              "example": "fr-iello-2019-k3x9q2"
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Null for the original edition."
                            },
                            "original": {
                              "type": "boolean"
                            },
                            "language": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The language it is printed in, when known."
                            },
                            "publisher": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "slug": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            },
                            "year": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "productCode": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The publisher's product code or SKU, when known."
                            },
                            "ean": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                            },
                            "cover": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "required": [
                                "image",
                                "thumbnail"
                              ],
                              "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                              "properties": {
                                "image": {
                                  "type": "string"
                                },
                                "thumbnail": {
                                  "type": "string"
                                }
                              }
                            },
                            "covers": {
                              "type": "object",
                              "required": [
                                "front",
                                "back"
                              ],
                              "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                              "properties": {
                                "front": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "back": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The language shown; null when the edition has no rules."
                        },
                        "languages": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The languages this edition has rules in."
                        },
                        "sections": {
                          "type": "array",
                          "description": "The sections written so far, in reading order. A section the rulebook does not cover is left out, never made up.",
                          "items": {
                            "type": "object",
                            "required": [
                              "section",
                              "body",
                              "origin",
                              "author",
                              "rulebookId",
                              "updatedAt"
                            ],
                            "properties": {
                              "section": {
                                "type": "string",
                                "enum": [
                                  "summary",
                                  "setup",
                                  "turn",
                                  "end",
                                  "scoring",
                                  "variants"
                                ]
                              },
                              "body": {
                                "type": "string",
                                "description": "Plain text with light formatting: paragraphs separated by a blank line, lines starting with `- ` or `1. ` for lists, `**bold**`. Never HTML."
                              },
                              "origin": {
                                "type": "string",
                                "enum": [
                                  "human",
                                  "job"
                                ],
                                "description": "`human`: written by a member. `job`: drafted in our own words from the rulebook `rulebookId`, then checked by a moderator."
                              },
                              "author": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The member who wrote it."
                              },
                              "rulebookId": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The rulebook a drafted section was read from."
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        },
                        "rulebooks": {
                          "type": "array",
                          "description": "The rulebooks the drafted sections came from, with their files (see `GET /games/{id}/rulebooks`).",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "editions": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "required": [
                              "id",
                              "slug",
                              "name",
                              "original",
                              "language",
                              "publisher",
                              "year",
                              "productCode",
                              "ean",
                              "cover",
                              "covers"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "slug": {
                                "type": "string",
                                "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                "example": "fr-iello-2019-k3x9q2"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Null for the original edition."
                              },
                              "original": {
                                "type": "boolean"
                              },
                              "language": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The language it is printed in, when known."
                              },
                              "publisher": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "slug": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              "year": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "productCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The publisher's product code or SKU, when known."
                              },
                              "ean": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                              },
                              "cover": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "required": [
                                  "image",
                                  "thumbnail"
                                ],
                                "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                "properties": {
                                  "image": {
                                    "type": "string"
                                  },
                                  "thumbnail": {
                                    "type": "string"
                                  }
                                }
                              },
                              "covers": {
                                "type": "object",
                                "required": [
                                  "front",
                                  "back"
                                ],
                                "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                "properties": {
                                  "front": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "back": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "required": [
                              "languages"
                            ],
                            "properties": {
                              "languages": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The languages it has something in."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "edition": {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                      "slug": "original",
                      "name": null,
                      "original": true,
                      "language": null,
                      "publisher": null,
                      "year": 1995,
                      "productCode": null,
                      "ean": null,
                      "cover": null,
                      "covers": {
                        "front": null,
                        "back": null
                      }
                    },
                    "language": "en",
                    "languages": [
                      "en"
                    ],
                    "sections": [
                      {
                        "section": "summary",
                        "body": "Settle an island: build roads, settlements and cities, trade resources, and be first to 10 victory points.",
                        "origin": "human",
                        "author": "Ada",
                        "rulebookId": null,
                        "updatedAt": "2026-11-22T10:00:00.000Z"
                      }
                    ],
                    "rulebooks": []
                  },
                  "editions": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                      "slug": "original",
                      "name": null,
                      "original": true,
                      "language": null,
                      "publisher": null,
                      "year": 1995,
                      "productCode": null,
                      "ean": null,
                      "cover": null,
                      "covers": {
                        "front": null,
                        "back": null
                      },
                      "languages": [
                        "en"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`lang` is not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rules/summary": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_game_rules_summary",
        "tags": [
          "Rules"
        ],
        "summary": "Check whether a game has rules and a tutorial",
        "description": "A light answer for a game's page: whether the game has rules in plain words and a step-by-step tutorial in any edition and language, and which to point to. For the rules, the opening of the summary section (or of the first section written) as plain text of up to 300 characters, and how many sections there are; for the tutorial, how many steps. The edition and language shown are the language asked for in the first edition that has it, the original edition first; otherwise the first edition with anything, in English when it can. Read the whole text with `GET /games/{id}/rules` and `GET /games/{id}/tutorials`.",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "The language wanted, or its base language. When no edition has it, the first edition with rules, in English when it can.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "What the game has; `null` for what it has not.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "rules",
                        "tutorial"
                      ],
                      "properties": {
                        "rules": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "required": [
                            "edition",
                            "language",
                            "sections",
                            "excerpt",
                            "excerptSection",
                            "languages",
                            "editions"
                          ],
                          "properties": {
                            "edition": {
                              "type": "object",
                              "required": [
                                "id",
                                "slug",
                                "name",
                                "original",
                                "language",
                                "publisher",
                                "year",
                                "productCode",
                                "ean",
                                "cover",
                                "covers"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "slug": {
                                  "type": "string",
                                  "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                  "example": "fr-iello-2019-k3x9q2"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Null for the original edition."
                                },
                                "original": {
                                  "type": "boolean"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The language it is printed in, when known."
                                },
                                "publisher": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "slug": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "year": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "productCode": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The publisher's product code or SKU, when known."
                                },
                                "ean": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                                },
                                "cover": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "covers": {
                                  "type": "object",
                                  "required": [
                                    "front",
                                    "back"
                                  ],
                                  "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                  "properties": {
                                    "front": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "required": [
                                        "image",
                                        "thumbnail"
                                      ],
                                      "properties": {
                                        "image": {
                                          "type": "string"
                                        },
                                        "thumbnail": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "back": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "required": [
                                        "image",
                                        "thumbnail"
                                      ],
                                      "properties": {
                                        "image": {
                                          "type": "string"
                                        },
                                        "thumbnail": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "language": {
                              "type": "string",
                              "description": "The language of the rules shown."
                            },
                            "sections": {
                              "type": "integer",
                              "description": "How many of the six sections are written in that edition and language."
                            },
                            "excerpt": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 300,
                              "description": "The opening of the section, as plain text without formatting, cut at a word with an ellipsis."
                            },
                            "excerptSection": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "summary",
                                "setup",
                                "turn",
                                "end",
                                "scoring",
                                "variants",
                                null
                              ],
                              "description": "The section the excerpt comes from: `summary` when there is one."
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Every language the game has rules in, any edition."
                            },
                            "editions": {
                              "type": "integer",
                              "description": "How many editions have rules."
                            }
                          }
                        },
                        "tutorial": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "required": [
                            "edition",
                            "language",
                            "steps",
                            "languages",
                            "editions"
                          ],
                          "properties": {
                            "edition": {
                              "type": "object",
                              "required": [
                                "id",
                                "slug",
                                "name",
                                "original",
                                "language",
                                "publisher",
                                "year",
                                "productCode",
                                "ean",
                                "cover",
                                "covers"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "slug": {
                                  "type": "string",
                                  "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                  "example": "fr-iello-2019-k3x9q2"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Null for the original edition."
                                },
                                "original": {
                                  "type": "boolean"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The language it is printed in, when known."
                                },
                                "publisher": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "slug": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "year": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "productCode": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The publisher's product code or SKU, when known."
                                },
                                "ean": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                                },
                                "cover": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "covers": {
                                  "type": "object",
                                  "required": [
                                    "front",
                                    "back"
                                  ],
                                  "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                  "properties": {
                                    "front": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "required": [
                                        "image",
                                        "thumbnail"
                                      ],
                                      "properties": {
                                        "image": {
                                          "type": "string"
                                        },
                                        "thumbnail": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "back": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "required": [
                                        "image",
                                        "thumbnail"
                                      ],
                                      "properties": {
                                        "image": {
                                          "type": "string"
                                        },
                                        "thumbnail": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "language": {
                              "type": "string"
                            },
                            "steps": {
                              "type": "integer",
                              "description": "How many steps the tutorial shown has."
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Every language the game has a tutorial in, any edition."
                            },
                            "editions": {
                              "type": "integer",
                              "description": "How many editions have a tutorial."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "rules": {
                      "edition": {
                        "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                        "slug": "original",
                        "name": null,
                        "original": true,
                        "language": null,
                        "publisher": null,
                        "year": 1995,
                        "productCode": null,
                        "ean": null,
                        "cover": null,
                        "covers": {
                          "front": null,
                          "back": null
                        }
                      },
                      "language": "en",
                      "sections": 5,
                      "excerpt": "Settle an island: build roads, settlements and cities, trade resources, and be first to 10 victory points.",
                      "excerptSection": "summary",
                      "languages": [
                        "en",
                        "fr"
                      ],
                      "editions": 1
                    },
                    "tutorial": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "`lang` is not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rules/history": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_game_rules_history",
        "tags": [
          "Rules"
        ],
        "summary": "Read who changed a game's rules",
        "description": "Every accepted change to one edition's rules in one language, newest first, section by section, with what it replaced. `current` marks the text shown now; an undone change keeps its row with `undoneAt`.",
        "parameters": [
          {
            "name": "edition",
            "in": "query",
            "description": "An edition's id from `editions`. Without it, the game's original edition.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original"
          },
          {
            "name": "lang",
            "in": "query",
            "required": true,
            "description": "The language of the rules or tutorial.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "en"
          }
        ],
        "responses": {
          "200": {
            "description": "The changes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "section": {
                            "type": "string",
                            "enum": [
                              "summary",
                              "setup",
                              "turn",
                              "end",
                              "scoring",
                              "variants"
                            ]
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "human",
                              "job"
                            ]
                          },
                          "author": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "rulebookId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "before": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "after": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Null when the change emptied the section."
                          },
                          "acceptedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "undoneAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "current": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`lang` is missing or not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/rules/proposals": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "post": {
        "operationId": "propose_game_rules",
        "tags": [
          "Rules"
        ],
        "summary": "Propose a change to a game's rules",
        "description": "A confirmed member sends new text for one or more sections of one edition's rules in one language. A moderator accepts all of it or some sections, or rejects it. `base` is the text you saw for each section, so a moderator can tell when someone changed it meanwhile. An empty string empties a section. Each section holds 6,000 characters. A member can send 20 a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "edition",
                  "language",
                  "sections"
                ],
                "properties": {
                  "edition": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string",
                    "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
                    "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
                  },
                  "sections": {
                    "type": "object",
                    "description": "Plain text with light formatting: paragraphs separated by a blank line, lines starting with `- ` or `1. ` for lists, `**bold**`. Never HTML.",
                    "propertyNames": {
                      "enum": [
                        "summary",
                        "setup",
                        "turn",
                        "end",
                        "scoring",
                        "variants"
                      ]
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 6000
                    }
                  },
                  "base": {
                    "type": "object",
                    "propertyNames": {
                      "enum": [
                        "summary",
                        "setup",
                        "turn",
                        "end",
                        "scoring",
                        "variants"
                      ]
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "example": {
                "edition": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                "language": "en",
                "sections": {
                  "setup": "- Build the island from the hexes.\n- Each player places two settlements."
                },
                "base": {
                  "setup": null
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Sent. It waits for a moderator (`pending`); a moderator's own change is written at once (`accepted`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "accepted"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "3f0c5d2e-1b4a-4c3d-9e8f-7a6b5c4d3e2f",
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The sections, the language or the edition are not accepted, or nothing changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/tutorials": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_game_tutorial",
        "tags": [
          "Tutorials"
        ],
        "summary": "Read a game's tutorial",
        "description": "How to play the game, step by step, for one edition and language. Each step is a short text with one image or one video link. `editions` lists every edition with the languages it has a tutorial in.",
        "parameters": [
          {
            "name": "edition",
            "in": "query",
            "description": "An edition's id from `editions`. Without it, the game's original edition.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original"
          },
          {
            "name": "lang",
            "in": "query",
            "description": "The language wanted. When the edition has no tutorial in it: its base language, then English, then the first in alphabetical order.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "fr"
          }
        ],
        "responses": {
          "200": {
            "description": "The tutorial, and the editions to choose from.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "editions"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "edition",
                        "language",
                        "languages",
                        "steps",
                        "updatedAt"
                      ],
                      "properties": {
                        "edition": {
                          "type": "object",
                          "required": [
                            "id",
                            "slug",
                            "name",
                            "original",
                            "language",
                            "publisher",
                            "year",
                            "productCode",
                            "ean",
                            "cover",
                            "covers"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "slug": {
                              "type": "string",
                              "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                              "example": "fr-iello-2019-k3x9q2"
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Null for the original edition."
                            },
                            "original": {
                              "type": "boolean"
                            },
                            "language": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The language it is printed in, when known."
                            },
                            "publisher": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "slug": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            },
                            "year": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "productCode": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The publisher's product code or SKU, when known."
                            },
                            "ean": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                            },
                            "cover": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "required": [
                                "image",
                                "thumbnail"
                              ],
                              "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                              "properties": {
                                "image": {
                                  "type": "string"
                                },
                                "thumbnail": {
                                  "type": "string"
                                }
                              }
                            },
                            "covers": {
                              "type": "object",
                              "required": [
                                "front",
                                "back"
                              ],
                              "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                              "properties": {
                                "front": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "back": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "required": [
                                    "image",
                                    "thumbnail"
                                  ],
                                  "properties": {
                                    "image": {
                                      "type": "string"
                                    },
                                    "thumbnail": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "languages": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "text",
                              "image",
                              "video",
                              "author"
                            ],
                            "properties": {
                              "text": {
                                "type": "string",
                                "maxLength": 1000,
                                "description": "Plain text with light formatting: paragraphs separated by a blank line, lines starting with `- ` or `1. ` for lists, `**bold**`. Never HTML."
                              },
                              "image": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "description": "An image a member uploaded for the step, served by `GET /media/{key}`.",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "path": {
                                    "type": "string"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "description": "What the image shows."
                                  }
                                }
                              },
                              "video": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "provider": {
                                    "type": "string",
                                    "enum": [
                                      "youtube",
                                      "vimeo"
                                    ]
                                  },
                                  "id": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string",
                                    "format": "uri"
                                  }
                                }
                              },
                              "author": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          }
                        },
                        "updatedAt": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "editions": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "required": [
                              "id",
                              "slug",
                              "name",
                              "original",
                              "language",
                              "publisher",
                              "year",
                              "productCode",
                              "ean",
                              "cover",
                              "covers"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "slug": {
                                "type": "string",
                                "description": "Its address under the game (`GET /games/{id}/editions/{slug}`, and on the website `/games/{game}/editions/{slug}`): language, publisher and year, then a tag that never changes (`fr-iello-2019-k3x9q2`); `original` for the original edition. The tag keeps an older address finding the edition after its facts are corrected.",
                                "example": "fr-iello-2019-k3x9q2"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Null for the original edition."
                              },
                              "original": {
                                "type": "boolean"
                              },
                              "language": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The language it is printed in, when known."
                              },
                              "publisher": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "slug": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              "year": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "productCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The publisher's product code or SKU, when known."
                              },
                              "ean": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
                              },
                              "cover": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "required": [
                                  "image",
                                  "thumbnail"
                                ],
                                "description": "The box of this edition (the game's main cover for the original edition), as in the game's `covers`: the same as `covers.front`. Null when the catalog has none.",
                                "properties": {
                                  "image": {
                                    "type": "string"
                                  },
                                  "thumbnail": {
                                    "type": "string"
                                  }
                                }
                              },
                              "covers": {
                                "type": "object",
                                "required": [
                                  "front",
                                  "back"
                                ],
                                "description": "The front and the back of this edition's box, each a path on this API (`/v1/media/…`) when we hold a copy, otherwise null. The back is never a game's cover.",
                                "properties": {
                                  "front": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "back": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "required": [
                                      "image",
                                      "thumbnail"
                                    ],
                                    "properties": {
                                      "image": {
                                        "type": "string"
                                      },
                                      "thumbnail": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "required": [
                              "languages"
                            ],
                            "properties": {
                              "languages": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The languages it has something in."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "edition": {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                      "slug": "original",
                      "name": null,
                      "original": true,
                      "language": null,
                      "publisher": null,
                      "year": 1995,
                      "productCode": null,
                      "ean": null,
                      "cover": null,
                      "covers": {
                        "front": null,
                        "back": null
                      }
                    },
                    "language": "en",
                    "languages": [
                      "en"
                    ],
                    "steps": [
                      {
                        "text": "Lay out the island, then give each player two settlements and two roads.",
                        "image": null,
                        "video": {
                          "provider": "youtube",
                          "id": "dQw4w9WgXcQ",
                          "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
                        },
                        "author": "Ada"
                      }
                    ],
                    "updatedAt": "2026-11-22T10:00:00.000Z"
                  },
                  "editions": [
                    {
                      "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                      "slug": "original",
                      "name": null,
                      "original": true,
                      "language": null,
                      "publisher": null,
                      "year": 1995,
                      "productCode": null,
                      "ean": null,
                      "cover": null,
                      "covers": {
                        "front": null,
                        "back": null
                      },
                      "languages": [
                        "en"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`lang` is not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/tutorials/history": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "get": {
        "operationId": "get_game_tutorial_history",
        "tags": [
          "Tutorials"
        ],
        "summary": "Read who changed a game's tutorial",
        "description": "Every accepted version of one edition's tutorial in one language, newest first: who wrote it, how many steps it had and replaced, and whether it was undone.",
        "parameters": [
          {
            "name": "edition",
            "in": "query",
            "description": "An edition's id from `editions`. Without it, the game's original edition.",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original"
          },
          {
            "name": "lang",
            "in": "query",
            "required": true,
            "description": "The language of the rules or tutorial.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
              "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
            },
            "example": "en"
          }
        ],
        "responses": {
          "200": {
            "description": "The versions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "by": {
                            "type": "string"
                          },
                          "steps": {
                            "type": "integer"
                          },
                          "stepsBefore": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "acceptedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "undoneAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "current": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`lang` is missing or not a language code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/tutorials/images": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "post": {
        "operationId": "upload_tutorial_image",
        "tags": [
          "Tutorials"
        ],
        "summary": "Upload an image for a tutorial step",
        "description": "A confirmed member uploads one JPEG, PNG or WebP image (5 MB at most) to use in a step of a proposed tutorial, with what it shows (`kind`, one of the image kinds; `in_play` when left out). It becomes public once a tutorial using it is accepted. 40 a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "kind": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored. Use `id` as a step's `imageId`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No file, or `kind` is not an image kind.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The image is larger than 5 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The file is not a JPEG, PNG or WebP image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games/{id}/tutorials/proposals": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "post": {
        "operationId": "propose_game_tutorial",
        "tags": [
          "Tutorials"
        ],
        "summary": "Propose a game's tutorial",
        "description": "A confirmed member sends every step of one edition's tutorial in one language, new or changed (1 to 40 steps). Each step has text (1,000 characters) and at most one of `imageId` (from `POST /games/{id}/tutorials/images`) or `video` (a YouTube or Vimeo link). `base` is the version you started from (the latest history entry's id), so a moderator can tell when it changed meanwhile. A moderator accepts or rejects it. 20 a day.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "edition",
                  "language",
                  "steps"
                ],
                "properties": {
                  "edition": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string",
                    "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
                    "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
                  },
                  "base": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "steps": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 40,
                    "items": {
                      "type": "object",
                      "required": [
                        "text"
                      ],
                      "properties": {
                        "text": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "imageId": {
                          "type": "string"
                        },
                        "video": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "edition": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original",
                "language": "en",
                "steps": [
                  {
                    "text": "Lay out the island.",
                    "video": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Sent. It waits for a moderator (`pending`); a moderator's own change is written at once (`accepted`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "accepted"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "3f0c5d2e-1b4a-4c3d-9e8f-7a6b5c4d3e2f",
                    "status": "pending"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The steps, the language or the edition are not accepted, or nothing changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No game has this id, or it has no such edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/preferences": {
      "get": {
        "operationId": "get_preferences",
        "tags": [
          "Accounts"
        ],
        "summary": "Your tastes",
        "description": "The designers, mechanics, families and categories the member likes, in the order they were chosen. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The member's tastes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "designers",
                        "mechanics",
                        "families",
                        "categories",
                        "askedAt"
                      ],
                      "properties": {
                        "designers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "mechanics": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "families": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "categories": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "askedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "When the member first saved their tastes or skipped the website's question; null if never."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "designers": [
                      {
                        "slug": "uwe-rosenberg",
                        "name": "Uwe Rosenberg",
                        "games": 74
                      }
                    ],
                    "mechanics": [
                      {
                        "slug": "worker-placement",
                        "name": "Worker Placement",
                        "games": 2210
                      }
                    ],
                    "families": [],
                    "categories": [
                      {
                        "slug": "farming",
                        "name": "Farming",
                        "games": 512
                      }
                    ],
                    "askedAt": "2026-11-22T10:04:11.120Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "set_preferences",
        "tags": [
          "Accounts"
        ],
        "summary": "Set your tastes",
        "description": "Replaces the liked terms of each kind the body names, by slug (as in `GET /designers`, `/mechanics`, `/families` and `/categories`); a kind left out stays as it is, and an empty list clears it. Up to 30 of each kind. `{}` changes nothing but records that the member was asked. A term removed from the catalog later disappears from the member's tastes.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "designers": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "string"
                    }
                  },
                  "mechanics": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "string"
                    }
                  },
                  "families": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "string"
                    }
                  },
                  "categories": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "example": {
                "designers": [
                  "uwe-rosenberg"
                ],
                "mechanics": [
                  "worker-placement"
                ],
                "categories": [
                  "farming"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The member's tastes, as now saved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "designers",
                        "mechanics",
                        "families",
                        "categories",
                        "askedAt"
                      ],
                      "properties": {
                        "designers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "mechanics": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "families": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "categories": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "name",
                              "games"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "games": {
                                "type": "integer",
                                "description": "How many games it is on."
                              }
                            }
                          }
                        },
                        "askedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "When the member first saved their tastes or skipped the website's question; null if never."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "designers": [
                      {
                        "slug": "uwe-rosenberg",
                        "name": "Uwe Rosenberg",
                        "games": 74
                      }
                    ],
                    "mechanics": [
                      {
                        "slug": "worker-placement",
                        "name": "Worker Placement",
                        "games": 2210
                      }
                    ],
                    "families": [],
                    "categories": [
                      {
                        "slug": "farming",
                        "name": "Farming",
                        "games": 512
                      }
                    ],
                    "askedAt": "2026-11-22T10:04:11.120Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A kind is not a list of slugs (`invalid_preferences`), lists more than the limit (`too_many_preferences`), or names a slug the catalog does not have (`preference_not_found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/recommendations": {
      "get": {
        "operationId": "list_recommendations",
        "tags": [
          "Accounts"
        ],
        "summary": "Games for you",
        "description": "Games (not expansions) matching the member's tastes, best match first, without the games they own. Each liked designer a game has adds 4 to its score, each family 3, each mechanic or category 1; mechanics and categories are matched among the 1,000 best-rated and 1,000 most looked-at games. Equal scores go to the better-rated game. `because` names up to three of the liked terms the game matched. Empty when the member has no tastes saved. Never served from the shared cache.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "How many games, 1 to 50.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Suggested games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "game",
                          "score",
                          "because"
                        ],
                        "properties": {
                          "game": {
                            "$ref": "#/components/schemas/GameSummary"
                          },
                          "score": {
                            "type": "integer"
                          },
                          "because": {
                            "type": "array",
                            "maxItems": 3,
                            "items": {
                              "type": "object",
                              "required": [
                                "kind",
                                "slug",
                                "name"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "designer",
                                    "family",
                                    "mechanic",
                                    "category"
                                  ]
                                },
                                "slug": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or too many of these sent today (`code` says which).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publisher/applications": {
      "get": {
        "operationId": "list_publisher_applications",
        "tags": [
          "Publisher API"
        ],
        "summary": "Your applications and the publishers you may write for",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your applications, newest first, and in `publishers` the publishers your `games:write` tokens may write for.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "publishers"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PublisherApplication"
                      }
                    },
                    "publishers": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RepresentedPublisher"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not logged in.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "apply_publisher_api",
        "tags": [
          "Publisher API"
        ],
        "summary": "Apply for the Publisher API",
        "description": "A moderator checks that you speak for the company (by writing to the contact address, or from your proof) and grants access, or turns the application down with a reason.\n\nOnly a logged-in member with a confirmed email address can apply: send your API token (any scope). One application may wait at a time, and 3 may be sent in a UTC day. The website's form also sends a human check (`turnstileToken`); it is required with a website session, not with an API token.",
        "security": [
          {
            "apiToken": []
          },
          {
            "session": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "company",
                  "website",
                  "contactEmail",
                  "proof"
                ],
                "properties": {
                  "company": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "publisherName": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "The publisher as its games credit it, when not the company's name."
                  },
                  "website": {
                    "type": "string",
                    "format": "uri",
                    "description": "The company's site, https."
                  },
                  "contactEmail": {
                    "type": "string",
                    "format": "email"
                  },
                  "proof": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000,
                    "description": "How we can check that you speak for the company: your role, an address at its domain, a page naming you."
                  },
                  "turnstileToken": {
                    "type": "string",
                    "description": "The answer of the website's human check (Cloudflare Turnstile). Required with a website session; ignored with an API token."
                  }
                }
              },
              "example": {
                "company": "Kosmos Verlag",
                "publisherName": "Kosmos",
                "website": "https://www.kosmos.de",
                "contactEmail": "games@kosmos.de",
                "proof": "I run the games catalogue at Kosmos; write to games@kosmos.de."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The application, waiting for a moderator.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublisherApplication"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A field is missing or malformed (`invalid_application`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No API token or session was sent (`not_logged_in`): anonymous applications are refused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member has not confirmed their email address (`email_not_confirmed`), or, with a website session, the human check is missing or failed (`human_check_missing`, `human_check_failed`, `human_check_unverified`, `human_check_unavailable`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "You already applied for this publisher (`duplicate_application`), or another application of yours is waiting for a moderator (`application_pending`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "3 applications were sent today, UTC (`daily_application_limit`, with `retry-after` in seconds until midnight UTC), or you are posting too fast (`posting_too_fast`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publisher/games": {
      "get": {
        "operationId": "list_publisher_games",
        "tags": [
          "Publisher API"
        ],
        "summary": "Your publisher's games",
        "description": "The games credited to the publishers your token writes for, newest first, with your latest submissions.",
        "security": [
          {
            "publisherToken": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of games.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "nextCursor",
                    "publishers",
                    "submissions"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GameSummary"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "publishers": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RepresentedPublisher"
                      }
                    },
                    "submissions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "create",
                              "update",
                              "cover"
                            ]
                          },
                          "gameId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "published",
                              "in_review",
                              "unchanged"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The cursor is not one of ours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No API token was sent (`not_logged_in`), or it does not carry the `games:write` scope (`publisher_token_required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The token's member has no access to the Publisher API, or it was withdrawn (`publisher_access_required`); or the game is not credited to their publisher (`not_your_game`, `game_publisher_not_yours`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create_publisher_game",
        "tags": [
          "Publisher API"
        ],
        "summary": "Add a game",
        "description": "Send the facts as `multipart/form-data`, as JSON in the `data` field with the image file in `cover` (preferred), or as JSON with the cover's address in `coverUrl`, which we download once and keep our own copy of: the catalog never links to your file. Every requirement of the \"Publisher API\" section applies.",
        "security": [
          {
            "publisherToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "nameLanguage",
                  "minPlayers",
                  "maxPlayers",
                  "minPlaytime",
                  "minAge",
                  "designers",
                  "publishers",
                  "description",
                  "descriptionOwnWords"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 300,
                    "description": "The game's name, as printed on its box. Required."
                  },
                  "nameLanguage": {
                    "type": "string",
                    "description": "The language of `name`: \"en\", \"de\", \"pt-BR\". Required."
                  },
                  "names": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "language"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "language": {
                          "type": "string",
                          "description": "A language code: \"en\", \"fr\", \"pt-BR\"."
                        }
                      }
                    },
                    "description": "The game's name in other languages, each with its language."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "game",
                      "expansion",
                      "accessory"
                    ],
                    "description": "`game` when not said."
                  },
                  "yearPublished": {
                    "type": "integer",
                    "minimum": 1900,
                    "description": "Required unless `releaseDate` is given."
                  },
                  "releaseDate": {
                    "type": "string",
                    "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
                    "description": "\"2026\", \"2026-10\" or \"2026-10-23\", as precise as you know it."
                  },
                  "minPlayers": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99
                  },
                  "maxPlayers": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99
                  },
                  "minPlaytime": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10000,
                    "description": "Minutes. Required."
                  },
                  "maxPlaytime": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10000,
                    "description": "Minutes. `minPlaytime` when not said."
                  },
                  "minAge": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 21,
                    "description": "The age printed on the box. Required."
                  },
                  "designers": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Required: at least one, by name."
                  },
                  "artists": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "publishers": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Required: must include your publisher as written; co-publishers may follow."
                  },
                  "categories": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "mechanics": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "description": {
                    "type": "string",
                    "minLength": 200,
                    "maxLength": 2500,
                    "description": "What the game is and how it plays, in your own words. Plain text: paragraphs separated by a blank line, and lists whose lines start with \"- \"; no links, HTML or other marks. Required."
                  },
                  "descriptionOwnWords": {
                    "type": "boolean",
                    "const": true,
                    "description": "States that the description is your own text, not a review's or a shop's. Required with `description`."
                  },
                  "tagline": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "One line."
                  },
                  "officialUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "The game's page on your site (https). Your description is credited to it."
                  },
                  "ean": {
                    "type": "string",
                    "description": "The box's barcode: EAN-13, or a 12-digit UPC."
                  },
                  "bggId": {
                    "type": "integer",
                    "description": "The game's BoardGameGeek number, when it has one."
                  },
                  "coverUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "The cover's address (https), only to download it from: we copy the image to our storage and never link to it. Sending the file with a form is preferred."
                  }
                }
              },
              "example": {
                "name": "Die Abenteuer des Robin Hood",
                "nameLanguage": "de",
                "names": [
                  {
                    "name": "The Adventures of Robin Hood",
                    "language": "en"
                  }
                ],
                "yearPublished": 2021,
                "minPlayers": 2,
                "maxPlayers": 4,
                "minPlaytime": 60,
                "maxPlaytime": 90,
                "minAge": 10,
                "designers": [
                  "Michael Menzel"
                ],
                "publishers": [
                  "Kosmos"
                ],
                "description": "Robin Hood and his companions roam Sherwood Forest in a cooperative adventure for two to four players. The board is a living book: as the story unfolds, its pages change the forest, and every choice opens new paths, characters and endings to discover together.",
                "descriptionOwnWords": true,
                "officialUrl": "https://www.kosmos.de/robin-hood",
                "coverUrl": "https://www.kosmos.de/images/robin-hood-box.jpg"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "data",
                  "cover"
                ],
                "properties": {
                  "data": {
                    "type": "string",
                    "description": "The facts, as the JSON body takes them."
                  },
                  "cover": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Taken. `status` is `published` when the game is on its way to the catalog (it appears within seconds under `id`), `in_review` when a moderator must first say which game it is, `unchanged` when it said nothing new.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublisherSubmission"
                    }
                  }
                },
                "example": {
                  "data": {
                    "submissionId": "0b5d1c7e-8d1b-4c6a-9a4e-3f1d2c3b4a59",
                    "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                    "status": "published",
                    "cover": {
                      "key": "covers/3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f.jpg",
                      "width": 960,
                      "height": 1280
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A requirement is not met: the `code` says which (`game_name_required`, `game_year_required`, `game_cover_required`…); `invalid_game_field` names the field in `params.field`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No API token was sent (`not_logged_in`), or it does not carry the `games:write` scope (`publisher_token_required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The token's member has no access to the Publisher API, or it was withdrawn (`publisher_access_required`); or the game is not credited to their publisher (`not_your_game`, `game_publisher_not_yours`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "We already have this game (`duplicate_game`): `game` is the one we have, `params.id` its id.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "game": {
                          "$ref": "#/components/schemas/GameSummary"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "The cover is larger than 15 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The cover is not a JPEG, PNG or WebP image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The cover is too small (`cover_too_small`, with its size in `params`), not a box front (`cover_not_box_front`, with what it shows in `params.kind`), could not be loaded from its address (`image_not_fetched`, `image_host_refused`), or the game could not be published (`game_refused`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "More than 10 writes a minute (`posting_too_fast`, `retry-after: 60`), or more than 100 new games or 500 writes in a UTC day (`daily_publisher_limit`, `retry-after` in seconds until midnight UTC). Reading is limited as for any token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The cover could not be checked or copied just now (`cover_not_judged`, `cover_not_stored`), or the service that takes games is unavailable (`engine_unavailable`). Try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publisher/games/{id}": {
      "patch": {
        "operationId": "update_publisher_game",
        "tags": [
          "Publisher API"
        ],
        "summary": "Update one of your games",
        "description": "Send only the facts that change, held to the same rules. Credits are added, never removed. The name and the BoardGameGeek id are not changed here: propose a correction on the game's page. Works for any game credited to your publisher, also one you did not add.",
        "security": [
          {
            "publisherToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id (its slug is accepted too).",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "names": {
                    "type": "array",
                    "maxItems": 30,
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "language"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "language": {
                          "type": "string",
                          "description": "A language code: \"en\", \"fr\", \"pt-BR\"."
                        }
                      }
                    },
                    "description": "The game's name in other languages, each with its language."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "game",
                      "expansion",
                      "accessory"
                    ],
                    "description": "`game` when not said."
                  },
                  "yearPublished": {
                    "type": "integer",
                    "minimum": 1900,
                    "description": "Required unless `releaseDate` is given."
                  },
                  "releaseDate": {
                    "type": "string",
                    "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
                    "description": "\"2026\", \"2026-10\" or \"2026-10-23\", as precise as you know it."
                  },
                  "minPlayers": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99
                  },
                  "maxPlayers": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99
                  },
                  "minPlaytime": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10000,
                    "description": "Minutes. Required."
                  },
                  "maxPlaytime": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10000,
                    "description": "Minutes. `minPlaytime` when not said."
                  },
                  "minAge": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 21,
                    "description": "The age printed on the box. Required."
                  },
                  "designers": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Required: at least one, by name."
                  },
                  "artists": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "publishers": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Required: must include your publisher as written; co-publishers may follow."
                  },
                  "categories": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "mechanics": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "Optional."
                  },
                  "description": {
                    "type": "string",
                    "minLength": 200,
                    "maxLength": 2500,
                    "description": "What the game is and how it plays, in your own words. Plain text: paragraphs separated by a blank line, and lists whose lines start with \"- \"; no links, HTML or other marks. Required."
                  },
                  "descriptionOwnWords": {
                    "type": "boolean",
                    "const": true,
                    "description": "States that the description is your own text, not a review's or a shop's. Required with `description`."
                  },
                  "tagline": {
                    "type": "string",
                    "maxLength": 160,
                    "description": "One line."
                  },
                  "officialUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "The game's page on your site (https). Your description is credited to it."
                  },
                  "ean": {
                    "type": "string",
                    "description": "The box's barcode: EAN-13, or a 12-digit UPC."
                  }
                }
              },
              "example": {
                "minAge": 12,
                "maxPlaytime": 120
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Taken. `status` is `published` when the game is on its way to the catalog (it appears within seconds under `id`), `in_review` when a moderator must first say which game it is, `unchanged` when it said nothing new.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublisherSubmission"
                    }
                  }
                },
                "example": {
                  "data": {
                    "submissionId": "0b5d1c7e-8d1b-4c6a-9a4e-3f1d2c3b4a59",
                    "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                    "status": "published",
                    "cover": {
                      "key": "covers/3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f.jpg",
                      "width": 960,
                      "height": 1280
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A fact breaks its rule; the `code` says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No API token was sent (`not_logged_in`), or it does not carry the `games:write` scope (`publisher_token_required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The token's member has no access to the Publisher API, or it was withdrawn (`publisher_access_required`); or the game is not credited to their publisher (`not_your_game`, `game_publisher_not_yours`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "More than 10 writes a minute (`posting_too_fast`, `retry-after: 60`), or more than 100 new games or 500 writes in a UTC day (`daily_publisher_limit`, `retry-after` in seconds until midnight UTC). Reading is limited as for any token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The cover could not be checked or copied just now (`cover_not_judged`, `cover_not_stored`), or the service that takes games is unavailable (`engine_unavailable`). Try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/publisher/games/{id}/cover": {
      "put": {
        "operationId": "set_publisher_game_cover",
        "tags": [
          "Publisher API"
        ],
        "summary": "Replace your game's cover, or send the back of its box",
        "description": "The image as the body (`content-type: image/jpeg`, `image/png` or `image/webp`), as the `cover` file of a form, or `{ \"url\": \"https://…\" }`, an address we download the image from once and keep our own copy of (the catalog never links to it). Held to the cover requirements; the cover it replaces is kept with the game as an extra image. With `side=back` (in the query, or `\"side\": \"back\"` in the JSON body) it is the back of the box: held to the same requirements with the back in place of the front (`cover_not_box_back` when the model sees something else), shown with the original edition as its back (`covers.back` of the edition), never as the game's cover.",
        "security": [
          {
            "publisherToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's id (its slug is accepted too).",
            "schema": {
              "type": "string"
            },
            "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
          },
          {
            "name": "side",
            "in": "query",
            "description": "The side of the box the image shows: `front` (the default, the game's cover) or `back`.",
            "schema": {
              "type": "string",
              "enum": [
                "front",
                "back"
              ],
              "default": "front"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "image/jpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "cover": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "side": {
                    "type": "string",
                    "enum": [
                      "front",
                      "back"
                    ]
                  }
                }
              },
              "example": {
                "url": "https://www.kosmos.de/images/robin-hood-box.jpg"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Taken. `status` is `published` when the game is on its way to the catalog (it appears within seconds under `id`), `in_review` when a moderator must first say which game it is, `unchanged` when it said nothing new.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublisherSubmission"
                    }
                  }
                },
                "example": {
                  "data": {
                    "submissionId": "0b5d1c7e-8d1b-4c6a-9a4e-3f1d2c3b4a59",
                    "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
                    "status": "published",
                    "cover": {
                      "key": "covers/3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f.jpg",
                      "width": 960,
                      "height": 1280
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No image was sent, or `side` is neither `front` nor `back` (`invalid_cover_side`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No API token was sent (`not_logged_in`), or it does not carry the `games:write` scope (`publisher_token_required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The token's member has no access to the Publisher API, or it was withdrawn (`publisher_access_required`); or the game is not credited to their publisher (`not_your_game`, `game_publisher_not_yours`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such game.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "A moderator chose this game's cover (`cover_kept_by_moderator`): send yours as an official photo from the game's page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The cover is larger than 15 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The cover is not a JPEG, PNG or WebP image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The cover is too small, not a box front (or back, with `side=back`), or could not be loaded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "More than 10 writes a minute (`posting_too_fast`, `retry-after: 60`), or more than 100 new games or 500 writes in a UTC day (`daily_publisher_limit`, `retry-after` in seconds until midnight UTC). Reading is limited as for any token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The cover could not be checked or copied just now (`cover_not_judged`, `cover_not_stored`), or the service that takes games is unavailable (`engine_unavailable`). Try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/lists": {
      "get": {
        "operationId": "list_lists",
        "tags": [
          "Lists"
        ],
        "summary": "List the lists",
        "description": "The 100 most recent public lists. With `mine=1` and a session or token, the member's own lists instead, private ones included and \"My Collection\" first; with `game` as well, each says whether that game is on it.",
        "parameters": [
          {
            "name": "mine",
            "in": "query",
            "description": "Set to 1 to get only your own lists. Needs a session or token.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "game",
            "in": "query",
            "description": "With `mine=1`: a game's id or slug. Each list then has `hasGame`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {},
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The lists: public ones newest first, or your own with My Collection first. Never served from the shared cache.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListSummary"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "With `game`: no game has this id or slug.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create_list",
        "tags": [
          "Lists"
        ],
        "summary": "Make a list",
        "description": "Public unless `visibility` is `private`. Needs a confirmed email address.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "visibility": {
                    "$ref": "#/components/schemas/ListVisibility"
                  }
                }
              },
              "example": {
                "name": "Gateway games",
                "description": "Easy to teach to new players.",
                "visibility": "public"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The list was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "visibility"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "visibility": {
                          "$ref": "#/components/schemas/ListVisibility"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The name or description is too short or too long, or `visibility` is not `private` or `public`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The email address is not confirmed yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/lists/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The list's id: a UUID, or `<user id>:collection` for a member's \"My Collection\".",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "get_list",
        "tags": [
          "Lists"
        ],
        "summary": "Get one list and its games",
        "description": "The list and a page of its games, 100 at most (`page`, `pages` and `nextCursor` say where it is). A private list answers only its owner; to anyone else it does not exist (404).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "How many games a page holds.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 60
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Which page to return, from 1, of `limit` games each: it starts at game (page − 1) × limit + 1, so `page=3&limit=24` is the same page as `cursor=48&limit=24`. Send `page` or `cursor`, not both (400 `invalid_page`). A page past the last is refused with 404 `page_out_of_range`, whose `params.pages` says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same `seed` on every page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `nextCursor` of the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "A language code (BCP 47) such as \"fr\", \"ja\" or \"pt-BR\". A game that has a name in that language is returned with it as `name`, and its main name as `originalName`; a regional code falls back on its language (\"fr-CA\" on \"fr\"), a language with no name of its own takes a regional one (\"pt\" shows a name the game only has in \"pt-BR\"), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as `image`; otherwise `image` is its main cover. Only names and covers are localised: descriptions and summaries stay in English.",
            "schema": {
              "type": "string"
            },
            "example": "fr"
          }
        ],
        "security": [
          {},
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/List"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`page` or `cursor` is not an accepted value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No list has this id, or it is someone else's private list (`list_not_found`), or `page` is past the last page (`page_out_of_range`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "update_list",
        "tags": [
          "Lists"
        ],
        "summary": "Rename a list, describe it, or make it private or public",
        "description": "Only the list's owner can do this, with a confirmed email address. Send only what changes; an empty description removes it. My Collection keeps its name (`list_kept`).",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "visibility": {
                    "$ref": "#/components/schemas/ListVisibility"
                  }
                }
              },
              "example": {
                "visibility": "public"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The list as it is now.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "description",
                        "kind",
                        "visibility",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "kind": {
                          "$ref": "#/components/schemas/ListKind"
                        },
                        "visibility": {
                          "$ref": "#/components/schemas/ListVisibility"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A value is not accepted, or the name of My Collection was sent (`list_kept`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The email address is not confirmed, or the list is someone else's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No list has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_list",
        "tags": [
          "Lists"
        ],
        "summary": "Delete a list",
        "description": "Only the list's owner can do this. Its entries go with it; the games stay. My Collection cannot be deleted (`list_kept`).",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The list is deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            }
          },
          "400": {
            "description": "The list is My Collection (`list_kept`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The list is someone else's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No list has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/lists/{id}/games/{game}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The list's id: a UUID, or `<user id>:collection` for a member's \"My Collection\".",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "game",
          "in": "path",
          "required": true,
          "description": "The game's id, as returned in every game object. The game's slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.",
          "schema": {
            "type": "string"
          },
          "example": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77"
        }
      ],
      "put": {
        "operationId": "add_game_to_list",
        "tags": [
          "Lists"
        ],
        "summary": "Add a game to a list",
        "description": "Only the list's owner can do this. Adding a game twice changes nothing.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The game is on the list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The session or token belongs to someone other than the list's owner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The list or the game does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "remove_game_from_list",
        "tags": [
          "Lists"
        ],
        "summary": "Remove a game from a list",
        "description": "Only the list's owner can do this.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The game is not on the list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The session or token belongs to someone other than the list's owner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The list or the game does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account": {
      "get": {
        "operationId": "get_account",
        "tags": [
          "Accounts"
        ],
        "summary": "Your plan, request limit and settings",
        "description": "Works with a session or an API token; a quick way to check a token.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "The account behind the credentials sent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    }
                  }
                },
                "example": {
                  "data": {
                    "displayName": "Ana",
                    "plan": "free",
                    "requestsPerMinute": 90,
                    "playlistProvider": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "update_account",
        "tags": [
          "Accounts"
        ],
        "summary": "Change your settings",
        "description": "Sets which music service the member wants playlists from: one of the three, or `null` for all of them. The website filters a game's playlists by it; an application can pass it as `provider` to `GET /games/{id}/playlists`.",
        "security": [
          {
            "session": []
          },
          {
            "apiToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "playlistProvider"
                ],
                "properties": {
                  "playlistProvider": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/MusicProvider"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              },
              "example": {
                "playlistProvider": "spotify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The account with the setting applied.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    }
                  }
                },
                "example": {
                  "data": {
                    "displayName": "Ana",
                    "plan": "free",
                    "requestsPerMinute": 90,
                    "playlistProvider": "spotify"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`playlistProvider` is not a known service or null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/keys": {
      "get": {
        "operationId": "list_api_tokens",
        "tags": [
          "Accounts"
        ],
        "summary": "List your API tokens",
        "description": "Names and first characters only: a token's full value is shown once, when it is created. Needs a website session, not a token.",
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your tokens, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ApiToken"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create_api_token",
        "tags": [
          "Accounts"
        ],
        "summary": "Create an API token",
        "description": "Returns the token once. Send it as `Authorization: Bearer <token>` to get the member request limit. Only for a member whose email address is confirmed; up to 2 tokens per account, which share the member's limits.",
        "security": [
          {
            "session": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "scopes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "games:write",
                        "admin"
                      ]
                    },
                    "description": "`games:write` only for a member given access to the Publisher API. `admin` only for an admin (the admin API, described apart), 2 such tokens at most, apart from the others."
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When the token stops working, in the future. Without it, the token works until deleted."
                  }
                }
              },
              "example": {
                "name": "My app"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new token. `key` is not retrievable later.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ApiToken"
                        },
                        {
                          "type": "object",
                          "required": [
                            "key"
                          ],
                          "properties": {
                            "key": {
                              "type": "string",
                              "description": "The token. Starts with `bgdb_`."
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The name is missing or too long, a scope is unknown, `expiresAt` is not a future date (`invalid_token_expiry`), or the account already has 2 tokens (`too_many_tokens`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The member's email address is not confirmed (`email_not_confirmed`), `games:write` was asked by a member without access to the Publisher API (`publisher_access_required`), or `admin` by someone who is not an admin (`admins_only`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/keys/{id}": {
      "delete": {
        "operationId": "delete_api_token",
        "tags": [
          "Accounts"
        ],
        "summary": "Delete an API token",
        "description": "The token stops working at once.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The token is gone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            }
          },
          "401": {
            "description": "The request has no valid session token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over a request limit. `rate_limited`: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). `weekly_limit`: the week's requests or game details are used up (`params.max` is the cap). The `retry-after` header says how many seconds to wait: 60 for a minute's limit, until midnight UTC for a day's, until Monday 00:00 UTC for a week's.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "session": {
        "type": "http",
        "scheme": "bearer",
        "description": "The session of a member signed in on the website. Used by the website itself."
      },
      "apiToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "A personal API token (starts with `bgdb_`), created on the website's account page. Optional for reading: it raises the request limit."
      },
      "publisherToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API token with the `games:write` scope, created on the website by a member given access to the Publisher API."
      },
      "uploadToken": {
        "type": "apiKey",
        "in": "header",
        "name": "x-upload-token",
        "description": "The token of one rulebook upload in parts, from `POST /games/{id}/rulebooks/uploads`. It opens that upload only, for two hours."
      }
    },
    "schemas": {
      "PublisherSubmission": {
        "type": "object",
        "required": [
          "submissionId",
          "id",
          "status",
          "cover"
        ],
        "properties": {
          "submissionId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The game's id; null while it is in review."
          },
          "status": {
            "type": "string",
            "enum": [
              "published",
              "in_review",
              "unchanged"
            ]
          },
          "cover": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "key",
                  "width",
                  "height"
                ],
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "Our copy, served at `/v1/media/{key}`, its plain margins cut."
                  },
                  "width": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "PublisherApplication": {
        "type": "object",
        "required": [
          "id",
          "company",
          "publisherName",
          "website",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "company": {
            "type": "string"
          },
          "publisherName": {
            "type": "string",
            "description": "The publisher as games credit it. A moderator may correct it when granting access."
          },
          "publisherSlug": {
            "type": "string"
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "contactEmail": {
            "type": "string",
            "format": "email"
          },
          "proof": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "granted",
              "rejected",
              "revoked"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it was turned down or withdrawn."
          },
          "reviewedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RepresentedPublisher": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "website"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "website": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error",
          "code"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, in plain English words. The wording may change: act on `code`."
          },
          "code": {
            "type": "string",
            "enum": [
              "not_found",
              "request_too_large",
              "catalog_busy",
              "internal_error",
              "rate_limited",
              "weekly_limit",
              "missing_address",
              "invalid_token",
              "invalid_lang",
              "invalid_cursor",
              "invalid_page",
              "page_out_of_range",
              "invalid_order",
              "invalid_filter",
              "invalid_letter",
              "invalid_query",
              "invalid_language",
              "invalid_status",
              "game_not_found",
              "invalid_ean",
              "barcode_not_found",
              "paid_plan_required",
              "invalid_lookup",
              "game_withdrawn",
              "not_logged_in",
              "moderators_only",
              "admins_only",
              "email_not_confirmed",
              "posting_too_fast",
              "daily_posting_limit",
              "too_many_attempts",
              "human_check_unavailable",
              "human_check_missing",
              "human_check_failed",
              "human_check_unverified",
              "invalid_email",
              "invalid_display_name",
              "password_too_short",
              "email_taken",
              "wrong_credentials",
              "account_suspended",
              "own_account",
              "account_erased",
              "confirmation_mismatch",
              "verification_link_expired",
              "reset_link_invalid",
              "reset_link_used",
              "reset_link_expired",
              "email_not_sent",
              "invalid_token_name",
              "too_many_tokens",
              "invalid_token_expiry",
              "invalid_playlist_provider",
              "invalid_preferences",
              "too_many_preferences",
              "preference_not_found",
              "photo_missing",
              "photo_too_large",
              "photo_type_refused",
              "photo_too_small",
              "photo_not_square",
              "daily_photo_limit",
              "official_cover_refused",
              "photo_not_found",
              "photo_kind_missing",
              "invalid_photo_kind",
              "list_not_found",
              "invalid_list_name",
              "list_description_too_long",
              "not_list_owner",
              "invalid_list_visibility",
              "list_kept",
              "rating_out_of_range",
              "invalid_vote",
              "invalid_comment",
              "comment_removed_by_moderator",
              "comment_not_found",
              "comment_hidden_by_votes",
              "own_contribution_vote",
              "invalid_video_url",
              "invalid_video_title",
              "invalid_video_category",
              "duplicate_video",
              "daily_video_limit",
              "video_not_found",
              "invalid_playlist_url",
              "playlist_title_too_long",
              "playlist_title_unreadable",
              "invalid_playlist_vote",
              "duplicate_playlist",
              "playlist_hidden",
              "daily_playlist_limit",
              "playlist_not_found",
              "rulebook_missing",
              "rulebook_too_large",
              "rulebook_image_too_large",
              "rulebook_type_refused",
              "rulebook_mixed_files",
              "rulebook_too_many_images",
              "rulebook_edition_too_long",
              "invalid_file_type",
              "daily_rulebook_limit",
              "rulebook_not_found",
              "rulebook_rejected",
              "invalid_upload_size",
              "rulebook_upload_too_large",
              "too_many_open_uploads",
              "upload_token_missing",
              "upload_not_found",
              "upload_expired",
              "invalid_upload_part",
              "wrong_part_size",
              "upload_not_pdf",
              "part_incomplete",
              "upload_parts_missing",
              "upload_assembly_failed",
              "upload_size_mismatch",
              "invalid_correction",
              "description_not_declared",
              "unknown_credit",
              "not_a_publisher_of_the_game",
              "lead_not_found",
              "lead_not_acceptable",
              "correction_stale",
              "correction_range",
              "daily_correction_limit",
              "invalid_email_domain",
              "note_too_long",
              "publisher_not_found",
              "duplicate_publisher_claim",
              "too_many_pending_claims",
              "edition_not_found",
              "name_not_found",
              "invalid_edition",
              "invalid_rules",
              "rules_unchanged",
              "daily_rules_limit",
              "invalid_tutorial",
              "tutorial_image_unknown",
              "tutorial_unchanged",
              "daily_tutorial_limit",
              "proposal_not_found",
              "proposal_decided",
              "invalid_accepted_sections",
              "rules_stale",
              "tutorial_stale",
              "engine_unavailable",
              "publisher_unavailable",
              "games_required",
              "merge_refused",
              "invalid_decision",
              "decision_refused",
              "game_required",
              "cover_candidate_required",
              "image_required",
              "crop_invalid",
              "invalid_cover_side",
              "invalid_mode",
              "cover_changed",
              "cover_choice_invalid",
              "cover_not_found",
              "engine_refused",
              "engine_unknown_game",
              "enrich_request_not_found",
              "enrich_job_not_found",
              "invalid_enrich_choice",
              "job_not_found",
              "cover_review_closed",
              "cover_candidate_unknown",
              "cover_not_reusable",
              "cover_not_stored",
              "web_image_unknown",
              "image_host_refused",
              "image_not_fetched",
              "image_not_readable",
              "straighten_failed",
              "straighten_risky",
              "straightened_unknown",
              "no_cover",
              "claim_not_found",
              "invalid_rejection_reason",
              "correction_not_found",
              "invalid_accepted_changes",
              "correction_decided",
              "revision_not_found",
              "revision_undone",
              "revision_changed",
              "invalid_snooze_item",
              "invalid_merge_proposal",
              "duplicate_merge_proposal",
              "invalid_token_scope",
              "publisher_access_required",
              "publisher_token_required",
              "invalid_application",
              "duplicate_application",
              "application_pending",
              "daily_application_limit",
              "application_not_found",
              "invalid_game_field",
              "game_name_required",
              "game_name_language_required",
              "game_year_required",
              "game_players_required",
              "game_playtime_required",
              "game_min_age_required",
              "game_designer_required",
              "game_publisher_not_yours",
              "game_description_too_short",
              "game_description_not_plain",
              "game_description_not_own_words",
              "game_cover_required",
              "cover_too_small",
              "cover_too_large",
              "cover_type_refused",
              "cover_not_box_front",
              "cover_not_box_back",
              "cover_not_judged",
              "cover_kept_by_moderator",
              "duplicate_game",
              "not_your_game",
              "daily_publisher_limit",
              "game_refused",
              "invalid_submission",
              "invalid_admin_change"
            ],
            "description": "A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added."
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number"
              ]
            },
            "description": "The numbers the sentence names, when it names any: for example `{ \"max\": 20 }` with `daily_photo_limit`."
          }
        },
        "example": {
          "error": "Game not found",
          "code": "game_not_found"
        }
      },
      "Ok": {
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "Range": {
        "type": "object",
        "required": [
          "min",
          "max"
        ],
        "properties": {
          "min": {
            "type": [
              "integer",
              "null"
            ]
          },
          "max": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "GameSummary": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "yearPublished",
          "players",
          "image",
          "thumbnail",
          "rating",
          "complexity"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Never changes. When two entries turn out to be the same game, one is merged into the other: its id then leads to the game it was merged into."
          },
          "slug": {
            "type": "string",
            "description": "Used in URLs. The name, then the name and year when the name is taken, then a number after it (`catan`, `catan-1995`, `catan-1995-2`). It may change once, by that rule or by a merge; the slug it had keeps leading to the game."
          },
          "name": {
            "type": "string",
            "description": "The game's main name, or its name in the language asked for with `lang` when it has one."
          },
          "originalName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The game's main name when `name` is the one of the language asked for with `lang`. Null otherwise."
          },
          "yearPublished": {
            "type": [
              "integer",
              "null"
            ]
          },
          "players": {
            "$ref": "#/components/schemas/Range",
            "description": "Fewest and most players."
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "The game's cover: always a path on this API (starts with `/v1/media/`): a member's photo or our own copy of the cover. Null when the game has none we hold yet: the API never sends another site's address for a file. It is the main cover, the original edition's, unless `lang` asks for a language the game has a cover of its own in: then it is that one (on a game, every cover is in `covers`). Texts from Wikipedia and images from Wikimedia Commons are credited, as their licences ask, at https://thebgdb.org/credits and listed by `GET /v1/credits`."
          },
          "medium": {
            "type": [
              "string",
              "null"
            ],
            "description": "A middle-sized version of `image`, for cards and small screens: a path on this API to our copy 500 pixels wide. The same path as `image` when the cover is no wider than that, when no narrower copy could be made, and for members' uploads. Null when the game has no cover we hold.",
            "example": "/v1/media/covers/4f1c2b9e-w500.jpg"
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "A small version of `image`, for lists: a path on this API to our copy 250 pixels wide. There is no resizing for members' uploads, so for those it is the same path as `image`. Null when the game has no cover we hold.",
            "example": "/v1/media/covers/4f1c2b9e-w250.jpg"
          },
          "kind": {
            "type": "string",
            "enum": [
              "game",
              "expansion",
              "accessory"
            ],
            "description": "What the entry is: `game` a stand-alone game; `expansion` when it needs another game to be played (see `relations.expansionOf` on the game); `accessory` when it is not played at all (sleeves, an insert, a playmat). Everything is a `game` until a source states otherwise."
          },
          "imageKind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "box_front",
              "board_traditional",
              "box_partial",
              "logo",
              "components",
              "in_play",
              "people",
              "other",
              "box_back",
              "setup",
              "cards",
              "rulebook",
              null
            ],
            "description": "What the cover shows: as a vision model judged it, `box_front` for a cover a moderator chose, or what the member said for a member's photo shown as the cover. Null when it has not been looked at or when the game has no cover. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`."
          },
          "imageAcceptable": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the cover is a good one: the whole front of the box (or the board of a traditional game), with no person in it, of quality 3 or more (`imageQuality`), at least 300 pixels on its short side. False means a better cover is wanted. A moderator's decision overrules what the cover was found to show. Null when nothing has looked at the cover or when the game has none. A member's approved photo is shown as the cover unless it was found not good while the source's cover is good."
          },
          "imageQuality": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 5,
            "description": "How good a picture the cover is, as a vision model judged it: 5 a clean, sharp, straight scan or packshot; 3 an honest photo with small faults (some glare, some angle); 1 and 2 blurred, tiny, dark, glaring, skewed, watermarked or cluttered. Below 3 the cover is not a good one (`imageAcceptable` false). Null when it has not been judged for quality or when the game has no cover.",
            "example": 4
          },
          "imageWidth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Width of the cover in pixels, to lay it out before it loads. Null when not measured."
          },
          "imageHeight": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Height of the cover in pixels. Null when not measured."
          },
          "imageLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language of the edition the cover shows, as a language code (`de` for a German box). Null unless a source states it reliably, which is rare: most covers say nothing about it.",
            "example": null
          },
          "rating": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Rating"
              },
              {
                "type": "null"
              }
            ],
            "description": "Members' ratings. Null when nobody has rated it."
          },
          "complexity": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Complexity"
              },
              {
                "type": "null"
              }
            ],
            "description": "Members' votes on how heavy the game is. Null when nobody has voted."
          }
        },
        "example": {
          "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
          "slug": "catan",
          "name": "Catan",
          "originalName": null,
          "kind": "game",
          "yearPublished": 1995,
          "players": {
            "min": 3,
            "max": 4
          },
          "image": "/v1/media/covers/4f1c2b9e.jpg",
          "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
          "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
          "rating": {
            "average": 7.42,
            "count": 318,
            "weighted": 7.31
          },
          "complexity": {
            "average": 2.29,
            "votes": 121
          }
        }
      },
      "GameName": {
        "type": "object",
        "required": [
          "name",
          "language",
          "primary"
        ],
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name's id, which covers and photos refer to (`name.id`)."
          },
          "name": {
            "type": "string",
            "description": "As written in that language, in its own script."
          },
          "language": {
            "type": "string",
            "description": "Language code, lower case: \"fr\", \"ja\", \"pt-br\"."
          },
          "primary": {
            "type": "boolean",
            "description": "True for the game's main name in that language, false for any other name it is known by there."
          }
        },
        "example": {
          "name": "Les Colons de Catane",
          "language": "fr",
          "primary": true
        }
      },
      "TermResult": {
        "type": "object",
        "description": "A designer, artist or publisher found by name. Its page on this API is `/designers/{slug}`, `/artists/{slug}` or `/publishers/{slug}`.",
        "required": [
          "kind",
          "slug",
          "name",
          "gameCount",
          "matchedName"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "designer",
              "artist",
              "publisher"
            ]
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Its own name."
          },
          "gameCount": {
            "type": "integer"
          },
          "matchedName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The spelling found when it is one merged into this term (\"Ouset Media\" for Ouset); null when its own name was found."
          }
        },
        "example": {
          "kind": "designer",
          "slug": "stefan-feld",
          "name": "Stefan Feld",
          "gameCount": 62,
          "matchedName": null
        }
      },
      "Suggestion": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "originalName",
          "kind",
          "yearPublished",
          "players",
          "thumbnail",
          "matchedName",
          "approximate"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "The game's name in `lang` when it has one, else its main name."
          },
          "originalName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The main name, when `name` is another."
          },
          "kind": {
            "type": "string",
            "enum": [
              "game",
              "expansion",
              "accessory"
            ]
          },
          "yearPublished": {
            "type": [
              "integer",
              "null"
            ]
          },
          "players": {
            "type": "object",
            "required": [
              "min",
              "max"
            ],
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path of our small copy of the main cover, under this API's address; null when we hold none."
          },
          "matchedName": {
            "type": [
              "object",
              "null"
            ],
            "description": "The name the query was found in, when it is neither `name` nor `originalName`.",
            "required": [
              "name",
              "language"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "language": {
                "type": "string"
              }
            }
          },
          "approximate": {
            "type": "boolean",
            "description": "True when found by correcting the spelling of the query."
          }
        }
      },
      "SearchResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GameSummary"
          },
          {
            "type": "object",
            "required": [
              "matchedName",
              "approximate"
            ],
            "properties": {
              "approximate": {
                "type": "boolean",
                "description": "True when the game was found by correcting the spelling of the query: its name is close to the query but does not contain it. Such games always come after the ones that match as written."
              },
              "matchedName": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The alternate name the query was found in. Null when it was found in the game's main name.",
                "required": [
                  "name",
                  "language"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "Rating": {
        "type": "object",
        "required": [
          "average",
          "count",
          "weighted"
        ],
        "properties": {
          "average": {
            "type": "number",
            "description": "Mean of members' ratings, from 1 to 10.",
            "example": 7.42
          },
          "count": {
            "type": "integer",
            "description": "How many members rated the game.",
            "example": 318
          },
          "weighted": {
            "type": "number",
            "description": "The average pulled towards the mean of all ratings in the catalog, as if the game had also received 30 ratings at that mean: (30 × catalog mean + sum of the game's ratings) ÷ (30 + count). It keeps a game with a handful of high ratings from outranking a widely rated one. Ranks and `order=rating` use it. Brought up to date every hour.",
            "example": 7.31
          }
        }
      },
      "Complexity": {
        "type": "object",
        "required": [
          "average",
          "votes"
        ],
        "properties": {
          "average": {
            "type": "number",
            "description": "From 1 (light) to 5 (heavy).",
            "example": 2.29
          },
          "votes": {
            "type": "integer",
            "example": 121
          }
        }
      },
      "Rank": {
        "type": "object",
        "required": [
          "scope",
          "name",
          "rank"
        ],
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "overall",
              "category"
            ],
            "description": "`overall`: among all ranked games. `category`: among the ranked games of one of the game's categories."
          },
          "slug": {
            "type": "string",
            "description": "The category's slug. Absent for `overall`."
          },
          "name": {
            "type": "string",
            "description": "\"Overall\", or the category's name."
          },
          "rank": {
            "type": "integer",
            "minimum": 1,
            "description": "1 is best."
          }
        },
        "example": {
          "scope": "category",
          "slug": "family",
          "name": "Family",
          "rank": 3
        }
      },
      "PlayerCount": {
        "type": "object",
        "required": [
          "players",
          "best",
          "recommended",
          "notRecommended"
        ],
        "properties": {
          "players": {
            "type": "integer",
            "description": "A number of players."
          },
          "best": {
            "type": "integer",
            "description": "Members who find the game best with this many."
          },
          "recommended": {
            "type": "integer"
          },
          "notRecommended": {
            "type": "integer"
          }
        },
        "example": {
          "players": 4,
          "best": 61,
          "recommended": 22,
          "notRecommended": 3
        }
      },
      "Comment": {
        "type": "object",
        "required": [
          "id",
          "author",
          "text",
          "rating",
          "likes",
          "dislikes",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "likes": {
            "type": "integer",
            "description": "Members who liked it."
          },
          "dislikes": {
            "type": "integer",
            "description": "Members who disliked it. Once dislikes outnumber likes by 3 or more, with at least 5 votes, it is hidden until a moderator looks at it."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "author": {
            "type": "string",
            "description": "Display name of the member who wrote it."
          },
          "text": {
            "type": "string",
            "description": "Plain text, not HTML. Escape it before display."
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "description": "The author's rating of the game, if they gave one."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "VideoCategory": {
        "type": "string",
        "enum": [
          "review",
          "how_to_play",
          "playthrough",
          "other"
        ]
      },
      "Video": {
        "type": "object",
        "required": [
          "id",
          "provider",
          "videoId",
          "url",
          "title",
          "language",
          "category",
          "submittedBy",
          "likes",
          "dislikes",
          "createdAt"
        ],
        "properties": {
          "likes": {
            "type": "integer",
            "description": "Members who liked it."
          },
          "dislikes": {
            "type": "integer",
            "description": "Members who disliked it. Once dislikes outnumber likes by 3 or more, with at least 5 votes, it is hidden until a moderator looks at it."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "youtube",
              "vimeo"
            ]
          },
          "videoId": {
            "type": "string",
            "description": "The video's id at the provider, for embedding."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where to watch it, built from the id."
          },
          "title": {
            "type": "string"
          },
          "language": {
            "type": "string",
            "description": "Language spoken, such as \"en\" or \"pt-BR\"."
          },
          "category": {
            "$ref": "#/components/schemas/VideoCategory"
          },
          "submittedBy": {
            "type": "string",
            "description": "Display name of the member who suggested it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "example": {
          "id": "0b0f5a51-64a5-4f6b-9a39-0a4d6c5c0f11",
          "provider": "youtube",
          "videoId": "dQw4w9WgXcQ",
          "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
          "title": "How to play Catan",
          "language": "en",
          "category": "how_to_play",
          "submittedBy": "Ana",
          "likes": 12,
          "dislikes": 1,
          "createdAt": "2026-11-20T18:04:11.120Z"
        }
      },
      "MusicProvider": {
        "type": "string",
        "enum": [
          "spotify",
          "apple_music",
          "youtube"
        ],
        "description": "`youtube` covers YouTube and YouTube Music."
      },
      "Playlist": {
        "type": "object",
        "required": [
          "id",
          "provider",
          "kind",
          "title",
          "url",
          "score",
          "votes",
          "submittedBy",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "$ref": "#/components/schemas/MusicProvider"
          },
          "kind": {
            "type": "string",
            "enum": [
              "playlist",
              "album"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where to listen, built from the service and the playlist's id there."
          },
          "score": {
            "type": "integer",
            "description": "Votes up minus votes down."
          },
          "votes": {
            "type": "integer",
            "description": "How many members voted, either way."
          },
          "submittedBy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the member who added it; null for a playlist the catalog imported rather than a member added."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "example": {
          "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
          "provider": "spotify",
          "kind": "playlist",
          "title": "Island traders: calm medieval folk",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
          "score": 4,
          "votes": 6,
          "submittedBy": "Ana",
          "createdAt": "2026-11-20T18:04:11.120Z"
        }
      },
      "PlaylistWithGames": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Playlist"
          },
          {
            "type": "object",
            "required": [
              "games",
              "gameCount"
            ],
            "properties": {
              "games": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameSummary"
                },
                "description": "The games it is linked to, in the order they were linked: the first 3 in a list, up to 100 on its own."
              },
              "gameCount": {
                "type": "integer",
                "description": "How many listed games it is linked to."
              }
            }
          }
        ],
        "example": {
          "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21",
          "provider": "spotify",
          "kind": "playlist",
          "title": "Island traders: calm medieval folk",
          "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO",
          "score": 4,
          "votes": 6,
          "submittedBy": "Ana",
          "createdAt": "2026-11-20T18:04:11.120Z",
          "games": [
            {
              "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
              "slug": "catan",
              "name": "Catan",
              "originalName": null,
              "kind": "game",
              "yearPublished": 1995,
              "players": {
                "min": 3,
                "max": 4
              },
              "image": "/v1/media/covers/4f1c2b9e.jpg",
              "medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
              "thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
              "rating": {
                "average": 7.42,
                "count": 318,
                "weighted": 7.31
              },
              "complexity": {
                "average": 2.29,
                "votes": 121
              }
            }
          ],
          "gameCount": 1
        }
      },
      "VoteStanding": {
        "type": "object",
        "required": [
          "likes",
          "dislikes",
          "status"
        ],
        "properties": {
          "likes": {
            "type": "integer",
            "description": "Members who liked it."
          },
          "dislikes": {
            "type": "integer",
            "description": "Members who disliked it. Once dislikes outnumber likes by 3 or more, with at least 5 votes, it is hidden until a moderator looks at it."
          },
          "status": {
            "type": "string",
            "enum": [
              "visible",
              "hidden"
            ],
            "description": "`hidden`: voted down by members; no longer shown until a moderator looks at it."
          }
        }
      },
      "PlaylistStanding": {
        "type": "object",
        "required": [
          "score",
          "votes",
          "status"
        ],
        "properties": {
          "score": {
            "type": "integer"
          },
          "votes": {
            "type": "integer"
          },
          "status": {
            "type": "string",
            "enum": [
              "visible",
              "hidden"
            ],
            "description": "`hidden`: voted out of the list by members."
          }
        }
      },
      "RulebookFile": {
        "type": "object",
        "required": [
          "path",
          "contentType",
          "size",
          "kind"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "Path of the file on this API."
          },
          "contentType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "image/jpeg",
              "image/png",
              "image/webp"
            ]
          },
          "size": {
            "type": "integer",
            "description": "Bytes."
          },
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "box_front",
              "board_traditional",
              "box_partial",
              "logo",
              "components",
              "in_play",
              "people",
              "other",
              "box_back",
              "setup",
              "cards",
              "rulebook",
              null
            ],
            "description": "What the file shows: `rulebook` for a page sent as an image; null for a PDF, which is not an image. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`."
          }
        }
      },
      "RulebookUpload": {
        "type": "object",
        "description": "A large rulebook on its way in, and how to send it.",
        "required": [
          "id",
          "token",
          "partSize",
          "parts",
          "expiresAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The upload's id, and the rulebook's once it is complete."
          },
          "token": {
            "type": "string",
            "description": "Send it as `x-upload-token` with every part and to finish or cancel. Shown once."
          },
          "partSize": {
            "type": "integer",
            "description": "Bytes of every part but the last."
          },
          "parts": {
            "type": "integer",
            "description": "How many parts to send."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the token stops being accepted."
          }
        }
      },
      "OwnRulebook": {
        "type": "object",
        "description": "A rulebook or other file as its uploader sees it.",
        "required": [
          "id",
          "type",
          "language",
          "edition",
          "kind",
          "pages",
          "size",
          "files"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "enum": [
              "rulebook",
              "player_aid",
              "score_sheet",
              "faq",
              "campaign",
              "print_and_play",
              "variant",
              "other"
            ],
            "description": "What the file is. `rulebook`: the game's rules (the only type structured rules are drafted from); `player_aid`: player aids, reference sheets, rules summaries; `score_sheet`: score sheets and printable trackers; `faq`: FAQ and errata; `campaign`: campaign logs, scenario books; `print_and_play`: print-and-play files; `variant`: solo, automa and fan variants; `other`: anything else."
          },
          "language": {
            "type": "string",
            "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
          },
          "edition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Which edition or printing the rules belong to, when the uploader said."
          },
          "kind": {
            "type": "string",
            "enum": [
              "pdf",
              "images"
            ],
            "description": "One PDF file, or one image per page."
          },
          "pages": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of pages. Null for a PDF whose pages could not be counted."
          },
          "size": {
            "type": "integer",
            "description": "Bytes, all files together."
          },
          "files": {
            "type": "array",
            "description": "The files, in reading order. A PDF has one.",
            "items": {
              "$ref": "#/components/schemas/RulebookFile"
            }
          }
        }
      },
      "Rulebook": {
        "type": "object",
        "description": "A file of a game: its rulebook, or another file beside it, as `type` says.",
        "required": [
          "id",
          "type",
          "language",
          "edition",
          "kind",
          "pages",
          "size",
          "uploadedBy",
          "createdAt",
          "files"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "enum": [
              "rulebook",
              "player_aid",
              "score_sheet",
              "faq",
              "campaign",
              "print_and_play",
              "variant",
              "other"
            ],
            "description": "What the file is. `rulebook`: the game's rules (the only type structured rules are drafted from); `player_aid`: player aids, reference sheets, rules summaries; `score_sheet`: score sheets and printable trackers; `faq`: FAQ and errata; `campaign`: campaign logs, scenario books; `print_and_play`: print-and-play files; `variant`: solo, automa and fan variants; `other`: anything else."
          },
          "language": {
            "type": "string",
            "description": "A language code such as \"en\", \"fr\" or \"pt-BR\"."
          },
          "edition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Which edition or printing the rules belong to, when the uploader said."
          },
          "kind": {
            "type": "string",
            "enum": [
              "pdf",
              "images"
            ],
            "description": "One PDF file, or one image per page."
          },
          "pages": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of pages. Null for a PDF whose pages could not be counted."
          },
          "size": {
            "type": "integer",
            "description": "Bytes, all files together."
          },
          "files": {
            "type": "array",
            "description": "The files, in reading order. A PDF has one.",
            "items": {
              "$ref": "#/components/schemas/RulebookFile"
            }
          },
          "uploadedBy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the member who uploaded it. Null for a rulebook the catalog added itself."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "example": {
          "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21",
          "type": "rulebook",
          "language": "en",
          "edition": "5th edition, 2015",
          "kind": "pdf",
          "pages": null,
          "size": 4812330,
          "uploadedBy": "Ana",
          "createdAt": "2026-11-20T18:04:11.120Z",
          "files": [
            {
              "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf",
              "contentType": "application/pdf",
              "size": 4812330,
              "kind": null
            }
          ]
        }
      },
      "Account": {
        "type": "object",
        "required": [
          "displayName",
          "plan",
          "requestsPerMinute",
          "playlistProvider"
        ],
        "properties": {
          "displayName": {
            "type": "string"
          },
          "plan": {
            "type": "string",
            "description": "`free`, `starter`, or the name of a plan agreed with us."
          },
          "requestsPerMinute": {
            "type": "integer"
          },
          "playlistProvider": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MusicProvider"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one music service the member wants playlists from. Null: all of them."
          }
        }
      },
      "MyAnswers": {
        "type": "object",
        "required": [
          "rating",
          "complexity",
          "recommendedAge",
          "languageDependence",
          "playerCounts",
          "comment",
          "videos",
          "playlistVotes",
          "rulebooks",
          "votes"
        ],
        "properties": {
          "votes": {
            "type": "array",
            "description": "The member's likes (`up`) and dislikes (`down`) of this game's comments, videos and photos.",
            "items": {
              "type": "object",
              "required": [
                "target",
                "id",
                "vote"
              ],
              "properties": {
                "target": {
                  "type": "string",
                  "enum": [
                    "comment",
                    "video",
                    "photo"
                  ]
                },
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "vote": {
                  "type": "string",
                  "enum": [
                    "up",
                    "down"
                  ]
                }
              }
            }
          },
          "playlistVotes": {
            "type": "array",
            "description": "The member's votes on this game's playlists.",
            "items": {
              "type": "object",
              "required": [
                "playlistId",
                "vote"
              ],
              "properties": {
                "playlistId": {
                  "type": "string",
                  "format": "uuid"
                },
                "vote": {
                  "type": "string",
                  "enum": [
                    "up",
                    "down"
                  ]
                }
              }
            }
          },
          "rulebooks": {
            "type": "array",
            "description": "Rulebooks the member uploaded for this game, with where each stands. Rejected ones are deleted and not listed.",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OwnRulebook"
                },
                {
                  "type": "object",
                  "required": [
                    "status",
                    "createdAt"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "approved"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              ]
            }
          },
          "rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "complexity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "recommendedAge": {
            "type": [
              "integer",
              "null"
            ]
          },
          "languageDependence": {
            "type": [
              "integer",
              "null"
            ]
          },
          "playerCounts": {
            "type": "array",
            "description": "The member's ballot on player counts.",
            "items": {
              "type": "object",
              "required": [
                "players",
                "vote"
              ],
              "properties": {
                "players": {
                  "type": "integer"
                },
                "vote": {
                  "type": "string",
                  "enum": [
                    "best",
                    "recommended",
                    "not_recommended"
                  ]
                }
              }
            }
          },
          "comment": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "id",
              "text",
              "status",
              "createdAt",
              "updatedAt"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "text": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "visible",
                  "removed",
                  "hidden"
                ],
                "description": "`removed`: taken down by a moderator. `hidden`: voted down by members, waiting for a moderator."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "videos": {
            "type": "array",
            "description": "Videos the member suggested for this game, with where each stands.",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Video"
                },
                {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "approved",
                        "rejected"
                      ]
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "TermRef": {
        "type": "object",
        "required": [
          "slug",
          "name"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "TermCount": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "games"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "games": {
            "type": "integer",
            "description": "How many games are linked to it."
          }
        }
      },
      "TermWithGames": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "total",
          "games",
          "page",
          "pages",
          "nextCursor"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "total": {
            "type": "integer",
            "description": "How many of its games pass the filters."
          },
          "games": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            }
          },
          "page": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The page shown, from 1. Null when a `cursor` started it between two pages."
          },
          "pages": {
            "type": "integer",
            "description": "How many pages of `limit` games there are: `total` divided by `limit`, rounded up. 0 for an empty list."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        }
      },
      "AwardResult": {
        "type": "string",
        "enum": [
          "winner",
          "nominee",
          "recommended",
          "finalist",
          "special"
        ],
        "description": "`winner` the game won; `nominee` it was nominated; `recommended` it was on the award's list of recommendations; `finalist` it reached the final selection; `special` it received a special prize."
      },
      "Honour": {
        "type": "object",
        "required": [
          "award",
          "category",
          "year",
          "result"
        ],
        "properties": {
          "award": {
            "$ref": "#/components/schemas/TermRef"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Which prize of the award. Null for its main or only prize."
          },
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year of the award. Null when the source does not state it; never guessed from the game's own year."
          },
          "result": {
            "$ref": "#/components/schemas/AwardResult"
          }
        },
        "example": {
          "award": {
            "slug": "spiel-des-jahres",
            "name": "Spiel des Jahres"
          },
          "category": "Kennerspiel des Jahres",
          "year": 2011,
          "result": "winner"
        }
      },
      "GameRef": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "originalName",
          "yearPublished",
          "thumbnail"
        ],
        "description": "Enough of a game to list it and link to it.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "originalName": {
            "type": [
              "string",
              "null"
            ]
          },
          "yearPublished": {
            "type": [
              "integer",
              "null"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "A small version of the game's cover: our own copy, a path under `/v1/media/`. Null when we hold none. Members' photos are not used here."
          }
        }
      },
      "AwardYear": {
        "type": "object",
        "required": [
          "year",
          "honours"
        ],
        "properties": {
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null groups the honours whose year no source states; it comes last."
          },
          "honours": {
            "type": "array",
            "description": "By category (the main prize first), winners before the others.",
            "items": {
              "type": "object",
              "required": [
                "category",
                "result",
                "game"
              ],
              "properties": {
                "category": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "result": {
                  "$ref": "#/components/schemas/AwardResult"
                },
                "game": {
                  "$ref": "#/components/schemas/GameRef"
                }
              }
            }
          }
        }
      },
      "AwardWithGames": {
        "allOf": [
          {
            "$ref": "#/components/schemas/TermWithGames"
          },
          {
            "type": "object",
            "required": [
              "years"
            ],
            "properties": {
              "years": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AwardYear"
                },
                "description": "Newest first. The 500 most recent honours; independent of `cursor` and of the filters."
              }
            }
          }
        ]
      },
      "Relations": {
        "type": "object",
        "description": "Other games in the catalog this one is related to, as sources state it. Each list holds at most 50 games, oldest first, and is empty when nothing is known. A relation stated on either of the two games appears on both.",
        "required": [
          "expansions",
          "expansionOf",
          "reimplements",
          "reimplementedBy",
          "basedOn",
          "spinOffs",
          "contains",
          "containedIn",
          "integratesWith"
        ],
        "properties": {
          "expansions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Expansions of this game."
          },
          "expansionOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "The game or games this expansion needs."
          },
          "reimplements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Earlier games this one redoes: the same game made again, which replaces it."
          },
          "reimplementedBy": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Later games that redo this one."
          },
          "basedOn": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Games this one is a spin-off of: a game of its own built on another (Wyrmspan on Wingspan, Pandemic Legacy: Season 1 on Pandemic)."
          },
          "spinOffs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Spin-offs of this game: games of their own built on it."
          },
          "contains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Games that come in this box (a compilation)."
          },
          "containedIn": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Compilations this game is part of."
          },
          "integratesWith": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "Games this one can be combined with. No source states this yet, so it is always empty for now."
          }
        }
      },
      "CoverEdition": {
        "type": "object",
        "required": [
          "id",
          "name",
          "original"
        ],
        "description": "An edition of the game, as `GET /v1/games/{id}/editions` lists it.",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Null for the original edition."
          },
          "original": {
            "type": "boolean"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "year": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ean": {
            "type": [
              "string",
              "null"
            ],
            "description": "This edition's own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game's `ean`."
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The titles this edition is sold under, such as \"Dominion (Second Edition)\". They are this edition's, so they are not among the game's `names`. Empty when it has none of its own.",
            "example": [
              "Dominion (Second Edition)"
            ]
          }
        }
      },
      "CoverName": {
        "type": "object",
        "required": [
          "id",
          "name",
          "language"
        ],
        "description": "One of the game's names (see `names`).",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "language": {
            "type": "string"
          }
        },
        "example": {
          "id": "3f9c0b1e2d4a5b6c7d8e9f0a1b2c3d4e",
          "name": "Les Colons de Catane",
          "language": "fr"
        }
      },
      "Cover": {
        "type": "object",
        "required": [
          "image",
          "thumbnail",
          "edition",
          "name",
          "language",
          "kind",
          "primary"
        ],
        "properties": {
          "image": {
            "type": "string",
            "description": "The cover: a path on this API (`/v1/media/...`), our copy or a member's photo. Covers we hold no copy of are not listed."
          },
          "thumbnail": {
            "type": "string",
            "description": "A small version, a path on this API: 250 pixels wide for our copy of a cover, the same as `image` for a member's photo."
          },
          "edition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CoverEdition"
              },
              {
                "type": "null"
              }
            ],
            "description": "The edition whose box it is. Null when not known."
          },
          "name": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CoverName"
              },
              {
                "type": "null"
              }
            ],
            "description": "The game's name on the box, when it is the box of the game under another of its names (its French name, say)."
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language of the box: from its source, else from its name or its edition."
          },
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "box_front",
              "board_traditional",
              "box_partial",
              "logo",
              "components",
              "in_play",
              "people",
              "other",
              "box_back",
              "setup",
              "cards",
              "rulebook",
              null
            ],
            "description": "What the image shows. Null when nothing has looked at it. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`."
          },
          "primary": {
            "type": "boolean",
            "description": "The game's main cover: the original edition's. Exactly one cover is primary when the game has a cover."
          }
        },
        "example": {
          "image": "/v1/media/covers/9f2c.jpg",
          "thumbnail": "/v1/media/covers/9f2c-w250.jpg",
          "edition": null,
          "name": {
            "id": "3f9c0b1e2d4a5b6c7d8e9f0a1b2c3d4e",
            "name": "Les Colons de Catane",
            "language": "fr"
          },
          "language": "fr",
          "kind": "box_front",
          "primary": false
        }
      },
      "Photo": {
        "type": "object",
        "required": [
          "id",
          "path",
          "kind",
          "language",
          "uploadedBy",
          "createdAt",
          "status",
          "likes",
          "dislikes"
        ],
        "properties": {
          "likes": {
            "type": "integer",
            "description": "Members who liked it."
          },
          "dislikes": {
            "type": "integer",
            "description": "Members who disliked it. Once dislikes outnumber likes by 3 or more, with at least 5 votes, it is hidden until a moderator looks at it."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "path": {
            "type": "string",
            "description": "Path of the file on this API."
          },
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "box_front",
              "board_traditional",
              "box_partial",
              "logo",
              "components",
              "in_play",
              "people",
              "other",
              "box_back",
              "setup",
              "cards",
              "rulebook",
              null
            ],
            "description": "What the photo shows, as its uploader said and a moderator checked. Photos added before members were asked carry what a vision model saw. Null when nothing has said yet. `box_front` the whole front of the box; `box_back` its back; `box_partial` the box at an angle, cropped, or an overall shot of it; `board_traditional` the board of a traditional game that never had a box (chess, go); `setup` the game laid out ready to play; `in_play` a game in progress, nobody visible; `components` the pieces, boards and tokens; `cards` cards; `people` people playing, or any person, face or hand in the picture; `rulebook` a page of the rules; `logo` a title or logo alone; `other` anything else. New words may be added; treat an unknown one as `other`."
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language of the edition the photo shows, as a code such as \"en\" or \"pt-BR\". Null when its uploader did not say."
          },
          "edition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CoverEdition"
              },
              {
                "type": "null"
              }
            ],
            "description": "The edition the photo shows, when its uploader said."
          },
          "name": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CoverName"
              },
              {
                "type": "null"
              }
            ],
            "description": "The game's name on the box in the photo, when its uploader said."
          },
          "uploadedBy": {
            "type": "string",
            "description": "Display name of the member who added it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "approved",
              "pending"
            ],
            "description": "`pending` only appears to the member who uploaded it."
          },
          "official": {
            "type": "boolean",
            "description": "The game's official cover, sent by a verified representative of one of its publishers."
          }
        }
      },
      "Game": {
        "description": "Everything the catalog knows about a game. Texts from Wikipedia and images from Wikimedia Commons are credited, as their licences ask, at https://thebgdb.org/credits and listed by `GET /v1/credits`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/GameSummary"
          },
          {
            "type": "object",
            "required": [
              "covers",
              "names",
              "tagline",
              "description",
              "descriptionBlocks",
              "summary",
              "playtime",
              "minAge",
              "ean",
              "officialUrl",
              "updatedAt",
              "credits",
              "originalPublisher",
              "awards",
              "relations",
              "images",
              "ranks",
              "recommendedAge",
              "playerCounts",
              "bestWith",
              "recommendedWith",
              "languageDependence",
              "distributions",
              "playlists",
              "rulebooks",
              "files",
              "enrichment",
              "languages"
            ],
            "properties": {
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The languages we hold something of the game in: an edition, a box, its rules, a rulebook or another file, a video. BCP 47 codes (\"fr\", \"pt-BR\"), sorted. With `lang=`, lists of rulebooks, files, videos and editions put that language first, then English.",
                "example": [
                  "de",
                  "en",
                  "fr"
                ]
              },
              "covers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cover"
                },
                "description": "Every cover of the game: its main cover (`primary`, the original edition's) first, then the box of each other edition, name or language it is sold under, and members' approved photos of the box that say which edition or name they show. The cover of an older edition stays when a newer one arrives. Empty when the game has no cover."
              },
              "names": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameName"
                },
                "description": "Every name the game is known by, with its language: main names first, then by language. The title of one of its editions (\"Dominion (Second Edition)\") is not here but under that edition (`titles` of the edition in `covers`). Empty when no source gave any beyond `name`. At most 200."
              },
              "tagline": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "One line saying what the game is, at most 160 characters. Null when no source gave one.",
                "example": "Trade, build and settle the island of Catan"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The game's description, in English, at most 2,500 characters: what the game is, its premise, the core of the game, a turn, its components, how it ends, variants and editions, as its source supports them. Plain text in two kinds of block: paragraphs, separated by a blank line, and lists, where every line starts with \"- \". No links, HTML or other marks. `descriptionBlocks` has the same text ready to show. Written from a source that allows it, such as the publisher's page or the game's English Wikipedia article. Null when there is none. Texts from Wikipedia and images from Wikimedia Commons are credited, as their licences ask, at https://thebgdb.org/credits and listed by `GET /v1/credits`.",
                "example": "Catan is a trading and building game for three or four players, designed by Klaus Teuber.\n\nYou are settlers on an uncharted island, racing to become its leading power.\n\nOn your turn:\n- roll two dice: every settlement next to a hex showing that number produces its resource\n- trade with the other players or the bank\n- build roads, settlements and cities\n\nThe first player to ten victory points wins."
              },
              "descriptionBlocks": {
                "type": "array",
                "description": "The description as blocks, in order, ready to show: a paragraph (`text`) or a list (`items`). Empty when the game has no description.",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "type",
                        "text"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "paragraph"
                        },
                        "text": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "type",
                        "items"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "list"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "minItems": 1
                        }
                      }
                    }
                  ]
                },
                "example": [
                  {
                    "type": "paragraph",
                    "text": "Catan is a trading and building game for three or four players, designed by Klaus Teuber."
                  },
                  {
                    "type": "paragraph",
                    "text": "On your turn:"
                  },
                  {
                    "type": "list",
                    "items": [
                      "roll two dice: every settlement next to a hex showing that number produces its resource",
                      "trade with the other players or the bank"
                    ]
                  }
                ]
              },
              "summary": {
                "type": "string",
                "description": "One factual paragraph built from the game's own data: year, players, designers, playing time, mechanics, publishers, awards. An empty string when the catalog knows none of these."
              },
              "playtime": {
                "$ref": "#/components/schemas/Range",
                "description": "Shortest and longest game, in minutes."
              },
              "minAge": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Recommended minimum age."
              },
              "ean": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "EAN-13 barcode."
              },
              "officialUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The game's official website."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "credits": {
                "type": "object",
                "description": "Everything the game is credited to or filed under, by kind, each by name. Each entry has its own endpoint. `publishers` lists the publisher of the original edition first (see `originalPublisher`), then the others by name. `awards` here is **deprecated**: it lists the awards that honoured the game by name only, nominations included; use the game's `awards` field, which has the category, the year and the result.",
                "required": [
                  "designers",
                  "artists",
                  "publishers",
                  "categories",
                  "mechanics",
                  "awards",
                  "families"
                ],
                "properties": {
                  "designers": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "artists": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "publishers": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "mechanics": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "awards": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  },
                  "families": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/TermRef"
                    }
                  }
                }
              },
              "originalPublisher": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TermRef"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The publisher of the game's original edition, one of `credits.publishers` (listed first there). Set from a source that says so (a dated publisher on Wikidata, the game's page on its publisher's own site, a page found by web research that says it published the first edition) or by a moderator. Null when unknown."
              },
              "awards": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Honour"
                },
                "description": "What the game received from awards: most recent first, those with no stated year last. At most 200."
              },
              "relations": {
                "$ref": "#/components/schemas/Relations"
              },
              "images": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Photo"
                },
                "description": "Oldest first."
              },
              "ranks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Rank"
                },
                "description": "The game's place by weighted rating: overall first, then within each of its categories. Empty until five members have rated the game. Recomputed every hour.",
                "example": [
                  {
                    "scope": "overall",
                    "name": "Overall",
                    "rank": 12
                  },
                  {
                    "scope": "category",
                    "slug": "family",
                    "name": "Family",
                    "rank": 3
                  }
                ]
              },
              "recommendedAge": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The age members recommend the game from: the median of their votes. Null when nobody has voted. The publisher's stated age is `minAge`.",
                "required": [
                  "age",
                  "votes"
                ],
                "properties": {
                  "age": {
                    "type": "integer"
                  },
                  "votes": {
                    "type": "integer"
                  }
                },
                "example": {
                  "age": 8,
                  "votes": 47
                }
              },
              "playerCounts": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PlayerCount"
                },
                "description": "Members' votes for each number of players anyone voted on, fewest players first. Empty when nobody has voted."
              },
              "bestWith": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Numbers of players for which `best` has more votes than `recommended` and than `notRecommended`.",
                "example": [
                  4
                ]
              },
              "recommendedWith": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Numbers of players for which `best` and `recommended` together have more votes than `notRecommended`.",
                "example": [
                  3,
                  4
                ]
              },
              "languageDependence": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "How much the game depends on reading its language: the level most members chose (the lower one on a tie). 1 no text needed in play, 2 a little text, 3 a moderate amount, 4 a lot, 5 unplayable in another language. Null when nobody has voted.",
                "required": [
                  "level",
                  "votes"
                ],
                "properties": {
                  "level": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5
                  },
                  "votes": {
                    "type": "integer"
                  }
                },
                "example": {
                  "level": 2,
                  "votes": 35
                }
              },
              "distributions": {
                "type": "object",
                "description": "How many members gave each answer: `rating[0]` counts ratings from 1 to 1.5, up to `rating[9]` for 10; `complexity[0]` counts votes of 1 (light) up to `complexity[4]` for 5 (heavy).",
                "required": [
                  "rating",
                  "complexity"
                ],
                "properties": {
                  "rating": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "minItems": 10,
                    "maxItems": 10
                  },
                  "complexity": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "minItems": 5,
                    "maxItems": 5
                  }
                },
                "example": {
                  "rating": [
                    0,
                    1,
                    2,
                    4,
                    9,
                    21,
                    38,
                    30,
                    12,
                    3
                  ],
                  "complexity": [
                    3,
                    18,
                    40,
                    11,
                    2
                  ]
                }
              },
              "playlists": {
                "type": "integer",
                "description": "Playlists listed for the game (`GET /games/{id}/playlists`).",
                "example": 3
              },
              "rulebooks": {
                "type": "integer",
                "description": "Approved rulebooks (files of type `rulebook`), in any language (`GET /games/{id}/rulebooks?type=rulebook`).",
                "example": 2
              },
              "files": {
                "type": "integer",
                "description": "Approved files of every type, rulebooks included (`GET /games/{id}/rulebooks`).",
                "example": 3
              },
              "enrichment": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "pending",
                  null
                ],
                "description": "`pending` while a game added recently waits for its first pass of the engine, which gathers its facts and cover from other sources: much of the record may still be empty. Null once the pass is over, whatever it found, and for every other game. A cached answer may say `pending` a little longer.",
                "example": null
              }
            }
          }
        ]
      },
      "ListKind": {
        "type": "string",
        "enum": [
          "collection",
          "custom"
        ],
        "description": "`collection`: the member's \"My Collection\", the games they own (one per member, id `<user id>:collection`). `custom`: a list they made."
      },
      "ListVisibility": {
        "type": "string",
        "enum": [
          "private",
          "public"
        ],
        "description": "`private`: seen only by its owner. `public`: listed and seen by everyone."
      },
      "ListSummary": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "kind",
          "visibility",
          "owner",
          "createdAt",
          "updatedAt",
          "games"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/ListKind"
          },
          "visibility": {
            "$ref": "#/components/schemas/ListVisibility"
          },
          "owner": {
            "type": "string",
            "description": "Display name of the member who made it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When its name, description, visibility or games last changed."
          },
          "games": {
            "type": "integer",
            "description": "How many games are on it."
          },
          "hasGame": {
            "type": "boolean",
            "description": "Only with `mine=1&game=`: whether that game is on the list."
          }
        }
      },
      "List": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "kind",
          "visibility",
          "owner",
          "createdAt",
          "updatedAt",
          "isOwner",
          "total",
          "games"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/ListKind"
          },
          "visibility": {
            "$ref": "#/components/schemas/ListVisibility"
          },
          "owner": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isOwner": {
            "type": "boolean",
            "description": "True when the session sent belongs to the owner."
          },
          "total": {
            "type": "integer",
            "description": "How many games the list holds."
          },
          "games": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameSummary"
            },
            "description": "In the order they were added: all of them, or one page when paging."
          },
          "page": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The page shown, from 1. Null when a `cursor` started it between two pages."
          },
          "pages": {
            "type": "integer",
            "description": "How many pages of `limit` games there are: `total` divided by `limit`, rounded up. 0 for an empty list."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "When paging: pass as `cursor` to get the next page. Null on the last page."
          }
        }
      },
      "ApiToken": {
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "description": "First characters of the token."
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "games:write",
                "admin"
              ]
            },
            "description": "What the token may do beyond reading and acting as you: `games:write` adds and updates your publisher's games (Publisher API); `admin` opens the admin API (admins only)."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the token stops working; null for never."
          }
        }
      },
      "User": {
        "type": "object",
        "required": [
          "id",
          "email",
          "displayName"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "displayName": {
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean",
            "description": "False until the member opens the link emailed to them."
          },
          "plan": {
            "type": "string",
            "description": "`free`, `starter`, or the name of a plan agreed with us."
          },
          "role": {
            "type": "string",
            "enum": [
              "member",
              "moderator",
              "admin"
            ]
          }
        }
      },
      "Session": {
        "type": "object",
        "required": [
          "token",
          "user"
        ],
        "properties": {
          "token": {
            "type": "string",
            "description": "Send as `Authorization: Bearer <token>`. Valid 30 days."
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }
      }
    }
  }
}
