YouGame Upload API

The Upload API from YouGame, for upload.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

POST /api/upload/start Open an upload using the same limits as the website: 5 GB, up to 512 MB per… #
PUT /api/upload/file Stream one declared file. Repeat for every file, then completeUpload #
POST /api/upload/file/parts Open a declared file over 100 MB for upload in parts #
PUT /api/upload/file/parts Stream one part of a file opened with openFileParts, in any order. #
DELETE /api/upload/file/parts Drop a file's unfinished parts (the upload gave up on it). Body { id, path } #
POST /api/upload/file/parts/complete Join a file's parts, check its size against the one declared at start, and… #
POST /api/upload/complete Verify every uploaded file and return the static check report before preparing… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/yougame-co:yougame-co-upload-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

yougame-co-upload-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouGame Upload API
  version: 1.1.0
  description: 'YouGame hosts browser games: a creator, or their coding agent on their behalf, uploads a static build and it is live at https://yougame.co. Read the publish guide before making a game YouGame-ready, read the SDK reference for leaderboards, phone support, and multiplayer, and run checkBuild on the finished folder until the verdict is "ready". With the creator''s API key the agent does the rest on their behalf: it stages the build (startUpload, uploadFile, completeUpload), fills in the whole listing and publishes it (publishGame, creator_approved true: a creator who asked the agent to publish has approved it), and later ships new versions (POST /api/agent/update, in the publish guide). For a creator who wants to look first, prepareSubmission saves the listing and returns a review link where they press Publish. Only without a key, as a fallback, the creator uploads the zip at https://yougame.co/upload.'
servers:
- url: https://yougame.co
tags:
- name: Upload
paths:
  /api/upload/start:
    post:
      operationId: startUpload
      summary: 'Open an upload using the same limits as the website: 5 GB, up to 512 MB per…'
      description: 'Prepare paths locally (https://yougame.co/upload-build.mjs does this). Declare every file''s exact byte size; total may not exceed 5368709120 bytes. Bearer API keys and MCP upload tokens work. Upload each file, then call completeUpload. A build needs index.html at the top level. A ROM mod''s upload is its one .ips/.ups/.bps/.xdelta file and nothing else, a package with no page; a cosmetic''s package (any files, no page) is declared with package: true.'
      x-openai-isConsequential: false
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - files
              properties:
                files:
                  type: array
                  minItems: 1
                  maxItems: 5000
                  items:
                    type: object
                    required:
                    - path
                    - size
                    properties:
                      path:
                        type: string
                      size:
                        type: integer
                        minimum: 0
                        maximum: 536870912
                package:
                  type: boolean
                  description: 'True for a package with no index.html: a cosmetic''s files, or a ROM mod''s one patch file (which needs no flag).'
      responses:
        '200':
          description: uploadId and entryUrl for the staged build.
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploadId:
                    type: string
                  entryUrl:
                    type: string
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '429':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
  /api/upload/file:
    put:
      operationId: uploadFile
      summary: Stream one declared file. Repeat for every file, then completeUpload
      description: Send the raw bytes with Content-Length exactly matching the size declared at start. Up to 100 MB in one PUT; a larger file (up to 512 MB) goes up in parts through openFileParts, uploadFilePart and completeFileParts. Retry failed PUTs with the same upload id. Completed agent builds cannot be rewritten.
      x-openai-isConsequential: false
      security:
      - apiKey: []
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: path
        in: query
        required: true
        schema:
          type: string
      - name: Content-Length
        in: header
        required: true
        schema:
          type: integer
          minimum: 0
          maximum: 104857600
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: File stored.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '409':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '411':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '413':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
  /api/upload/file/parts:
    post:
      operationId: openFileParts
      summary: Open a declared file over 100 MB for upload in parts
      description: 'Body { id, path }. Answers { upload, partBytes, parts }: send parts 1 to parts, each exactly partBytes (67108864) except the last, which is the rest. Opening again drops the earlier parts. Opening is limited per uploader per hour (429 past it).'
      x-openai-isConsequential: false
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - path
              properties:
                id:
                  type: string
                path:
                  type: string
      responses:
        '200':
          description: upload (the multipart id), partBytes and parts.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '409':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '413':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '429':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
    put:
      operationId: uploadFilePart
      summary: Stream one part of a file opened with openFileParts, in any order.
      x-openai-isConsequential: false
      security:
      - apiKey: []
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: path
        in: query
        required: true
        schema:
          type: string
      - name: upload
        in: query
        required: true
        schema:
          type: string
      - name: part
        in: query
        required: true
        schema:
          type: integer
          minimum: 1
      - name: Content-Length
        in: header
        required: true
        schema:
          type: integer
          minimum: 1
          maximum: 67108864
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: partNumber and etag, for completeFileParts.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '409':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '411':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '413':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
    delete:
      operationId: dropFileParts
      summary: Drop a file's unfinished parts (the upload gave up on it). Body { id, path }
      x-openai-isConsequential: false
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - path
              properties:
                id:
                  type: string
                path:
                  type: string
      responses:
        '200':
          description: Dropped, or nothing was open.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '409':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '503':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
  /api/upload/file/parts/complete:
    post:
      operationId: completeFileParts
      summary: Join a file's parts, check its size against the one declared at start, and…
      x-openai-isConsequential: false
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - path
              - upload
              - parts
              properties:
                id:
                  type: string
                path:
                  type: string
                upload:
                  type: string
                parts:
                  type: array
                  items:
                    type: object
                    required:
                    - partNumber
                    - etag
                    properties:
                      partNumber:
                        type: integer
                      etag:
                        type: string
      responses:
        '200':
          description: The file is stored.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '409':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
  /api/upload/complete:
    post:
      operationId: completeUpload
      summary: Verify every uploaded file and return the static check report before preparing…
      x-openai-isConsequential: false
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - uploadId
              properties:
                uploadId:
                  type: string
                platform:
                  type: string
                  enum:
                  - web
                  - desktop_app
                  description: 'web (default): plays in the browser. desktop_app: native build only, uploaded after publishing (native_upload_token in the MCP, publish guide "Desktop builds"). Forces mobile false. Never ship a web page telling players to download the app.'
                kind:
                  type: string
                baseRuntime:
                  type: object
                base_game:
                  type: object
                  properties:
                    runtime:
                      type: object
      responses:
        '200':
          description: uploadId, testUrl, bytes, files, verdict, report, features, checks, validationScope and runtimeVerification. Fix a broken verdict and upload a new build.
        '400':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '401':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '403':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: What went wrong.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      tags:
      - Upload
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: The creator's API key (yg_…), made at /account under Coding agents.