Add game leaderboards · Player data and multiplayer · How embedding works

Developer API

Upload builds from CI, edit your games, and read daily statistics.

Quick start

OpenAPI: /api/v1/openapi.json Human reference: /developers/api Base path: /api/v1

Create a publisher key at /my/api-keys. You must be a publisher member: submitting a game at /submit makes you one, or an admin can add you to an existing publisher. Copy the full key once and save it as GBG_API_KEY in your CI secret store. Only the hash is stored. Revoke it on the same page. Keys belong to the publisher and survive the departure of their creator. All keys have the display prefix gbg_dev_; use the key name and ID to tell keys apart. Audit records include that prefix and the unique key ID.

Use Authorization: Bearer with your key. Do not send Cookie or Origin headers. Use a server, terminal, or CI client; browser fetch is not supported. Select only the scopes you need: games:read, games:write, builds:write, stats:read. A build pipeline needs only builds:write. Requests are limited to 600 per key per minute. On 429, wait for Retry-After (60 seconds). Bad credentials return 404 and count toward a 10-failure per-IP minute limit. Every response uses Cache-Control: no-store. JSON bodies have a 2 MiB limit.

Read games

GET /api/v1/games?limit=100&offset=0 returns games and nextOffset. Continue until nextOffset is null. Use each game's id in subsequent calls. GET /api/v1/games/{id} returns {game, mediaLinks}, including status, buildId and embedUrl.

Edit details

PATCH /api/v1/games/{id} with application/json. For example: {"title":"My game","orientation":"landscape"}

Draft, submitted, qa_review, playable and published games can be edited; rejected and archived games return 409. Edits to a published game go live at once and notify our operators. Images and media links follow the same rule. A new title or shortDescription replaces any search title or description we wrote for the page. Omitted fields are preserved. See GamePatch in OpenAPI for all names and lengths. URLs must use HTTPS. iframeUrl must be embeddable and cannot be edited while there is a hosted build. Empty strings clear optional URLs; null is rejected. officialUrl is optional; a hosted game needs only its build. Tags, category, withdrawal and admin fields are outside v1; admins set them in review.

Create a game

POST /api/v1/games with application/json (scope games:write). For example: {"title":"My game","shortDescription":"A short pitch.","orientation":"portrait"}

Only title is required. The body takes the GamePatch fields. The 201 response is {game}; the game is in submitted status for review. Use its id to upload images and a build (below). Admins review and publish the game.

Images

Upload the cover, thumbnail and screenshots that show on the game page and browse cards. A game needs a cover and a thumbnail before it can be published. Same status rule as edits (409). A published game must keep at least one cover and one thumbnail; add the new one before removing the old (409 otherwise). At most 20 images per game, including /submit uploads.

GET /api/v1/games/{id}/media list images POST /api/v1/games/{id}/media multipart/form-data: file, type, alt_text PATCH /api/v1/games/{id}/media/{mediaId} {"type":"cover","altText":"...","sortOrder":0} DELETE /api/v1/games/{id}/media/{mediaId} 204

file is a PNG, JPEG or WebP of at most 5 MB. type is cover, thumbnail, screenshot (the default), poster or icon. poster is the play screen behind the Play button on the game page; without one we show the cover. You can also set it on the game's Build page under My games. For example, with ORIGIN set to https://goodbrowsergames.com and GAME_ID to the game's id: curl -H "Authorization: Bearer $GBG_API_KEY" -F file=@cover.png -F type=cover -F "alt_text=Title screen" "$ORIGIN/api/v1/games/$GAME_ID/media"

Media links

Link trailers, dev logs, playthroughs and streams that already exist online. They show in a Media section on the game page. YouTube, Twitch and Vimeo URLs embed (the player loads only when a visitor clicks it); other https URLs show as plain links. At most 10 links per game. Same status rule as edits (409).

GET /api/v1/games/{id}/media-links list, in display order POST /api/v1/games/{id}/media-links {"url":"https://youtu.be/...","title":"Launch trailer"} GET /api/v1/games/{id}/media-links/{linkId} read one PATCH /api/v1/games/{id}/media-links/{linkId} {"title":"...","url":"...","sortOrder":0} DELETE /api/v1/games/{id}/media-links/{linkId} 204 POST /api/v1/games/{id}/media-links/reorder {"ids":["<every link id, in order>"]}

kind (youtube, twitch, vimeo or link) is detected from the URL.

Deploy a build

The upload script does steps 2 to 4 for you. It needs Node 18+, Bun or Deno: curl -O https://goodbrowsergames.com/developers/upload.mjs GBG_API_KEY=gbg_dev_... node upload.mjs ./build --slug my-game --create --title "My game" --create makes the game through the API when the slug does not exist yet (games:write); after that, pass --game {id} or --slug. The key needs builds:write, plus games:read for --slug.

1. Export an uncompressed HTML5 folder with index.html at its root. 2. POST /api/v1/games/{id}/builds with application/json: {"files":[{"path":"index.html","size":15}]} List every file with its exact byte size. Maximum: 2,000 files, 200 MiB total. A common wrapper folder is removed. OS metadata files are ignored. Starting a new upload removes abandoned uploads; use one build at a time. 3. Read buildId and files from the 201 response. For each returned file, read the local file named from. PUT its raw bytes to /api/v1/games/{id}/builds/{buildId}/files/{path}. Use the returned path, not from. Percent-encode each segment and keep /. Send application/octet-stream and Content-Length when available. A successful PUT returns 204. Use four concurrent uploads; retry failed PUTs at the same URL. 4. POST /api/v1/games/{id}/builds/{buildId}/finalize with no body. The response is {"url":"..."}. Missing or wrong-sized files return 400. The new build becomes live immediately and old files are removed in the background. A published game's new build sends an operator notification. Retrying finalize can send another notification. 5. DELETE /api/v1/games/{id}/build to remove the hosted build (204). This works in every status and can be retried.

To patch a live build, read its file set first: GET /api/v1/games/{id}/builds/live (games:read) returns {"build":{"buildId","url","createdAt","fileCount","totalBytes","files":[{"path","size","uploadedAt"}]}}. Files are sorted by path; times are Unix milliseconds. Unfinished uploads are not included. A game without a hosted build returns 404 no_build. Every upload replaces the whole build, so send every file again, not only the changed ones.

Build uploads accept editable statuses plus published. Archived/rejected games cannot take uploads. {"dailyChallenge":true|false} tags or untags a game with a daily mode, on any status except archived and rejected. POST /games accepts it too, and every game response includes it. A daily leaderboard (/developers/leaderboards) turns it on. Use relative asset URLs. Builds run on a separate cookie-less play host in an iframe. Threaded builds (SharedArrayBuffer, pthreads) are not supported. For Godot, disable thread support in the Web export. For Unity, use a non-threaded Web build and uncompressed output. For other engines, use standard HTML5 output with plain, uncompressed assets. Do not embed secrets in the game files.

Read statistics

GET /api/v1/games/{id}/stats?from=2026-10-01&to=2026-10-31 returns from, to, daily and totals. Dates are UTC and inclusive, at most 366 days. Without dates, the last 30 days including today are used. Missing days are omitted. Counts: impressions, cardClicks, pageViews, playStarts, iframeLoads, iframeErrors. These are aggregate counts, not unique users. No onsite/outbound split in v1.

Play time: activeSeconds is active play credited after server limits, engagedSessions counts sessions with 30 s or more, and players counts distinct players with an engaged session (filled in nightly). playTime gives the median and p75 minutes per engaged session, players, and minutes per player (top 2% dropped), split by confidence. "input" means the game frame reported player input. "focus" means we saw only frame focus and tab visibility, which is less exact. Your own plays, automation and datacenter traffic are left out.

Hosted builds report input automatically: the play host adds a small passive script to the build's root index.html. A build that sets its own Content-Security-Policy meta tag is served unchanged. An embedded game can opt in to input confidence with no SDK: at most every 15 s while the player gives input, call window.parent.postMessage({ gbg: "input" }, "https://goodbrowsergames.com").

Errors and isolation

Errors are JSON {error, message}. 400: invalid input; 403: missing scope or email_unverified (a publisher member must confirm their email before creating a game); 404: invalid/revoked key, forbidden browser headers, or inaccessible game; 409: locked status, media link or image limit; 413: JSON or image too large; 429: key rate limit; 503: storage unavailable. Never retry a rejected edit without checking its cause. Games outside your publisher return 404. Each successful write is audited.

Endpoints

/api/v1/games

GET List publisher games

Required scope: games:read. Includes every review status. Stable ID ordering. Follow nextOffset until null; concurrent catalog changes can shift offsets.

Parameters, request and responses
{
  "operationId": "listGames",
  "summary": "List publisher games",
  "description": "Required scope: games:read. Includes every review status. Stable ID ordering. Follow nextOffset until null; concurrent catalog changes can shift offsets.",
  "x-required-scopes": [
    "games:read"
  ],
  "tags": [
    "games"
  ],
  "parameters": [
    {
      "name": "limit",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 200,
        "default": 100
      }
    },
    {
      "name": "offset",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "default": 0
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Page of games",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "games": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Game"
                }
              },
              "nextOffset": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0
              }
            },
            "required": [
              "games",
              "nextOffset"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Create a game

Required scope: games:write. Creates a game for this publisher in submitted status, ready for review. A publisher member must have a confirmed email; otherwise returns 403 email_unverified. Only title is required. officialUrl is optional, so a hosted-only game can be created before its build is uploaded; then upload a build with POST /games/{id}/builds. Takes the GamePatch fields. Admins review and publish the game.

Parameters, request and responses
{
  "operationId": "createGame",
  "summary": "Create a game",
  "description": "Required scope: games:write. Creates a game for this publisher in submitted status, ready for review. A publisher member must have a confirmed email; otherwise returns 403 email_unverified. Only title is required. officialUrl is optional, so a hosted-only game can be created before its build is uploaded; then upload a build with POST /games/{id}/builds. Takes the GamePatch fields. Admins review and publish the game.",
  "x-required-scopes": [
    "games:write"
  ],
  "tags": [
    "games"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/GamePatch",
          "required": [
            "title"
          ]
        },
        "example": {
          "title": "My game",
          "shortDescription": "A short pitch.",
          "orientation": "portrait"
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Created game",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "game": {
                "$ref": "#/components/schemas/Game"
              }
            },
            "required": [
              "game"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}

GET Read a game

Required scope: games:read. Includes status, editable fields, current build ID, embed URL, uploaded images and media links in display order.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "getGame",
  "summary": "Read a game",
  "description": "Required scope: games:read. Includes status, editable fields, current build ID, embed URL, uploaded images and media links in display order.",
  "x-required-scopes": [
    "games:read"
  ],
  "tags": [
    "games"
  ],
  "responses": {
    "200": {
      "description": "Game",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "game": {
                "$ref": "#/components/schemas/Game"
              },
              "media": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Media"
                }
              },
              "mediaLinks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MediaLink"
                }
              }
            },
            "required": [
              "game",
              "media",
              "mediaLinks"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PATCH Edit game details

Required scope: games:write. Partial update. Draft, submitted, qa_review, playable and published games are editable; edits to a published game go live at once. Rejected and archived games return 409. Unknown fields are rejected. Omitted fields stay unchanged. Empty strings clear optional URLs; null is not accepted. iframeUrl cannot be changed while a hosted build exists. URLs must use HTTPS and iframeUrl must be embeddable. Status, slug, tags, category, scores and licensing cannot be changed.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "updateGame",
  "summary": "Edit game details",
  "description": "Required scope: games:write. Partial update. Draft, submitted, qa_review, playable and published games are editable; edits to a published game go live at once. Rejected and archived games return 409. Unknown fields are rejected. Omitted fields stay unchanged. Empty strings clear optional URLs; null is not accepted. iframeUrl cannot be changed while a hosted build exists. URLs must use HTTPS and iframeUrl must be embeddable. Status, slug, tags, category, scores and licensing cannot be changed.",
  "x-required-scopes": [
    "games:write"
  ],
  "tags": [
    "games"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/GamePatch"
        },
        "example": {
          "title": "My game",
          "orientation": "landscape"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Updated game",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "game": {
                "$ref": "#/components/schemas/Game"
              }
            },
            "required": [
              "game"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/media

GET List images

Required scope: games:read. Uploaded images, grouped by type and in sortOrder.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "listMedia",
  "summary": "List images",
  "description": "Required scope: games:read. Uploaded images, grouped by type and in sortOrder.",
  "x-required-scopes": [
    "games:read"
  ],
  "tags": [
    "games"
  ],
  "responses": {
    "200": {
      "description": "Images",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "media": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Media"
                }
              }
            },
            "required": [
              "media"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Upload an image

Required scope: games:write. multipart/form-data with fields file (PNG, JPEG or WebP, at most 5 MB; the type is detected from the bytes), type (default screenshot) and alt_text. Draft, submitted, qa_review, playable and published games are editable. At most 20 images per game, including images sent with /submit.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "uploadMedia",
  "summary": "Upload an image",
  "description": "Required scope: games:write. multipart/form-data with fields file (PNG, JPEG or WebP, at most 5 MB; the type is detected from the bytes), type (default screenshot) and alt_text. Draft, submitted, qa_review, playable and published games are editable. At most 20 images per game, including images sent with /submit.",
  "x-required-scopes": [
    "games:write"
  ],
  "tags": [
    "games"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "multipart/form-data": {
        "schema": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "format": "binary"
            },
            "type": {
              "type": "string",
              "enum": [
                "cover",
                "thumbnail",
                "screenshot",
                "poster",
                "icon"
              ],
              "description": "cover is the game page hero, thumbnail the browse card image, screenshot a gallery image, poster the play screen behind the Play button (the cover is used without one). A game needs a cover and a thumbnail before it can be published."
            },
            "alt_text": {
              "type": "string",
              "maxLength": 2000,
              "description": "Describe what the image shows."
            }
          },
          "required": [
            "file"
          ],
          "additionalProperties": false
        },
        "encoding": {
          "file": {
            "contentType": "image/png, image/jpeg, image/webp"
          }
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Uploaded image",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "media": {
                "$ref": "#/components/schemas/Media"
              }
            },
            "required": [
              "media"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow edits, or the game already has 20 images.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "Image upload exceeds 5 MB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Image storage is unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/media/{mediaId}

PATCH Edit an image

Required scope: games:write. Partial update of type, altText or sortOrder. Only editable statuses. A published game must keep a cover and a thumbnail (409).

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "mediaId",
      "in": "path",
      "required": true,
      "description": "Image ID from listMedia.",
      "schema": {
        "type": "string",
        "format": "uuid"
      }
    }
  ],
  "operationId": "updateMedia",
  "summary": "Edit an image",
  "description": "Required scope: games:write. Partial update of type, altText or sortOrder. Only editable statuses. A published game must keep a cover and a thumbnail (409).",
  "x-required-scopes": [
    "games:write"
  ],
  "tags": [
    "games"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "cover",
                "thumbnail",
                "screenshot",
                "poster",
                "icon"
              ],
              "description": "cover is the game page hero, thumbnail the browse card image, screenshot a gallery image, poster the play screen behind the Play button (the cover is used without one). A game needs a cover and a thumbnail before it can be published."
            },
            "altText": {
              "type": "string",
              "maxLength": 2000,
              "description": "Describe what the image shows."
            },
            "sortOrder": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "description": "Order within the type, lowest first."
            }
          },
          "required": [],
          "additionalProperties": false,
          "minProperties": 1
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Updated image",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "media": {
                "$ref": "#/components/schemas/Media"
              }
            },
            "required": [
              "media"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

DELETE Remove an image

Required scope: games:write. Removes the image and its stored file. Only editable statuses. A published game must keep a cover and a thumbnail (409).

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "mediaId",
      "in": "path",
      "required": true,
      "description": "Image ID from listMedia.",
      "schema": {
        "type": "string",
        "format": "uuid"
      }
    }
  ],
  "operationId": "deleteMedia",
  "summary": "Remove an image",
  "description": "Required scope: games:write. Removes the image and its stored file. Only editable statuses. A published game must keep a cover and a thumbnail (409).",
  "x-required-scopes": [
    "games:write"
  ],
  "tags": [
    "games"
  ],
  "responses": {
    "204": {
      "description": "Image removed; no response body"
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/media-links

/api/v1/games/{id}/media-links/reorder

/api/v1/games/{id}/media-links/{linkId}

/api/v1/games/{id}/builds

POST Start a build upload

Required scope: builds:write. Allowed for editable statuses and published games. Starting an upload clears abandoned uploads for this game; upload one build at a time. The current live build is kept. Supply decoded relative paths and exact byte sizes. Root index.html is required; one common wrapper folder is stripped. Use returned from to read the local file and path in the PUT URL. Ignore files omitted from the response (OS metadata). No absolute paths, dot segments or backslashes.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "startBuild",
  "summary": "Start a build upload",
  "description": "Required scope: builds:write. Allowed for editable statuses and published games. Starting an upload clears abandoned uploads for this game; upload one build at a time. The current live build is kept. Supply decoded relative paths and exact byte sizes. Root index.html is required; one common wrapper folder is stripped. Use returned from to read the local file and path in the PUT URL. Ignore files omitted from the response (OS metadata). No absolute paths, dot segments or backslashes.",
  "x-required-scopes": [
    "builds:write"
  ],
  "tags": [
    "builds"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/Manifest"
        },
        "example": {
          "files": [
            {
              "path": "index.html",
              "size": 15
            }
          ]
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Upload plan",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "buildId": {
                "type": "string",
                "format": "uuid"
              },
              "files": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PlannedFile"
                }
              }
            },
            "required": [
              "buildId",
              "files"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Build storage is unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/builds/live

GET List the live build's files

Required scope: games:read. Returns the hosted build players see now, with every stored file path and byte size, so a client can patch a build without crawling the play host. Uploads that are not finalized are not included. Returns 404 no_build when the game has no hosted build.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "getLiveBuild",
  "summary": "List the live build's files",
  "description": "Required scope: games:read. Returns the hosted build players see now, with every stored file path and byte size, so a client can patch a build without crawling the play host. Uploads that are not finalized are not included. Returns 404 no_build when the game has no hosted build.",
  "x-required-scopes": [
    "games:read"
  ],
  "tags": [
    "games"
  ],
  "responses": {
    "200": {
      "description": "Live build",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "build": {
                "$ref": "#/components/schemas/LiveBuild"
              }
            },
            "required": [
              "build"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Build storage is unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/builds/{buildId}/files/{path}

PUT Upload one raw file

Required scope: builds:write. Send exact file bytes, not JSON or multipart. Content-Length is recommended. The manifest size is enforced for streamed and chunked uploads. Retry the same file by PUT to the same path. Use at most four concurrent uploads. Editable and published statuses are allowed.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "buildId",
      "in": "path",
      "required": true,
      "description": "Build ID returned by startBuild.",
      "schema": {
        "type": "string",
        "format": "uuid"
      }
    },
    {
      "name": "path",
      "in": "path",
      "required": true,
      "description": "Returned path from the upload plan. Encode each segment separately; retain / between directories. This parameter spans nested paths.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "uploadBuildFile",
  "summary": "Upload one raw file",
  "description": "Required scope: builds:write. Send exact file bytes, not JSON or multipart. Content-Length is recommended. The manifest size is enforced for streamed and chunked uploads. Retry the same file by PUT to the same path. Use at most four concurrent uploads. Editable and published statuses are allowed.",
  "x-required-scopes": [
    "builds:write"
  ],
  "tags": [
    "builds"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/octet-stream": {}
    }
  },
  "responses": {
    "204": {
      "description": "File stored; no response body"
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Build storage is unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/builds/{buildId}/finalize

POST Make the build live

Required scope: builds:write. No body required. Every manifest file must be uploaded with the exact size. Editable and published statuses are allowed. Updates the player URL immediately, removes old builds in the background, and notifies operators for published games. Finalize retries may send another notification.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "buildId",
      "in": "path",
      "required": true,
      "description": "Build ID returned by startBuild.",
      "schema": {
        "type": "string",
        "format": "uuid"
      }
    }
  ],
  "operationId": "finalizeBuild",
  "summary": "Make the build live",
  "description": "Required scope: builds:write. No body required. Every manifest file must be uploaded with the exact size. Editable and published statuses are allowed. Updates the player URL immediately, removes old builds in the background, and notifies operators for published games. Finalize retries may send another notification.",
  "x-required-scopes": [
    "builds:write"
  ],
  "tags": [
    "builds"
  ],
  "responses": {
    "200": {
      "description": "Embed URL",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Game status does not allow this operation.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Build storage is unavailable.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/build

DELETE Remove hosted build

Required scope: builds:write. Allowed in every status. Clears the build ID and its player URL. Does not clear an external iframe URL if there was no hosted build. Storage cleanup runs in the background. Safe to retry.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "removeBuild",
  "summary": "Remove hosted build",
  "description": "Required scope: builds:write. Allowed in every status. Clears the build ID and its player URL. Does not clear an external iframe URL if there was no hosted build. Storage cleanup runs in the background. Safe to retry.",
  "x-required-scopes": [
    "builds:write"
  ],
  "tags": [
    "builds"
  ],
  "responses": {
    "204": {
      "description": "Build removed; no response body"
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/stats

GET Read daily metrics

Required scope: stats:read. Inclusive UTC dates, at most 366 days. Defaults to the past 30 days including today. Days without stored metrics are omitted; totals cover returned rows. Metrics are aggregate counts, not unique users, except players: distinct players with an engaged session (30 s or more of active play) that started that day, filled in nightly. activeSeconds is credited active play time after server limits. playTime summarizes engaged sessions in the range, split by confidence: input means the game frame reported player input, focus means only frame focus and tab visibility were visible (most embeds), so focus figures are less exact. Sessions from the game's own publisher, automation and datacenter networks are left out. Play-session detail is kept for 90 days. Play starts are not split into onsite/outbound in v1.

Parameters, request and responses
{
  "pathParameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "operationId": "getGameStats",
  "summary": "Read daily metrics",
  "description": "Required scope: stats:read. Inclusive UTC dates, at most 366 days. Defaults to the past 30 days including today. Days without stored metrics are omitted; totals cover returned rows. Metrics are aggregate counts, not unique users, except players: distinct players with an engaged session (30 s or more of active play) that started that day, filled in nightly. activeSeconds is credited active play time after server limits. playTime summarizes engaged sessions in the range, split by confidence: input means the game frame reported player input, focus means only frame focus and tab visibility were visible (most embeds), so focus figures are less exact. Sessions from the game's own publisher, automation and datacenter networks are left out. Play-session detail is kept for 90 days. Play starts are not split into onsite/outbound in v1.",
  "x-required-scopes": [
    "stats:read"
  ],
  "tags": [
    "stats"
  ],
  "parameters": [
    {
      "name": "from",
      "in": "query",
      "description": "Default: 29 days before today (UTC).",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "name": "to",
      "in": "query",
      "description": "Default: today (UTC).",
      "schema": {
        "type": "string",
        "format": "date"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Daily rows and totals",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              },
              "daily": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DailyMetrics"
                }
              },
              "totals": {
                "$ref": "#/components/schemas/Metrics"
              },
              "playTime": {
                "type": "object",
                "properties": {
                  "engagedPerPlayStart": {
                    "type": "number",
                    "minimum": 0
                  },
                  "input": {
                    "$ref": "#/components/schemas/PlayTime"
                  },
                  "focus": {
                    "$ref": "#/components/schemas/PlayTime"
                  }
                },
                "required": [
                  "engagedPerPlayStart",
                  "input",
                  "focus"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "from",
              "to",
              "daily",
              "totals",
              "playTime"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards

GET List boards

Requires games:read. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "List boards",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:read. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Create a board (maximum five)

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Create a board (maximum five)",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "201": {
      "description": "Created",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,47}$"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "sort": {
              "enum": [
                "desc",
                "asc"
              ],
              "default": "desc"
            },
            "format": {
              "enum": [
                "integer",
                "time_ms",
                "decimal"
              ],
              "default": "integer"
            },
            "minScore": {
              "type": [
                "number",
                "null"
              ]
            },
            "maxScore": {
              "type": [
                "number",
                "null"
              ]
            },
            "onePerPlayer": {
              "type": "boolean",
              "default": true
            },
            "daily": {
              "type": "boolean",
              "default": false,
              "description": "Daily challenge: scores file under a UTC challengeDay."
            },
            "status": {
              "enum": [
                "active",
                "archived"
              ],
              "default": "active"
            }
          },
          "required": [
            "key",
            "title"
          ],
          "additionalProperties": false
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboard-settings

PATCH Set external identity delivery

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Set external identity delivery",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "delivery": {
              "enum": [
                "fragment",
                "query"
              ]
            }
          },
          "required": [
            "delivery"
          ],
          "additionalProperties": false
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}

GET Read public ranked entries, or get board configuration with a publisher key

Parameters, request and responses
{
  "summary": "Read public ranked entries, or get board configuration with a publisher key",
  "security": [
    {},
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "range",
      "in": "query",
      "description": "Defaults to day on daily boards and all otherwise.",
      "schema": {
        "enum": [
          "day",
          "week",
          "all"
        ]
      }
    },
    {
      "name": "day",
      "in": "query",
      "description": "Daily boards only: one challenge day (YYYY-MM-DD, UTC), today or earlier.",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "name": "limit",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100,
        "default": 10
      }
    },
    {
      "name": "cursor",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100000,
        "default": 0
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Public entries (no player IDs, email, or metadata). With a publisher key: board configuration.",
      "content": {
        "application/json": {
          "schema": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "entries": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "handle": {
                          "type": "string"
                        },
                        "score": {
                          "type": "number"
                        },
                        "rank": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "date": {
                          "type": "integer",
                          "description": "Unix milliseconds"
                        }
                      },
                      "required": [
                        "handle",
                        "score",
                        "rank",
                        "date"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "nextCursor": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "challengeDay": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Daily boards only: the challenge read, or null for a multi-day range."
                  }
                },
                "required": [
                  "entries",
                  "nextCursor",
                  "challengeDay"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "board": {
                    "type": "object"
                  }
                },
                "required": [
                  "board"
                ],
                "additionalProperties": false
              }
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PATCH Edit a board; reset populated boards before changing sort, format, or mode

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Edit a board; reset populated boards before changing sort, format, or mode",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,47}$"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "sort": {
              "enum": [
                "desc",
                "asc"
              ],
              "default": "desc"
            },
            "format": {
              "enum": [
                "integer",
                "time_ms",
                "decimal"
              ],
              "default": "integer"
            },
            "minScore": {
              "type": [
                "number",
                "null"
              ]
            },
            "maxScore": {
              "type": [
                "number",
                "null"
              ]
            },
            "onePerPlayer": {
              "type": "boolean",
              "default": true
            },
            "daily": {
              "type": "boolean",
              "default": false,
              "description": "Daily challenge: scores file under a UTC challengeDay."
            },
            "status": {
              "enum": [
                "active",
                "archived"
              ],
              "default": "active"
            }
          },
          "required": [],
          "additionalProperties": false
        }
      }
    }
  }
}

DELETE Delete a board and its entries

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Delete a board and its entries",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}/reset

POST Delete all scores from a board

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Delete all scores from a board",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}/scores

POST Submit a score (cookie-free player ID, or trusted publisher server)

No key is needed for client submits. CORS permits PLAY_ORIGIN and the registered external iframe origin only. With a publisher key requires games:write, no Cookie or Origin headers. Bounds and metadata validation apply to both. Limits: 20 per player/game/minute; 100 per IP/minute (per key for server submits). Body limit 8192 bytes for client submits. A 201 means accepted, not necessarily publicly visible.

Parameters, request and responses
{
  "summary": "Submit a score (cookie-free player ID, or trusted publisher server)",
  "description": "No key is needed for client submits. CORS permits PLAY_ORIGIN and the registered external iframe origin only. With a publisher key requires games:write, no Cookie or Origin headers. Bounds and metadata validation apply to both. Limits: 20 per player/game/minute; 100 per IP/minute (per key for server submits). Body limit 8192 bytes for client submits. A 201 means accepted, not necessarily publicly visible.",
  "security": [
    {},
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "playerId": {
              "type": "string",
              "pattern": "^gbgp_[A-Za-z0-9_-]{43}$"
            },
            "score": {
              "type": "number"
            },
            "meta": {
              "description": "JSON metadata, at most 2048 UTF-8 bytes."
            },
            "challengeDay": {
              "type": "string",
              "format": "date",
              "description": "Daily boards only: the UTC day (YYYY-MM-DD) the run was played for. Today or yesterday; defaults to today."
            }
          },
          "required": [
            "playerId",
            "score"
          ],
          "additionalProperties": false
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Score accepted",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "accepted": {
                "type": "boolean"
              }
            },
            "required": [
              "accepted"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}/players/{playerId}

GET Read a player best score and rank; treat this URL as private

Parameters, request and responses
{
  "summary": "Read a player best score and rank; treat this URL as private",
  "security": [],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "playerId",
      "in": "path",
      "required": true,
      "description": "Private per-game player ID",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Public fields only",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "player": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "handle": {
                        "type": "string"
                      },
                      "score": {
                        "type": "number"
                      },
                      "rank": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "date": {
                        "type": "integer",
                        "description": "Unix milliseconds"
                      }
                    },
                    "required": [
                      "handle",
                      "score",
                      "rank",
                      "date"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "player"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}/entries

GET List entries for moderation; no private IDs or emails

Requires games:read. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "List entries for moderation; no private IDs or emails",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:read. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "cursor",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 0
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/leaderboards/{key}/entries/{entryId}

PATCH Hide or unhide an entry

Requires games:write. See /developers/leaderboards.

Parameters, request and responses
{
  "summary": "Hide or unhide an entry",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "description": "Requires games:write. See /developers/leaderboards.",
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Board key (1–48 lowercase letters, numbers, hyphens).",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "entryId",
      "in": "path",
      "required": true,
      "description": "Entry ID from moderation list",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The key lacks the required scope.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Missing, invalid or revoked key; Cookie or Origin header present; or game outside this publisher.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "JSON request exceeds 2 MiB.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Key request limit exceeded. Retry after 60 seconds.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "headers": {
        "Retry-After": {
          "schema": {
            "type": "integer",
            "const": 60
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "hidden": {
              "type": "boolean"
            }
          },
          "required": [
            "hidden"
          ],
          "additionalProperties": false
        }
      }
    }
  }
}

/api/v1/games/{id}/test-players

POST Mint test players for bot scripts

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Mint test players for bot scripts",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "count": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "count"
          ],
          "additionalProperties": false
        }
      }
    }
  }
}

/api/v1/games/{id}/players/{ref}

GET A player's ref, handle, and guest state

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "A player's ref, handle, and guest state",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/players/{ref}/data

GET List a player's keys (all scopes)

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "List a player's keys (all scopes)",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/players/{ref}/data/{key}

GET Read a player's key

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read a player's key",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PUT Set a player's key, any scope

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Set a player's key, any scope",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

PATCH Atomic op on a player's key

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Atomic op on a player's key",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

DELETE Delete a player's key

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Delete a player's key",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/data/batch

POST Apply ops, messages, and lease releases in one transaction

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Apply ops, messages, and lease releases in one transaction",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "opId": {
              "type": "string"
            },
            "ops": {
              "type": "array"
            },
            "messages": {
              "type": "array"
            },
            "releases": {
              "type": "array"
            }
          },
          "required": [],
          "additionalProperties": false
        }
      }
    }
  }
}

/api/v1/games/{id}/players/{ref}/inbox

GET Read a player's inbox

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read a player's inbox",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Send a player a message

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Send a player a message",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/match/{pool}

GET List a match pool

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "List a match pool",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/match/{pool}/players/{ref}

PUT Set a player's rating or shield

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Set a player's rating or shield",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

DELETE Remove a player from the pool

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Remove a player from the pool",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/match/{pool}/leases/{lease}

GET Read a lease and its pinned snapshot

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read a lease and its pinned snapshot",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "lease",
      "in": "path",
      "required": true,
      "description": "Lease ID from find.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/match/{pool}/leases/{lease}/release

POST Release a lease, optionally shielding the target

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Release a lease, optionally shielding the target",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "lease",
      "in": "path",
      "required": true,
      "description": "Lease ID from find.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/groups

GET List groups (publisher) or open groups (player)

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "List groups (publisher) or open groups (player)",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Create a group for a founder

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Create a group for a founder",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/groups/{gid}

GET A group and its members

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "A group and its members",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PATCH Rename, open, resize, or archive a group

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Rename, open, resize, or archive a group",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/groups/{gid}/members

POST Add a member

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Add a member",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/groups/{gid}/members/{ref}

PATCH Change a member's role

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Change a member's role",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

DELETE Remove a member

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Remove a member",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "ref",
      "in": "path",
      "required": true,
      "description": "Player ref (gbgr_...) or the player's gbgp_ ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/groups/{gid}/data/{key}

GET Read a group document

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read a group document",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PUT Set a group document

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Set a group document",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

PATCH Atomic op on a group document

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Atomic op on a group document",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

DELETE Delete a group document

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Delete a group document",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/groups/{gid}/inbox

GET Read a group inbox

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read a group inbox",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Post to a group, optionally to every member inbox

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Post to a group, optionally to every member inbox",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "gid",
      "in": "path",
      "required": true,
      "description": "Group ID.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/webhook

GET Read the webhook (no secret)

Requires games:read. See /developers/data.

Parameters, request and responses
{
  "summary": "Read the webhook (no secret)",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:read. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PUT Set the webhook; returns its secret once

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Set the webhook; returns its secret once",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

DELETE Remove the webhook

Requires games:write. See /developers/data.

Parameters, request and responses
{
  "summary": "Remove the webhook",
  "security": [
    {
      "PublisherKey": []
    }
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Requires games:write. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/me

GET The player's ref, guest state, and claimed keys

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "The player's ref, guest state, and claimed keys",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/me/data

GET List the player's keys and usage

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "List the player's keys and usage",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/me/data/{key}

GET Read the player's key

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Read the player's key",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

PUT Set the player's key (not protected)

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Set the player's key (not protected)",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

PATCH Atomic op on the player's key

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Atomic op on the player's key",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "op": {
              "enum": [
                "set",
                "inc",
                "append",
                "setIfAbsent"
              ]
            },
            "value": {},
            "scope": {
              "enum": [
                "private",
                "public",
                "protected"
              ]
            },
            "ifRev": {
              "type": "integer",
              "minimum": 0
            },
            "opId": {
              "type": "string",
              "minLength": 8,
              "maxLength": 64
            },
            "path": {
              "type": "string",
              "description": "Dot path inside an object value."
            },
            "by": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "cap": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "writeRole": {
              "enum": [
                "member",
                "elder",
                "founder"
              ]
            }
          }
        }
      }
    }
  }
}

DELETE Delete the player's key

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Delete the player's key",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "Key: 1-128 of letters, numbers, and _ . : / -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

/api/v1/games/{id}/me/match/{pool}/find

POST Lease a target near a rating

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Lease a target near a rating",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "pool",
      "in": "path",
      "required": true,
      "description": "Match pool name: 1-32 lowercase letters, numbers, _ or -.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

/api/v1/games/{id}/me/inbox

GET Read the player's inbox

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Read the player's inbox",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

POST Message another player by ref

Player route used by the GBG.data SDK. See /developers/data.

Parameters, request and responses
{
  "summary": "Message another player by ref",
  "security": [
    {}
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Game ID from GET /games, not the slug.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-GBG-Player",
      "in": "header",
      "required": true,
      "description": "The player's gbgp_ ID for this game.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "description": "Player route used by the GBG.data SDK. See /developers/data.",
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {},
              "scope": {
                "enum": [
                  "private",
                  "public",
                  "protected"
                ]
              },
              "rev": {
                "type": "integer",
                "minimum": 1
              },
              "updatedAt": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid JSON, fields, dates, path, file size, manifest, or incomplete upload.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Missing player, protected key, or role.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Unknown game, player, group, or key.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "conflict (stale ifRev; includes rev and value), out_of_range, type_mismatch, full, or in_progress.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "too_large (64 KB per value) or quota (100 keys, 1 MB).",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "429": {
      "description": "Over 60 writes a minute per player, or the IP cap.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "500": {
      "description": "Internal error. Retry later.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}

Schemas

Error
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ],
  "additionalProperties": false
}
GamePatch
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 140,
      "minLength": 1
    },
    "shortDescription": {
      "type": "string",
      "maxLength": 500
    },
    "longDescription": {
      "type": "string",
      "maxLength": 5000
    },
    "officialUrl": {
      "type": "string",
      "maxLength": 500
    },
    "iframeUrl": {
      "type": "string",
      "maxLength": 500
    },
    "sourceUrl": {
      "type": "string",
      "maxLength": 500
    },
    "howToPlay": {
      "type": "string",
      "maxLength": 1500
    },
    "controls": {
      "type": "string",
      "maxLength": 1500
    },
    "developerName": {
      "type": "string",
      "maxLength": 120
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait"
      ]
    },
    "dailyChallenge": {
      "type": "boolean",
      "description": "Tag the game Daily Challenge. Sent alone, it also works on published games."
    }
  },
  "required": [],
  "additionalProperties": false
}
Game
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "submitted",
        "qa_review",
        "playable",
        "published",
        "archived",
        "rejected"
      ]
    },
    "title": {
      "type": "string"
    },
    "shortDescription": {
      "type": "string"
    },
    "longDescription": {
      "type": "string"
    },
    "officialUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "iframeUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "howToPlay": {
      "type": "string"
    },
    "controls": {
      "type": "string"
    },
    "developerName": {
      "type": "string"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait"
      ]
    },
    "buildId": {
      "type": [
        "string",
        "null"
      ]
    },
    "embedUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "dailyChallenge": {
      "type": "boolean",
      "description": "Tagged Daily Challenge."
    },
    "createdAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Unix milliseconds"
    },
    "updatedAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Unix milliseconds"
    }
  },
  "required": [
    "id",
    "slug",
    "status",
    "title",
    "shortDescription",
    "longDescription",
    "officialUrl",
    "iframeUrl",
    "sourceUrl",
    "howToPlay",
    "controls",
    "developerName",
    "orientation",
    "buildId",
    "embedUrl",
    "dailyChallenge",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false
}
Media
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "type": {
      "type": "string",
      "enum": [
        "cover",
        "thumbnail",
        "screenshot",
        "poster",
        "icon"
      ],
      "description": "cover is the game page hero, thumbnail the browse card image, screenshot a gallery image, poster the play screen behind the Play button (the cover is used without one). A game needs a cover and a thumbnail before it can be published."
    },
    "url": {
      "type": "string",
      "description": "Site-relative image URL."
    },
    "altText": {
      "type": "string"
    },
    "sortOrder": {
      "type": "integer",
      "minimum": 0
    },
    "createdAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Unix milliseconds"
    }
  },
  "required": [
    "id",
    "type",
    "url",
    "altText",
    "sortOrder",
    "createdAt"
  ],
  "additionalProperties": false
}
MediaLinkCreate
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 500,
      "description": "https only. YouTube (watch, youtu.be, shorts, live, embed), Twitch (channel, videos/ID, clips) and Vimeo URLs embed on the game page; any other https URL is shown as a plain link."
    },
    "title": {
      "type": "string",
      "maxLength": 120,
      "description": "Short label, for example Launch trailer."
    },
    "sortOrder": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "description": "Display order, lowest first."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
MediaLinkPatch
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 500,
      "description": "https only. YouTube (watch, youtu.be, shorts, live, embed), Twitch (channel, videos/ID, clips) and Vimeo URLs embed on the game page; any other https URL is shown as a plain link."
    },
    "title": {
      "type": "string",
      "maxLength": 120,
      "description": "Short label, for example Launch trailer."
    },
    "sortOrder": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "description": "Display order, lowest first."
    }
  },
  "required": [],
  "additionalProperties": false,
  "minProperties": 1
}
Manifest
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2000,
      "description": "Maximum 209715200 bytes (200 MiB) in total after metadata files are removed.",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "size": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "path",
          "size"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "files"
  ],
  "additionalProperties": false
}
PlannedFile
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "size": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "from",
    "path",
    "size"
  ],
  "additionalProperties": false
}
LiveBuild
{
  "type": "object",
  "properties": {
    "buildId": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Play and embed URL."
    },
    "createdAt": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Unix milliseconds of the earliest stored file upload."
    },
    "fileCount": {
      "type": "integer",
      "minimum": 0
    },
    "totalBytes": {
      "type": "integer",
      "minimum": 0
    },
    "files": {
      "type": "array",
      "description": "Sorted by path.",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Path relative to the build root."
          },
          "size": {
            "type": "integer",
            "minimum": 0,
            "description": "Bytes"
          },
          "uploadedAt": {
            "type": "integer",
            "minimum": 0,
            "description": "Unix milliseconds"
          }
        },
        "required": [
          "path",
          "size",
          "uploadedAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "buildId",
    "url",
    "createdAt",
    "fileCount",
    "totalBytes",
    "files"
  ],
  "additionalProperties": false
}
Metrics
{
  "type": "object",
  "properties": {
    "impressions": {
      "type": "integer",
      "minimum": 0
    },
    "cardClicks": {
      "type": "integer",
      "minimum": 0
    },
    "pageViews": {
      "type": "integer",
      "minimum": 0
    },
    "playStarts": {
      "type": "integer",
      "minimum": 0
    },
    "iframeLoads": {
      "type": "integer",
      "minimum": 0
    },
    "iframeErrors": {
      "type": "integer",
      "minimum": 0
    },
    "activeSeconds": {
      "type": "integer",
      "minimum": 0
    },
    "engagedSessions": {
      "type": "integer",
      "minimum": 0
    },
    "players": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "impressions",
    "cardClicks",
    "pageViews",
    "playStarts",
    "iframeLoads",
    "iframeErrors",
    "activeSeconds",
    "engagedSessions",
    "players"
  ],
  "additionalProperties": false
}
PlayTime
{
  "type": "object",
  "properties": {
    "engagedSessions": {
      "type": "integer",
      "minimum": 0
    },
    "players": {
      "type": "integer",
      "minimum": 0
    },
    "medianMinutes": {
      "type": "number",
      "minimum": 0
    },
    "p75Minutes": {
      "type": "number",
      "minimum": 0
    },
    "minutesPerPlayer": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "description": "Mean minutes per player with the top 2% of players dropped."
    }
  },
  "required": [
    "engagedSessions",
    "players",
    "medianMinutes",
    "p75Minutes",
    "minutesPerPlayer"
  ],
  "additionalProperties": false
}
DailyMetrics
{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "impressions": {
      "type": "integer",
      "minimum": 0
    },
    "cardClicks": {
      "type": "integer",
      "minimum": 0
    },
    "pageViews": {
      "type": "integer",
      "minimum": 0
    },
    "playStarts": {
      "type": "integer",
      "minimum": 0
    },
    "iframeLoads": {
      "type": "integer",
      "minimum": 0
    },
    "iframeErrors": {
      "type": "integer",
      "minimum": 0
    },
    "activeSeconds": {
      "type": "integer",
      "minimum": 0
    },
    "engagedSessions": {
      "type": "integer",
      "minimum": 0
    },
    "players": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "date",
    "impressions",
    "cardClicks",
    "pageViews",
    "playStarts",
    "iframeLoads",
    "iframeErrors",
    "activeSeconds",
    "engagedSessions",
    "players"
  ],
  "additionalProperties": false
}