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

# List a build's releases

> Paginated, newest first, optionally filtered by status.



## OpenAPI

````yaml /openapi-builder.yaml get /v1/builds/{id}/releases
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/builds/{id}/releases:
    get:
      summary: List a build's releases
      description: Paginated, newest first, optionally filtered by status.
      operationId: listReleases
      parameters:
        - $ref: '#/components/parameters/PathID'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: status
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ReleaseStatus'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque pagination cursor from a previous response's nextCursor.
      schema:
        type: string
  schemas:
    ReleaseStatus:
      type: string
      description: >
        Closed enum for a release's build lifecycle: queued (nothing started),
        building (a target is in flight), stopping (a target is stopping),
        stopped (all targets are terminal and some stopped), complete (all
        targets are terminal and none stopped). It says only whether the build
        is DONE, not whether it succeeded or is deployable. A complete release
        may have built all, some, or none of its targets; see artifactCounts and
        deployable. Adding or retrying a target reopens it to building.
      enum:
        - queued
        - building
        - complete
        - stopping
        - stopped
    ReleaseList:
      type: object
      required:
        - releases
      properties:
        releases:
          type: array
          items:
            $ref: '#/components/schemas/ReleaseSummary'
        nextCursor:
          type: string
    ReleaseSummary:
      type: object
      required:
        - id
        - version
        - status
        - deployable
        - artifactCounts
        - createdAt
      properties:
        id:
          type: string
        version:
          type: integer
        status:
          $ref: '#/components/schemas/ReleaseStatus'
        deployable:
          type: boolean
          description: >
            Whether this release is eligible for deployment: it is not deleted
            and has a ready linux/nvidia artifact with a nonempty image ref.
            Release completion alone does not decide eligibility: a live release
            can be deployable while another target is pending or failed. A
            windows-only release is not deployable. This flag does not replace
            Deploy's other create checks, such as workspace credit and compute
            availability.
        artifactCounts:
          $ref: '#/components/schemas/ArtifactCounts'
        sizeBytes:
          type: integer
          format: int64
          description: >-
            Total size of the content the release's own sealed definition
            references, in bytes (derived): models and custom-node archives.
            Each distinct object is counted once, and an item no source could
            size contributes nothing (see numUnsizedItems). Sized from the
            definition as it stood at cut, not the build's current one, so an
            older release with a different model set reports its own size rather
            than the build's. The models come from the total the cut measured
            and stored, the same one the deploy estimate reads and a deployment
            downloads: every model, private or public, sized from its upload
            record, our mirror or its own host, one file per
            models/<type>/<filename>. Custom-node archives are added to it from
            their upload records, except one whose upload is the model the cut
            counted on its path. That answer is there as soon as the release is
            cut, whatever its status: a release with a stored total answers
            exactly that total plus its custom-node archives. A release cut
            before the cut kept the first model on each shared path may have
            stored the smallest one; such a stored total is corrected on the
            release itself, not by this read. A release cut before the cut
            stored a total is read live instead, under a time budget and from
            the mirror alone, so a loaded server may size fewer of its public
            models than a quiet one, and a public model at a link our mirror
            does not hold is counted unsized; until such a release's build has
            finished once, the endpoint a client polls for status answers from
            the stored upload records alone, so every public model is counted
            unsized, and retrying a target afterwards does not take the size
            away again. Absent on a legacy release cut before a definition was
            sealed onto it.
        numUnsizedItems:
          type: integer
          description: >-
            Count of the distinct items (models and custom-node archives) whose
            size could not be read, so they contribute nothing to sizeBytes
            (derived). It counts distinct items, not raw entries, so a
            definition naming one unsizable model three times reports
            numUnsizedItems 1. Where the cut stored a total, the models in it
            are the ones the cut could not size (zero on any release cut with a
            live sizer, since such a cut refuses an unsized model), plus any
            custom-node archive whose upload record is gone. Zero means every
            item this endpoint sizes was read; a custom node installed from a
            repository or the registry is sized by neither route and counted by
            neither, so it is never in the total. Non-zero means sizeBytes is a
            lower bound on top of that and should be shown as approximate.
            Absent under the same condition as sizeBytes.
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
    ArtifactCounts:
      type: object
      description: >
        Per-target build tallies for a release, so a client can show "3 of 4
        built" without deriving it, and can tell a partial build (some failed,
        some ready) from a total one. total is the number of targets; the rest
        partition it.
      required:
        - total
        - ready
        - failed
        - stopped
        - pending
      properties:
        total:
          type: integer
        ready:
          type: integer
        failed:
          type: integer
        stopped:
          type: integer
        pending:
          type: integer
          description: queued, building or stopping, i.e. not yet terminal.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

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