> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patch.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Where a release is in its review: status, checks and findings

> With wait, it holds the answer while Patch is checking or reviewing the release, until something changes (up to 50 seconds), so an agent doesn't have to ask again and again.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{owner}/{slug}/releases/{version}/review
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /projects/{owner}/{slug}/releases/{version}/review:
    get:
      tags:
        - Review
      summary: 'Where a release is in its review: status, checks and findings'
      description: >-
        With wait, it holds the answer while Patch is checking or reviewing the
        release, until something changes (up to 50 seconds), so an agent doesn't
        have to ask again and again.
      parameters:
        - schema:
            type: string
            example: patch
          required: true
          name: owner
          in: path
        - schema:
            type: string
            example: demo-mod
          required: true
          name: slug
          in: path
        - schema:
            type: string
            example: 0.1.0
          required: true
          name: version
          in: path
        - schema:
            type:
              - integer
              - 'null'
            minimum: 0
            maximum: 50
            description: >-
              Seconds (up to 50) to wait for this to change while Patch is
              working on it. Answers at once when it's your turn or the
              person's.
          required: false
          description: >-
            Seconds (up to 50) to wait for this to change while Patch is working
            on it. Answers at once when it's your turn or the person's.
          name: wait
          in: query
      responses:
        '200':
          description: The review
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseReview'
        '308':
          description: Renamed; follow the Location header
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    ReleaseReview:
      type: object
      properties:
        project:
          type: string
        version:
          type: string
        status:
          type: string
          enum:
            - draft
            - checking
            - cloud_review
            - in_review
            - published
            - rejected
            - yanked
            - quarantined
          description: >-
            draft, then checking (file checks). A browser game then goes to
            cloud_review, then published. A mod goes to cloud_review, then
            in_review (a staff member), then published. Any step can end in
            rejected.
        next:
          type: string
          description: What happens next, in a sentence
        open_code:
          type:
            - string
            - 'null'
          description: >-
            Set while the release isn't public and its repo is open: its code is
            anyone's to read, in a sentence to pass on
        open_when_live:
          type:
            - object
            - 'null'
          properties:
            status:
              type: string
              enum:
                - waiting
                - opening
                - opened
                - stopped
                - dropped
              description: >-
                waiting for it to go live, opening (live, and a scan of what the
                repo holds now is running), opened, stopped (live, with its code
                closed: `why` says what stopped it, and nothing opens it unless
                someone asks again), or dropped (someone set who can reach the
                repo since, or the release was turned down)
            why:
              type:
                - string
                - 'null'
          required:
            - status
            - why
          description: >-
            Set for a release whose person asked, before 2026-11-24, for its
            repo to open as it goes live
        cover:
          type:
            - object
            - 'null'
          properties:
            needed:
              type: boolean
              description: It has no cover yet, and a game can't be published without one
            free:
              type: boolean
              description: >-
                Free covers can be made for it now (make_covers, pch covers
                make)
            stopped:
              type:
                - string
                - 'null'
              description: >-
                Why free covers can't be made, when they can't: covers_off,
                covers_paused, covers_busy, covers_allowance_used or
                covers_monthly_limit. Then upload a cover instead.
          required:
            - needed
            - free
            - stopped
          description: >-
            For a game that hasn't gone out yet: whether it still needs a cover
            before it can be published (submit answers cover_needed until it has
            one), and whether free covers can make it. Null for mods and blocks,
            and once it's submitted.
        urls:
          $ref: '#/components/schemas/ProjectUrls'
        test_link:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            A browser game's test link, once it's submitted and while it isn't
            out yet: its play page with `?release=`, which plays this version on
            Patch, sign-in and rooms included, for anyone signed in who has the
            link, without it reaching the game's players. Send it to the person
            so they can play it with friends before it's published. Null for
            anything else, and where the game backend is off.
        check_runs:
          type: array
          items:
            $ref: '#/components/schemas/CheckRun'
        staff_review:
          type:
            - object
            - 'null'
          properties:
            decision:
              type: string
              enum:
                - approved
                - rejected
                - changes_requested
            notes:
              type:
                - string
                - 'null'
            created_at:
              type: string
          required:
            - decision
            - notes
            - created_at
        feedback_ask:
          $ref: '#/components/schemas/FeedbackAsk'
      required:
        - project
        - version
        - status
        - next
        - open_code
        - open_when_live
        - cover
        - urls
        - test_link
        - check_runs
        - staff_review
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    ProjectUrls:
      type: object
      properties:
        page:
          type: string
          description: Its game page on Patch
        play:
          type:
            - string
            - 'null'
          description: Where it plays on Patch, while a browser game version is live
        game:
          type:
            - string
            - 'null'
          description: >-
            The live browser game, or block's demo, on the game host, its own
            origin (https://<site>-<env>.patchusercontent.com/). Null where
            there's no game host.
      required:
        - page
        - play
        - game
      description: Where it is on Patch. On single-project responses, not in lists.
    CheckRun:
      type: object
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - files
            - cloud
        status:
          type: string
          enum:
            - queued
            - running
            - passed
            - failed
            - errored
        summary:
          type:
            - string
            - 'null'
        rules_version:
          type: string
        started_at:
          type:
            - string
            - 'null'
        finished_at:
          type:
            - string
            - 'null'
        findings:
          type: array
          items:
            $ref: '#/components/schemas/Finding'
        progress:
          type:
            - object
            - 'null'
          properties:
            step:
              type:
                - string
                - 'null'
              enum:
                - files
                - scan
                - code
                - null
              description: >-
                What it's doing: files (reading its files), scan (scanning them
                for malware) or code (reading its code). Null until the reviewer
                starts
            step_number:
              type:
                - integer
                - 'null'
            steps:
              type: integer
            done:
              type:
                - integer
                - 'null'
              description: How many files the step has got through, when it counts them
            total:
              type:
                - integer
                - 'null'
            minutes_so_far:
              type: integer
            usual_minutes:
              type:
                - integer
                - 'null'
              description: >-
                How long cloud reviews of releases this size usually take: the
                median of recent similar ones, by file count and size. Null when
                too few are similar to say
            slow:
              type: boolean
              description: >-
                It's taking well past the usual time. It still finishes by
                itself
          required:
            - step
            - step_number
            - steps
            - done
            - total
            - minutes_so_far
            - usual_minutes
            - slow
          description: How a cloud review is going, while it runs; null otherwise
      required:
        - id
        - kind
        - status
        - summary
        - rules_version
        - started_at
        - finished_at
        - findings
        - progress
    FeedbackAsk:
      type: object
      properties:
        ask:
          type: string
      required:
        - ask
      description: >-
        Once it's over or live, for an agent (a call with an API key): what in
        Patch's tools cost it time getting there, to tell Patch's team with
        send_feedback, or skip
    Finding:
      type: object
      properties:
        rule_id:
          type: string
          example: PA-130
        severity:
          type: string
          enum:
            - blocking
            - warning
            - info
        path:
          type:
            - string
            - 'null'
          description: The file it's about, if any
        message:
          type: string
        suggestion:
          type:
            - string
            - 'null'
          description: What to change
        url:
          type:
            - string
            - 'null'
          description: A page with more about it, such as a malware scan's report
      required:
        - rule_id
        - severity
        - path
        - message
        - suggestion
        - url
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.