> ## 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.

# Check a release's status

> Returns the release's status, the step-by-step timeline, a machine-readable error if it failed, a short-lived link to the full build log, and the artifacts produced. The UI polls this and stops once the status is final.




## OpenAPI

````yaml /openapi-builder.yaml get /v1/releases/{id}
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/releases/{id}:
    get:
      summary: Check a release's status
      description: >
        Returns the release's status, the step-by-step timeline, a
        machine-readable error if it failed, a short-lived link to the full
        build log, and the artifacts produced. The UI polls this and stops once
        the status is final.
      operationId: getRelease
      parameters:
        - $ref: '#/components/parameters/PathID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseDetail'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    ReleaseDetail:
      type: object
      required:
        - id
        - buildId
        - version
        - status
        - deployable
        - artifactCounts
        - timeline
        - artifacts
        - createdAt
      properties:
        id:
          type: string
        buildId:
          type: string
        version:
          type: integer
        definition:
          allOf:
            - $ref: '#/components/schemas/Definition'
          description: >
            What this release builds: the build's definition as it stood at cut,
            sealed onto the release and never rewritten, so it can differ from
            the build's current one. Absent only on legacy releases cut before
            the field existed.
        deployable:
          type: boolean
          description: >
            Same eligibility rule as on the summary: the release is not deleted
            and has a ready linux/nvidia artifact with a nonempty image ref.
            False after either direct release deletion or deletion of its build,
            even though the owning workspace can still read this detail.
        reproducible:
          type: boolean
          description: >
            Whether a rebuild installs the same Python packages this release's
            build did (derived from the sealed definition). False when a
            pipDependencies line pins a package by the https address of a wheel
            without a `#sha256=` fragment: the resolve fetches whatever that
            address serves on the day and records the address, not the bytes, so
            two builds of the release can differ. True when every such address
            carries the fragment, which uv verifies at install, or when there is
            none. Absent under the same condition as definition: a legacy
            release cut before the field existed.
        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 under the same condition as definition: a legacy
            release cut before the field existed.
        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.
        status:
          $ref: '#/components/schemas/ReleaseStatus'
        timeline:
          type: array
          items:
            $ref: '#/components/schemas/TimelineEntry'
        logUrl:
          type: string
          description: Short-lived link to the full build log.
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/Artifact'
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          description: When the build first completed (every target terminal).
    Definition:
      type: object
      description: >
        The user's environment choices (nodes, models, base version). Free-form
        for MVP, except that a field named like a known one in another case
        (customnodes for customNodes) is rejected: create and update refuse one
        they bring in, and check and cut refuse it wherever it sits. A public
        custom node declares an https github.com repository URL plus an optional
        gitRef (absent means the default branch); a private one references an
        uploaded blobId; exactly one of the two per node. A model declares a
        type (the ComfyUI model folder it lands in, e.g. checkpoints, loras,
        vae) plus exactly one source, a public sourceUri (https) or a private
        blobId, and an optional filename and sha256; the built release records
        each model so it can be placed at deploy time (models are not baked into
        the image). A CivitAI sourceUri is saved without its token query
        parameter and any user:password@ part, since a deployment downloads
        CivitAI links with the platform's own token, so a saved definition can
        read back without them. A CivitAI sourceUri (civitai.com or civitai.red,
        with or without www.) should be a download link
        (https://civitai.com/api/download/models/<versionId>) or a model page
        link (https://civitai.com/models/<modelId>), since a deployment can
        download no other CivitAI link: create and update warn on any other, and
        check and cut refuse it. An optional baseImage names the curated base
        image (the CUDA/Python/torch runtime the build is built on) by id;
        omitted means the default, and an unrecognized id is rejected (only
        images we build are selectable, never an arbitrary ref). pipDependencies
        is a requirements.txt string (one requirement per line). A version pin
        (`numpy<2.5`) is applied as an override in the single dependency
        resolution, so it beats every other declaration of that package; it
        forces a version rather than adding a package, so use it to correct
        versions your nodes already bring in, and the build warns about a pin
        nothing else requires. A direct reference to an https wheel (`nunchaku @
        https://host/nunchaku-1.0.1-cp311-cp311-linux_x86_64.whl`) is instead a
        root of the resolution and adds that package, which is how an engine
        published only as a wheel outside PyPI gets in; an optional `#sha256=`
        fragment on the address is verified at install. Local paths, file: URLs,
        git+ references and addresses carrying credentials are dropped with a
        warning, and so is an address for a package a version pin in the same
        blob also names, whatever markers either line carries, because the pin
        would replace the address in the resolution. modelPolicy,
        partnerNodePolicy and customNodePolicy are allow/deny lists for which
        models, partner nodes and custom nodes the build permits: each is an
        object with a mode of "allowlist" (allow only the list) or "blocklist"
        (allow all except the list) plus a list of string ids. An optional
        uiOrigin string records which client flow authored the definition; the
        platform currently writes "desktop-snapshot" or "comfyui-bundle". It is
        attribution only: stored and read back as sent, never validated, and it
        changes nothing about the build (the worker reports it, truncated to 64
        characters, as ui_origin on its build analytics events).
      additionalProperties: true
    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.
    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
    TimelineEntry:
      type: object
      required:
        - phase
        - level
        - message
        - at
      properties:
        phase:
          type: string
        artifactId:
          type: string
          description: >-
            The build artifact (target) this entry belongs to; absent for
            release-level events.
        level:
          type: string
          enum:
            - info
            - error
        message:
          type: string
        at:
          type: string
          format: date-time
    Artifact:
      type: object
      required:
        - id
        - os
        - gpu
        - accelVariant
        - status
      properties:
        id:
          type: string
        os:
          type: string
          enum:
            - linux
            - windows
            - mac
        gpu:
          type: string
          enum:
            - nvidia
            - amd
            - cpu
            - mps
        accelVariant:
          type: string
          description: Accelerator build variant, e.g. cu128. Part of the target identity.
        imageRef:
          type: string
          description: >-
            Baked container image ref (what cloud runs). Absent for archive-only
            targets that never bake an image.
        imageDigest:
          type: string
          description: Baked image digest (sha256:...). Absent until a bake produces one.
        archiveRef:
          type: string
          description: >-
            Archive object path the desktop download presigns. Absent until the
            target is ready.
        archiveSha256:
          type: string
          description: >-
            SHA-256 of the signed archive. Absent until the signer's content
            scan computes it.
        status:
          $ref: '#/components/schemas/ArtifactStatus'
        failureReason:
          type: string
          description: Why this target's build failed. Present only when status is failed.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
    ArtifactStatus:
      type: string
      description: >-
        Closed enum for one target. stopping is unfinished; ready, failed and
        stopped are terminal.
      enum:
        - queued
        - building
        - ready
        - failed
        - stopping
        - stopped
  responses:
    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.