{
  "openapi": "3.1.0",
  "info": {
    "title": "Nimble Fox API",
    "version": "1.0.0",
    "summary": "Read the public games and game jams, and create, upload and release games with the creator API v1.",
    "description": "The public read APIs need no key. The creator API v1, under /api/v1, needs an OAuth 2.1 access token (see /auth.md); its refusals are the CreatorError object, catalogued at /docs/agents/errors. Every answer is JSON. Every game plays in a web browser. A game's page is https://nimblefox.ai/games/{id}, which redirects to its short address. To start a new game with an idea, send people to https://nimblefox.ai/create?idea={the idea, URL-encoded}: the Create page opens with the idea written in, and nothing starts until they press Create game. Answers to requests without cookies may be cached for a minute: a listing is the same for everyone, wherever they are.",
    "contact": {
      "email": "support@nimblefox.ai",
      "url": "https://nimblefox.ai/about"
    }
  },
  "servers": [
    {
      "url": "https://nimblefox.ai"
    }
  ],
  "paths": {
    "/api/public-games": {
      "get": {
        "operationId": "listPublicGames",
        "summary": "List or search public games",
        "description": "The newest public games first, or in another order. With order=popular, 12 of the most played and best rated games at random, and the other parameters are ignored. With like, the public games most like that game.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Words to find in a game's title, description, tags or its creator's username.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "tag",
            "in": "query",
            "description": "Only games with any of these tags, such as a genre: Cozy, Puzzle, Action, Racing, Adventure, Arcade, Multiplayer, or Game Jam Game. Repeat it for more tags.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "maxItems": 20,
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "new: the newest first. trending: the most played lately first. fresh: the feed's order, the games listed in the last 30 days with fewer than 10 plays first, then the others, each the newest first, games on sale left out; off on production for now, where it answers 400 as an unknown order.",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "trending",
                "fresh",
                "popular"
              ],
              "default": "new"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "With order=fresh, mobile puts the games made for phones first, then those that name no devices, then the others; not with tag. Other orders ignore it, except on production, where it is off for now with the feed and answers 400 as an unknown device, whatever the order.",
            "schema": {
              "type": "string",
              "enum": [
                "mobile"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60,
              "default": 60
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Where a later page starts: the X-Next-Offset header of the previous answer.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            }
          },
          {
            "name": "like",
            "in": "query",
            "description": "A game's ID: the public games most like it.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The games.",
            "headers": {
              "X-Next-Offset": {
                "description": "Present while more games follow: the offset of the next page.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Game"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/explore": {
      "get": {
        "operationId": "exploreGames",
        "summary": "The Explore page's featured games and rows",
        "parameters": [
          {
            "name": "tag",
            "in": "query",
            "description": "Only games with any of these tags. Repeat it for more tags.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "maxItems": 20,
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Two featured games, then rows such as Trending now, Top rated and New releases, each game in one place only.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "featured",
                    "rows"
                  ],
                  "properties": {
                    "featured": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Game"
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "title",
                          "games"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "enum": [
                              "jam",
                              "trending",
                              "similar",
                              "rated",
                              "new"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "games": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/Game"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/jams": {
      "get": {
        "operationId": "listGameJams",
        "summary": "Nimble Fox's game jams",
        "description": "Each jam's page is https://nimblefox.ai/events/{id}, unless it ran on another site (external).",
        "responses": {
          "200": {
            "description": "Jams still to come or going on, and past ones.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "current",
                    "past"
                  ],
                  "properties": {
                    "current": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Jam"
                      }
                    },
                    "past": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Jam"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agent-accounts/challenge": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getAgentAccountChallenge",
        "summary": "A proof-of-work challenge for a new agent account",
        "description": "Single-use, for 10 minutes. Find a nonce of 1–64 letters, digits, _ or - such that SHA-256 of the challenge's UTF-8 bytes followed by the nonce's starts with `difficulty` zero bits. An address past one of `limits` is refused here, before any work.",
        "tags": [
          "Creator API v1"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "challenge",
                    "difficulty",
                    "expiresAt",
                    "limits"
                  ],
                  "properties": {
                    "challenge": {
                      "type": "string"
                    },
                    "difficulty": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "limits": {
                      "type": "object",
                      "description": "New accounts a day from one address and from its network (an IPv4 /24, an IPv6 /48), and an hour from everyone; and the sizes the account will take (versionBytes, storedBytes).",
                      "properties": {
                        "perAddressDay": {
                          "type": "integer"
                        },
                        "perNetworkDay": {
                          "type": "integer"
                        },
                        "perHour": {
                          "type": "integer"
                        },
                        "versionBytes": {
                          "type": "integer",
                          "description": "The largest version the account takes, in bytes."
                        },
                        "storedBytes": {
                          "type": "integer",
                          "description": "The bytes its versions may hold in all."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "challenge": "Jx3q0iTQe1rV8mKc5L2nA7bWdY4sHfGu9oEzPpRtXkM",
                  "difficulty": 20,
                  "expiresAt": "2026-11-27T12:00:00.000Z",
                  "limits": {
                    "perAddressDay": 3,
                    "perNetworkDay": 20,
                    "perHour": 200,
                    "versionBytes": 50000000,
                    "storedBytes": 150000000
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE"
        ]
      }
    },
    "/api/v1/agent-accounts": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "post": {
        "operationId": "createAgentAccount",
        "summary": "Make an unclaimed account for an agent with no person at hand to approve a sign-in",
        "description": "Its person claims it later at `claim.url`, which moves its games into their account; the refresh token then keeps working there, on the games the account made and new ones it makes, and nothing else of theirs. Until then: at most 3 uploaded games, 50,000,000 bytes a version and 150,000,000 bytes in all, 10 uploads a day, games private or unlisted. Its games stop playing for others at offlineAt (7 days) and it is deleted at deleteAt (30 days) unless claimed. A retry with the same Idempotency-Key and body from the same address answers the same account, with a fresh pair of tokens.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "client",
                  "challenge",
                  "nonce"
                ],
                "additionalProperties": false,
                "properties": {
                  "client": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "The agent and its tool; nothing personal."
                  },
                  "agent": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "The agent's own name, where `client` names only the tool that calls (the Nimble Fox CLI sends `client: \"nimblefox-cli/<version>\"` and the agent's name here). The claim page shows this name."
                  },
                  "challenge": {
                    "type": "string"
                  },
                  "nonce": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  }
                }
              },
              "example": {
                "client": "Claude Code (Berry Fox)",
                "challenge": "Jx3q0iTQe1rV8mKc5L2nA7bWdY4sHfGu9oEzPpRtXkM",
                "nonce": "1f9k2"
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "account",
                    "access_token",
                    "refresh_token",
                    "token_type",
                    "expires_in",
                    "scope",
                    "claim"
                  ],
                  "properties": {
                    "account": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "claimed": {
                          "const": false
                        },
                        "offlineAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "deleteAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "access_token": {
                      "type": "string"
                    },
                    "refresh_token": {
                      "type": "string",
                      "description": "Refreshed at the token endpoint with client_id nimblefox-cli."
                    },
                    "token_type": {
                      "const": "Bearer"
                    },
                    "expires_in": {
                      "type": "integer"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "claim": {
                      "$ref": "#/components/schemas/CreatorClaim"
                    }
                  }
                },
                "example": {
                  "account": {
                    "id": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                    "claimed": false,
                    "offlineAt": "2026-12-04T12:00:00.000Z",
                    "deleteAt": "2026-12-27T12:00:00.000Z"
                  },
                  "access_token": "nfa_…",
                  "refresh_token": "nfr_…",
                  "token_type": "Bearer",
                  "expires_in": 3600,
                  "scope": "games offline_access",
                  "claim": {
                    "url": "https://nimblefox.ai/claim/BCDFG-HJKLM",
                    "code": "BCDFG-HJKLM",
                    "expiresAt": "2026-12-27T12:00:00.000Z"
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "CHALLENGE_INVALID",
          "RATE_LIMITED",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "BODY_TOO_LARGE",
          "BODY_TIMEOUT",
          "SERVICE_UNAVAILABLE"
        ]
      }
    },
    "/api/v1/me": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getMe",
        "summary": "The account the token acts for",
        "description": "An unclaimed agent account (kind unclaimed) adds when its games go offline, when it is deleted and its claim link; from 5 days on, every answer to it adds `warnings`, with CLAIM_SOON.",
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "enum": [
                        "member",
                        "unclaimed"
                      ]
                    },
                    "claimed": {
                      "type": "boolean"
                    },
                    "plan": {
                      "enum": [
                        "free",
                        "pro"
                      ],
                      "description": "Members only."
                    },
                    "offlineAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Unclaimed only."
                    },
                    "deleteAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Unclaimed only."
                    },
                    "claim": {
                      "$ref": "#/components/schemas/CreatorClaim"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "client": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "games": {
                      "enum": [
                        "made",
                        "all"
                      ],
                      "description": "Which games the token reaches: only the games its grant made, or all the member's."
                    },
                    "agent": {
                      "type": "boolean",
                      "enum": [
                        true
                      ],
                      "description": "Present on an agent account's grant, claimed or not: it reaches only the games it made."
                    },
                    "agentName": {
                      "type": "string",
                      "description": "An agent account's own name for itself, where it gave one."
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreatorWarning"
                      }
                    }
                  }
                },
                "example": {
                  "id": "8e3b…",
                  "name": "maker",
                  "kind": "member",
                  "claimed": true,
                  "plan": "free",
                  "scopes": [
                    "games",
                    "offline_access"
                  ],
                  "client": {
                    "name": "Nimble Fox CLI"
                  },
                  "games": "made",
                  "agentName": "Claude Code (Berry Fox)"
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE"
        ]
      }
    },
    "/api/v1/limits": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getLimits",
        "summary": "Every limit the API enforces, and this account's use of each",
        "description": "storedBytes is the bytes the account's uploaded games' versions and uploads under way hold in all, which LIMIT_STORAGE refuses past, and uploadBytesPerDay the bytes its uploads declared today, which LIMIT_UPLOAD_BYTES refuses past; a max of null is none. An unclaimed agent account adds uploadsPerDay and agentAccounts. A claimed agent account's sign-in adds agentGames: the person's uploaded games it holds, those it made, and the most it may (LIMIT_UPLOADED_GAMES past them).",
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "uploadedGames": {
                    "used": 1,
                    "max": 20
                  },
                  "publicGames": {
                    "used": 0,
                    "max": 2
                  },
                  "uploadsPerHour": {
                    "used": 1,
                    "max": 5,
                    "resetsAt": "2026-11-27T12:00:00.000Z",
                    "addressUsed": 1,
                    "addressMax": 10
                  },
                  "versionBytes": {
                    "html5": 134217728,
                    "unity": 500000000
                  },
                  "versionFiles": {
                    "html5": 2048,
                    "unity": 1000
                  },
                  "fileBytes": {
                    "max": 33554432,
                    "entryMax": 4194304
                  },
                  "html5": {
                    "allowed": true
                  },
                  "callsPerMinute": 120,
                  "callsPerMinuteIncludes": [
                    "creator-api",
                    "mcp-platform-tools"
                  ],
                  "memberCallsPerMinute": 600,
                  "bodyBytes": 600000,
                  "partSize": 16777216,
                  "partsAtOnce": 2,
                  "waitSeconds": 40,
                  "waitsPerGrant": 4,
                  "idempotencyHours": 24,
                  "storedBytes": {
                    "used": 48210,
                    "max": 5000000000
                  },
                  "uploadBytesPerDay": {
                    "used": 49460,
                    "max": 5000000000,
                    "resetsAt": "2026-11-27T12:00:00.000Z"
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE"
        ]
      }
    },
    "/api/v1/games": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "listGames",
        "summary": "The account's games, newest first",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `next` of the page before.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "games": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreatorGame"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "example": {
                  "games": [
                    {
                      "id": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                      "title": "Lantern Night",
                      "runtime": "html5",
                      "visibility": "private",
                      "page": "https://nimblefox.ai/g/0b7f5a523c/edit",
                      "play": "https://nimblefox.ai/g/0b7f5a523c",
                      "qr": null,
                      "createdAt": "2026-11-27T12:00:00.000Z",
                      "currentVersion": null,
                      "publishedVersion": null,
                      "upload": {
                        "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                        "job": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81"
                      }
                    }
                  ],
                  "next": null
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "BAD_REQUEST"
        ]
      },
      "post": {
        "operationId": "createGame",
        "summary": "Start a game with its first upload",
        "description": "Names every file of the build; the parts follow with PUT. The game is live once its job is. A new game is private when its owner's plan says so.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title",
                  "runtime",
                  "files"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "runtime": {
                    "enum": [
                      "html5",
                      "unity"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "orientation": {
                    "enum": [
                      "both",
                      "landscape",
                      "portrait"
                    ],
                    "description": "HTML5 only."
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreatorFile"
                    }
                  }
                }
              },
              "example": {
                "title": "Lantern Night",
                "runtime": "html5",
                "files": [
                  {
                    "path": "Build/Web/index.html",
                    "size": 1250
                  },
                  {
                    "path": "Build/Web/main.js",
                    "size": 48210
                  }
                ]
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "game": {
                      "$ref": "#/components/schemas/CreatorGame"
                    },
                    "upload": {
                      "$ref": "#/components/schemas/CreatorUpload"
                    }
                  }
                },
                "example": {
                  "game": {
                    "id": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                    "title": "Lantern Night",
                    "runtime": "html5",
                    "visibility": "private",
                    "page": "https://nimblefox.ai/g/0b7f5a523c/edit",
                    "play": "https://nimblefox.ai/g/0b7f5a523c",
                    "qr": null,
                    "createdAt": "2026-11-27T12:00:00.000Z",
                    "currentVersion": null,
                    "publishedVersion": null,
                    "upload": {
                      "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                      "job": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81"
                    }
                  },
                  "upload": {
                    "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "job": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "partSize": 16777216,
                    "partUrl": "https://nimblefox.ai/api/v1/uploads/5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81/files/{index}/parts/{part}",
                    "expiresAt": "2026-11-27T14:00:00.000Z",
                    "files": [
                      {
                        "index": 0,
                        "path": "Build/Web/index.html",
                        "size": 1250,
                        "parts": 1
                      },
                      {
                        "index": 1,
                        "path": "Build/Web/main.js",
                        "size": 48210,
                        "parts": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "BODY_TOO_LARGE",
          "BODY_TIMEOUT",
          "LIMIT_UPLOADED_GAMES",
          "LIMIT_VERSION_BYTES",
          "LIMIT_STORAGE",
          "LIMIT_UPLOAD_BYTES",
          "NOT_CLAIMED",
          "BUNDLE_FILE_TYPE",
          "BUNDLE_PATH",
          "BUNDLE_TOO_LARGE",
          "BUNDLE_TOO_MANY_FILES",
          "BUNDLE_LAYOUT"
        ]
      }
    },
    "/api/v1/games/{id}": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getGame",
        "summary": "One of the account's games",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorGame"
                },
                "example": {
                  "id": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                  "title": "Lantern Night",
                  "runtime": "html5",
                  "visibility": "private",
                  "page": "https://nimblefox.ai/g/0b7f5a523c/edit",
                  "play": "https://nimblefox.ai/g/0b7f5a523c",
                  "qr": null,
                  "createdAt": "2026-11-27T12:00:00.000Z",
                  "currentVersion": null,
                  "publishedVersion": null,
                  "upload": {
                    "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "job": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81"
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "GAME_NOT_FOUND"
        ]
      },
      "patch": {
        "operationId": "updateGame",
        "summary": "Change its title, description or who can play it",
        "description": "Making a game public needs the publish scope, from every grant (SCOPE_MISSING naming it otherwise). An HTML5 game can't be made public yet (PUBLIC_NEEDS_REVIEW); unlisted shares it by its link. A claimed agent account's grant makes its games public only if the member allowed it at the claim, or by opening the claim link again (NEEDS_MEMBER_PUBLISH otherwise).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "minProperties": 1,
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "visibility": {
                    "enum": [
                      "private",
                      "unlisted",
                      "public"
                    ]
                  }
                }
              },
              "example": {
                "title": "Lantern Night",
                "visibility": "unlisted"
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorGame"
                },
                "example": {
                  "id": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                  "title": "Lantern Night",
                  "runtime": "html5",
                  "visibility": "unlisted",
                  "page": "https://nimblefox.ai/g/0b7f5a523c/edit",
                  "play": "https://nimblefox.ai/g/0b7f5a523c",
                  "qr": "https://nimblefox.ai/g/0b7f5a523c/qr.svg",
                  "createdAt": "2026-11-27T12:00:00.000Z",
                  "currentVersion": null,
                  "publishedVersion": null,
                  "upload": null
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "BODY_TOO_LARGE",
          "BODY_TIMEOUT",
          "GAME_NOT_FOUND",
          "LIMIT_PUBLIC_GAMES",
          "PUBLIC_NEEDS_REVIEW",
          "UNLISTED_NEEDS_PRO",
          "NOT_CLAIMED",
          "NEEDS_MEMBER_PUBLISH",
          "GAME_HIDDEN",
          "GAME_SOLD"
        ]
      }
    },
    "/api/v1/games/{id}/versions": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "post": {
        "operationId": "createVersion",
        "summary": "Start a new build of an uploaded game",
        "description": "Its current version keeps playing until the new one is live.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "files"
                ],
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CreatorFile"
                    }
                  },
                  "orientation": {
                    "enum": [
                      "both",
                      "landscape",
                      "portrait"
                    ],
                    "description": "HTML5 only."
                  }
                }
              },
              "example": {
                "files": [
                  {
                    "path": "Build/Web/index.html",
                    "size": 1250
                  },
                  {
                    "path": "Build/Web/main.js",
                    "size": 48210
                  }
                ]
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "upload": {
                      "$ref": "#/components/schemas/CreatorUpload"
                    }
                  }
                },
                "example": {
                  "upload": {
                    "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "job": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "partSize": 16777216,
                    "partUrl": "https://nimblefox.ai/api/v1/uploads/5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81/files/{index}/parts/{part}",
                    "expiresAt": "2026-11-27T14:00:00.000Z",
                    "files": [
                      {
                        "index": 0,
                        "path": "Build/Web/index.html",
                        "size": 1250,
                        "parts": 1
                      },
                      {
                        "index": 1,
                        "path": "Build/Web/main.js",
                        "size": 48210,
                        "parts": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "BODY_TOO_LARGE",
          "BODY_TIMEOUT",
          "GAME_NOT_FOUND",
          "UPLOAD_IN_PROGRESS",
          "NOT_AN_UPLOADED_GAME",
          "NO_VERSION",
          "LIMIT_VERSION_BYTES",
          "LIMIT_STORAGE",
          "LIMIT_UPLOAD_BYTES",
          "NOT_CLAIMED",
          "BUNDLE_FILE_TYPE",
          "BUNDLE_PATH",
          "BUNDLE_TOO_LARGE",
          "BUNDLE_TOO_MANY_FILES",
          "BUNDLE_LAYOUT"
        ]
      }
    },
    "/api/v1/games/{id}/versions/{version}/checks": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getVersionChecks",
        "summary": "A version's deploy checks, and who it is served to",
        "description": "Every HTML5 version uploaded while the account may use the agent platform is checked before it goes live: format, other hosts it loads, mining code, phishing forms. A version that fails the miner or phishing check is served only to its owner (servedTo: owner); every check that doesn't pass carries its finding as an error object. A version whose checks couldn't finish is pending: its owner plays it, other players get 403 CHECK_PENDING, and Nimble Fox checks it again by itself within minutes, so retry this address later. A version nobody checked is unchecked. Neither has checks.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The version's ID, the `version` of its upload's job.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "game": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "result": {
                      "enum": [
                        "pass",
                        "warn",
                        "fail",
                        "pending",
                        "unchecked"
                      ]
                    },
                    "servedTo": {
                      "enum": [
                        "everyone",
                        "owner"
                      ]
                    },
                    "passed": {
                      "type": "object",
                      "description": "Present when a person at Nimble Fox released the version's hold: when.",
                      "properties": {
                        "at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "checkedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "rules": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "result"
                        ],
                        "properties": {
                          "id": {
                            "enum": [
                              "format",
                              "external",
                              "miner",
                              "phishing",
                              "cpu"
                            ]
                          },
                          "result": {
                            "enum": [
                              "pass",
                              "warn",
                              "fail",
                              "skipped"
                            ]
                          },
                          "note": {
                            "type": "string"
                          },
                          "error": {
                            "type": "object",
                            "description": "The finding, as an error object: code, message, fix, docs, retryable, and where, hosts or detail where they apply."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "game": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                  "version": "4f6c2a1e-6d0b-4c4e-9d8a-2f1b7c3e5a90",
                  "result": "warn",
                  "servedTo": "everyone",
                  "checkedAt": "2026-11-27T12:00:00.000Z",
                  "rules": "a2b.1+0000000000000000000000000000000000000000000000000000000000000000",
                  "checks": [
                    {
                      "id": "format",
                      "result": "pass"
                    },
                    {
                      "id": "external",
                      "result": "warn",
                      "error": {
                        "code": "CHECK_EXTERNAL_HOSTS",
                        "message": "This version loads or connects to other websites, which games here can't reach, so those parts don't work for players.",
                        "fix": "Bundle the files from the hosts in `hosts` with the game, or install the libraries with npm and bundle them, then upload a new version. The version is served meanwhile.",
                        "docs": "https://nimblefox.ai/docs/agents/errors.md#check_external_hosts",
                        "retryable": false,
                        "hosts": [
                          "cdn.jsdelivr.net"
                        ]
                      }
                    },
                    {
                      "id": "miner",
                      "result": "pass"
                    },
                    {
                      "id": "phishing",
                      "result": "pass"
                    },
                    {
                      "id": "cpu",
                      "result": "skipped",
                      "note": "Not run: a headless CPU probe needs a browser and an isolated sandbox for every build inside the game worker, infrastructure that Nimble Fox doesn't have yet."
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "GAME_NOT_FOUND",
          "VERSION_NOT_FOUND"
        ]
      }
    },
    "/api/v1/games/{id}/release": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "post": {
        "operationId": "releaseGame",
        "summary": "Publish the newest version, which everyone else then plays",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The game's ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 20,
                    "description": "Letters, numbers, dots and dashes, such as 1.2."
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "What's new, as Markdown."
                  }
                }
              },
              "example": {
                "label": "1.0",
                "notes": "First light."
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "release": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "notes": {
                          "type": "string"
                        },
                        "publishedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "release": {
                    "version": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                    "label": "1.0",
                    "notes": "First light.",
                    "publishedAt": "2026-11-27T12:00:00.000Z"
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "BODY_TOO_LARGE",
          "BODY_TIMEOUT",
          "GAME_NOT_FOUND",
          "NO_VERSION"
        ]
      }
    },
    "/api/v1/uploads/{uploadId}/files/{index}/parts/{part}": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "put": {
        "operationId": "putPart",
        "summary": "Send one part of a file",
        "description": "Parts are 16777216 bytes but a file's last; a part already stored is answered at once, unread.",
        "parameters": [
          {
            "name": "uploadId",
            "in": "path",
            "required": true,
            "description": "The upload's ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "index",
            "in": "path",
            "required": true,
            "description": "The file's index.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "part",
            "in": "path",
            "required": true,
            "description": "The part, from 0.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "stored": {
                      "const": true
                    },
                    "bytes": {
                      "type": "object",
                      "properties": {
                        "stored": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "stored": true,
                  "bytes": {
                    "stored": 1250,
                    "total": 49460
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "UPLOAD_NOT_FOUND",
          "PART_SIZE",
          "PART_TIMEOUT",
          "BUSY",
          "UPLOAD_EXPIRED",
          "UPLOAD_CANCELLED",
          "STORAGE_FAILED",
          "PART_MISMATCH",
          "GAME_DELETED",
          "UPLOAD_FAILED"
        ]
      }
    },
    "/api/v1/jobs/{id}": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "get": {
        "operationId": "getJob",
        "summary": "An upload's progress",
        "description": "If a new game's first upload fails and the worker removes its draft, the initiating grant and the owner's full grants can read the job's failed status and error.fix until the job is purged.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The upload's job.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "description": "Hold the answer until the status changes or these seconds pass.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 40
            }
          }
        ],
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorJob"
                },
                "example": {
                  "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                  "kind": "upload",
                  "status": "live",
                  "bytes": {
                    "stored": 49460,
                    "total": 49460
                  },
                  "game": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                  "version": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81"
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "JOB_NOT_FOUND",
          "BAD_REQUEST"
        ]
      },
      "delete": {
        "operationId": "cancelJob",
        "summary": "Cancel an upload under way",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The upload's job.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorJob"
                },
                "example": {
                  "id": "5d2c9e14-8a3b-4f6e-b1d7-9c0e2f4a6b81",
                  "kind": "upload",
                  "status": "failed",
                  "bytes": {
                    "stored": 1250,
                    "total": 49460
                  },
                  "game": "0b7f5a52-3c1e-4d7a-9f4e-2a6c8d1e5f30",
                  "error": {
                    "code": "UPLOAD_CANCELLED"
                  }
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "JOB_NOT_FOUND",
          "JOB_FINISHED",
          "UPLOAD_PROCESSING"
        ]
      }
    },
    "/api/v1/feedback": {
      "servers": [
        {
          "url": "https://nimblefox.ai"
        }
      ],
      "post": {
        "operationId": "sendFeedback",
        "summary": "Report a bug, a docs mistake, a missing feature or a security issue to the Nimble Fox team",
        "description": "For an error you didn't expect, docs that don't match what the API does, a feature you need, or a security issue (kind security, which only Nimble Fox's operators read). Include what you did, what you expected and what happened, and the requestId or version where you have one. Never include secrets or personal data: a report holding an obvious token, key or password is refused (FEEDBACK_SECRET) and not kept. Every field is plain text without control or bidirectional characters; only the multi-line fields take line breaks and tabs. The answer is the report's id alone. Each token sends at most 10 reports an hour, each account 20 a day, and each address 30 a day; /api/v1/limits shows them in feedback.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8–64 letters, digits, “_” or “-”, new for each call and the same for its retries. A repeat within 24 hours gets the first answer.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "kind",
                  "title",
                  "details"
                ],
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "bug",
                      "feedback",
                      "docs",
                      "feature_request",
                      "security"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "One line."
                  },
                  "details": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000
                  },
                  "steps": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "What you did, in order."
                  },
                  "expected": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "actual": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "gameId": {
                    "type": "string",
                    "description": "The game it happened with."
                  },
                  "version": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "The game's version, one line."
                  },
                  "requestId": {
                    "type": "string",
                    "maxLength": 128,
                    "description": "The failing call's request ID, one line."
                  },
                  "clientVersion": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Your CLI, MCP client or SDK and its version, one line."
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "The agent and its tool, one line."
                  },
                  "os": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "One line."
                  },
                  "logs": {
                    "type": "string",
                    "maxLength": 16000,
                    "description": "The lines around the failure, without secrets."
                  }
                }
              },
              "example": {
                "kind": "bug",
                "title": "One line that says what went wrong",
                "details": "What you were doing, and what happened instead.",
                "steps": "1. The call or command\n2. The next one",
                "expected": "What the docs say should happen.",
                "actual": "What happened, with the error's code.",
                "requestId": "the failing call's request ID"
              }
            }
          }
        },
        "tags": [
          "Creator API v1"
        ],
        "security": [
          {
            "oauth2": [
              "games"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "8f14e45f-ceea-4e67-9d1c-2a5b7c3e9f10"
                }
              }
            }
          },
          "default": {
            "description": "A refusal; see x-errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorError"
                }
              }
            }
          }
        },
        "x-errors": [
          "AUTH_REQUIRED",
          "AUTH_INVALID",
          "SCOPE_MISSING",
          "RATE_LIMITED",
          "SERVICE_UNAVAILABLE",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_MISMATCH",
          "BAD_REQUEST",
          "FEEDBACK_TOO_LARGE",
          "FEEDBACK_SECRET"
        ]
      }
    }
  },
  "components": {
    "responses": {
      "Error": {
        "description": "A parameter is wrong.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Game": {
        "type": "object",
        "required": [
          "id",
          "title",
          "listedAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Its page is https://nimblefox.ai/games/{id}."
          },
          "title": {
            "type": "string"
          },
          "creator": {
            "type": "string",
            "description": "The creator's username, or its developer's name once Nimble Fox has taken a game on sale over; absent for a game made without an account."
          },
          "listedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made public."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the version people play was published."
          },
          "playUrl": {
            "type": "string",
            "description": "Path of the game's player, relative to https://nimblefox.ai; absent for a game on sale, which plays only for those who bought it or were given it."
          },
          "sale": {
            "type": "object",
            "description": "A game on sale, bought once to play it on its page: its price, what a buyer pays, and whether its sales stopped. Whether it is sold where someone is, and whether its price holds VAT there, its page says.",
            "required": [
              "price"
            ],
            "properties": {
              "price": {
                "type": "object",
                "required": [
                  "amount",
                  "currency"
                ],
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "In cents."
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "eur"
                    ]
                  }
                }
              },
              "stopped": {
                "type": "boolean",
                "description": "It takes no new buyers."
              }
            }
          },
          "coverUrl": {
            "type": "string",
            "description": "Path of its cover image, relative to https://nimblefox.ai."
          },
          "previewUrl": {
            "type": "string",
            "description": "Path of its animated preview, relative to https://nimblefox.ai."
          },
          "rating": {
            "type": "object",
            "required": [
              "average",
              "count"
            ],
            "properties": {
              "average": {
                "type": "number",
                "minimum": 1,
                "maximum": 5
              },
              "count": {
                "type": "integer"
              }
            }
          },
          "plays": {
            "type": "integer"
          },
          "uploaded": {
            "type": "boolean",
            "description": "Made outside Nimble Fox and uploaded by its creator."
          },
          "jamTag": {
            "type": "object",
            "description": "The game jam it was entered in.",
            "required": [
              "jamId",
              "title"
            ],
            "properties": {
              "jamId": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "prize": {
                "type": "string"
              }
            }
          },
          "genre": {
            "type": "string",
            "enum": [
              "Cozy",
              "Puzzle",
              "Action",
              "Racing",
              "Adventure",
              "Arcade",
              "Multiplayer"
            ],
            "description": "The first of its tags that is a genre."
          },
          "devices": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "pc",
                "console",
                "mobile"
              ]
            },
            "description": "The devices it is made for; absent when it names none."
          },
          "description": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "Jam": {
        "type": "object",
        "required": [
          "id",
          "title",
          "summary",
          "phase",
          "startsAt",
          "submissionsCloseAt",
          "votingClosesAt",
          "judgingClosesAt",
          "timeZone"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "phase": {
            "type": "string",
            "enum": [
              "upcoming",
              "building",
              "voting",
              "judging",
              "finished"
            ]
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "submissionsCloseAt": {
            "type": "string",
            "format": "date-time"
          },
          "votingClosesAt": {
            "type": "string",
            "format": "date-time"
          },
          "judgingClosesAt": {
            "type": "string",
            "format": "date-time"
          },
          "timeZone": {
            "type": "string"
          },
          "place": {
            "type": "string"
          },
          "maxTeam": {
            "type": "integer"
          },
          "prizesSummary": {
            "type": "string"
          },
          "bannerUrl": {
            "type": "string"
          },
          "external": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "site": {
                "type": "string"
              }
            }
          }
        }
      },
      "CreatorError": {
        "type": "object",
        "description": "Every refusal: a code from the catalogue at /docs/agents/errors.md, with what to do next. Each operation's x-errors lists the codes it can answer with, but for NOT_FOUND and METHOD_NOT_ALLOWED, which any address under /api/v1 can.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "fix",
              "docs",
              "retryable",
              "needsHuman"
            ],
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[A-Z0-9_]+$"
              },
              "message": {
                "type": "string"
              },
              "fix": {
                "type": "string"
              },
              "docs": {
                "type": "string",
                "format": "uri"
              },
              "retryable": {
                "type": "boolean"
              },
              "needsHuman": {
                "type": "boolean"
              },
              "action": {
                "type": "object",
                "description": "Only when needsHuman: the page for the member and a sentence to pass on.",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "says": {
                    "type": "string"
                  }
                }
              },
              "retryAfter": {
                "type": "integer",
                "description": "Seconds to wait; also in Retry-After."
              },
              "limit": {
                "type": "integer"
              },
              "used": {
                "type": "integer"
              },
              "resetsAt": {
                "type": "string",
                "format": "date-time"
              },
              "scope": {
                "type": "string",
                "description": "SCOPE_MISSING: the OAuth scope the call needs. RATE_LIMITED from the agent-account calls: the limit that refused, address, network or everyone; from an upload, account or address."
              },
              "signIn": {
                "enum": [
                  "device"
                ],
                "description": "RATE_LIMITED from the agent-account calls, only while the refusal offers it: signing in to a person's account with the device flow is the way on now. Absent, waiting is the only remedy."
              },
              "where": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string"
                  },
                  "field": {
                    "type": "string"
                  },
                  "line": {
                    "type": "integer"
                  }
                }
              },
              "detail": {
                "type": "string"
              }
            }
          }
        }
      },
      "CreatorGame": {
        "type": "object",
        "required": [
          "id",
          "title",
          "runtime",
          "visibility",
          "page",
          "play",
          "qr",
          "createdAt",
          "currentVersion",
          "publishedVersion"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "maxLength": 200
          },
          "runtime": {
            "enum": [
              "html5",
              "unity"
            ]
          },
          "visibility": {
            "enum": [
              "private",
              "unlisted",
              "public"
            ]
          },
          "page": {
            "type": "string",
            "format": "uri",
            "description": "The owner's build page."
          },
          "play": {
            "type": "string",
            "format": "uri",
            "description": "The game's page, which plays it."
          },
          "qr": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "An SVG QR code of play, for phones. Null while the game is private, when only its owner can open it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "currentVersion": {
            "type": [
              "string",
              "null"
            ],
            "description": "The newest version, which its owner plays."
          },
          "publishedVersion": {
            "type": [
              "string",
              "null"
            ],
            "description": "The version everyone else plays, once released."
          },
          "upload": {
            "type": [
              "object",
              "null"
            ],
            "description": "The upload under way, if any.",
            "properties": {
              "id": {
                "type": "string"
              },
              "job": {
                "type": "string"
              }
            }
          }
        }
      },
      "CreatorUpload": {
        "type": "object",
        "required": [
          "id",
          "job",
          "partSize",
          "partUrl",
          "expiresAt",
          "files"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "job": {
            "type": "string",
            "format": "uuid"
          },
          "partSize": {
            "type": "integer",
            "const": 16777216
          },
          "partUrl": {
            "type": "string",
            "description": "Every part's address, as a template: {index} is the file's index and {part} the part's number, from 0."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Every part arrives before it."
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "index",
                "path",
                "size",
                "parts"
              ],
              "properties": {
                "index": {
                  "type": "integer"
                },
                "path": {
                  "type": "string"
                },
                "size": {
                  "type": "integer"
                },
                "parts": {
                  "type": "integer",
                  "description": "PUT parts 0 to parts − 1."
                }
              }
            }
          }
        }
      },
      "CreatorClaim": {
        "type": "object",
        "description": "An unclaimed agent account's claim link, for its person: it lasts until the account is deleted.",
        "required": [
          "url",
          "code",
          "expiresAt"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "code": {
            "type": "string",
            "pattern": "^[BCDFGHJKLMNPQRSTVWXZ]{5}-[BCDFGHJKLMNPQRSTVWXZ]{5}$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CreatorWarning": {
        "type": "object",
        "description": "CLAIM_SOON: an unclaimed account's games stop playing for others at offlineAt unless its person claims it.",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "const": "CLAIM_SOON"
          },
          "offlineAt": {
            "type": "string",
            "format": "date-time"
          },
          "claim": {
            "$ref": "#/components/schemas/CreatorClaim"
          }
        }
      },
      "CreatorFile": {
        "type": "object",
        "required": [
          "path",
          "size"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "Under Build/Web/ for HTML5; Build/Build/ and Build/StreamingAssets/ for Unity."
          },
          "size": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "CreatorJob": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "bytes",
          "game"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "const": "upload"
          },
          "status": {
            "enum": [
              "uploading",
              "processing",
              "live",
              "failed"
            ]
          },
          "bytes": {
            "type": "object",
            "properties": {
              "stored": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              }
            }
          },
          "game": {
            "type": "string"
          },
          "version": {
            "type": "string",
            "description": "Once live: the version it published."
          },
          "error": {
            "$ref": "#/components/schemas/CreatorError/properties/error",
            "description": "Once failed: why."
          },
          "retryAfter": {
            "type": "integer",
            "description": "Only when ?wait was asked for but not held, past waitsPerGrant or the server's own cap: seconds before asking again."
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Nimble Fox's OAuth 2.1 server; /auth.md describes signing in.",
        "oauth2MetadataUrl": "https://nimblefox.ai/.well-known/oauth-authorization-server",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://nimblefox.ai/oauth/authorize",
            "tokenUrl": "https://nimblefox.ai/oauth/token",
            "refreshUrl": "https://nimblefox.ai/oauth/token",
            "scopes": {
              "games": "Create games, and upload to and change the games this grant made (DECISIONS L287).",
              "games:all": "With games: act on all the member's games, not only the ones this grant made.",
              "publish": "Make the member's games public.",
              "offline_access": "Stay connected with a refresh token."
            }
          }
        }
      }
    }
  }
}