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

# Create a build from a ComfyUI Desktop snapshot

> Reads the snapshot exactly as POST /v1/snapshots/resolve does, then creates the build from what it read. For a caller that has a snapshot and wants an environment, rather than one that wants to show a person what the snapshot means first.

The report is always returned at the top level; read it there. When the import left something outstanding or listed the install's models, the same report is also stored on the build and returned as its `importReport`, so a caller that hands the user off to the build page (Desktop opening a browser, say) does not have to carry the warnings across that gap itself. A clean import stores none. The stored copy is cleared the first time the definition is saved.

A 400 carries the identifier a caller branches on, never the wording: `INVALID_REQUEST` when the name or the snapshot is missing, `INVALID_SNAPSHOT` when the payload is not a Desktop export or what it maps to cannot be stored as a definition, and `SNAPSHOT_TOO_LARGE` when it names more custom nodes than a definition may hold.

Subject to the same subscription and per-workspace limits as POST /v1/builds. Cutting a release is a separate call.




## OpenAPI

````yaml /openapi-builder.yaml post /v1/builds/from-snapshot
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/from-snapshot:
    post:
      summary: Create a build from a ComfyUI Desktop snapshot
      description: >
        Reads the snapshot exactly as POST /v1/snapshots/resolve does, then
        creates the build from what it read. For a caller that has a snapshot
        and wants an environment, rather than one that wants to show a person
        what the snapshot means first.


        The report is always returned at the top level; read it there. When the
        import left something outstanding or listed the install's models, the
        same report is also stored on the build and returned as its
        `importReport`, so a caller that hands the user off to the build page
        (Desktop opening a browser, say) does not have to carry the warnings
        across that gap itself. A clean import stores none. The stored copy is
        cleared the first time the definition is saved.


        A 400 carries the identifier a caller branches on, never the wording:
        `INVALID_REQUEST` when the name or the snapshot is missing,
        `INVALID_SNAPSHOT` when the payload is not a Desktop export or what it
        maps to cannot be stored as a definition, and `SNAPSHOT_TOO_LARGE` when
        it names more custom nodes than a definition may hold.


        Subject to the same subscription and per-workspace limits as POST
        /v1/builds. Cutting a release is a separate call.
      operationId: createBuildFromSnapshot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBuildFromSnapshotRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotBuild'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/PlanRequired'
        '409':
          description: The workspace has reached its build limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateBuildFromSnapshotRequest:
      type: object
      required:
        - name
        - snapshot
      properties:
        name:
          type: string
        description:
          type: string
        snapshot:
          $ref: '#/components/schemas/DesktopSnapshot'
        baseImageId:
          type: string
          description: >
            Build on this base image rather than the one the snapshot's Python
            selects. The report still says whether the choice fits the snapshot.
        uiOrigin:
          type: string
          description: >
            Which client flow sent the snapshot (Desktop writes
            "desktop-snapshot"). Stored on the definition as its uiOrigin, the
            same attribution-only field the other doors carry inside the
            definition: never validated, and it changes nothing about the build.
            Cut to its first 64 characters, the length analytics reports.
    SnapshotBuild:
      type: object
      description: The created build, alongside what its snapshot could not carry.
      required:
        - build
        - report
      properties:
        build:
          $ref: '#/components/schemas/Build'
        report:
          $ref: '#/components/schemas/SnapshotImportReport'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
    DesktopSnapshot:
      type: object
      description: >
        A ComfyUI Desktop snapshot export, exactly as Desktop writes it. Read
        rather than validated field by field: what the builder can install from
        is carried across, and what it cannot is reported. A payload that is not
        a Desktop export at all is a 400.


        Only the FIRST entry in `snapshots` is read — Desktop lists newest
        first, so that is the state the machine is in. An export-all envelope's
        remaining entries are history and are ignored, so trim before sending:
        they cost request size for nothing, and the request is bounded like
        every other. A snapshot naming more custom nodes than a definition may
        hold is a 400.


        An optional top-level `models` list, `[{folder, name, size}]`, names the
        model files the install has on disk: the ComfyUI model folder kind, the
        name relative to it, and the size in bytes. It is carried into the
        report as localModels, never into the definition. A malformed entry is
        dropped on its own, and a `models` that is not a list is ignored. A
        top-level `modelsTruncated: true` says the sender cut the list itself,
        and is passed on as localModelsTruncated.
      additionalProperties: true
    Build:
      type: object
      required:
        - id
        - name
        - workspaceId
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        workspaceId:
          type: string
        definition:
          $ref: '#/components/schemas/Definition'
        numModels:
          type: integer
          description: Count of pre-installed (staged) models in the definition (derived).
        numAllowedModels:
          type: integer
          description: >-
            Count of open-source models the build allows at runtime, from the
            modelPolicy allow-list (derived; 0 when the policy is absent or a
            block-list).
        numCustomNodes:
          type: integer
          description: Count of custom nodes in the definition (derived).
        numPartnerNodes:
          type: integer
          description: >-
            Count of partner nodes the build allows, from the partnerNodePolicy
            allow-list (derived; 0 when the policy is absent or a block-list).
        sizeBytes:
          type: integer
          format: int64
          description: >-
            Total size of the content the definition references, in bytes
            (derived). When the build's current definition is exactly the one a
            release of it that is not deleted was cut from, so that cutting the
            build now would return that release rather than a new one, and that
            release's cut stored a model total, the build answers with that
            release's size: the figure GET of the release returns (see
            ReleaseDetail sizeBytes), from the total the cut measured, whatever
            the release's status. Any edit since that cut, such as a model added
            or a link or upload swapped under the same filename, leaves the
            build without one. Otherwise it is read live: private blobs from
            their upload records, public catalog models from the shared model
            mirror. Each distinct object is counted once, and an item no source
            could size contributes nothing (see numUnsizedItems). The live read
            runs under a time budget rather than being stored, so a loaded
            server may size fewer of the public models than a quiet one and
            return a smaller total for the same build, and a public model at a
            link our mirror does not hold is counted unsized. Create and update
            always answer live, from the stored upload records alone.
        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, while numModels counts entries
            as the definition lists them, so a definition naming one unsizable
            model three times reports numModels 3 and numUnsizedItems 1. A
            definition the server cannot parse counts as one item, since nothing
            it names can be read. 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. Where sizeBytes is a release's, this
            is that release's count too (see ReleaseDetail numUnsizedItems). An
            absent field means the server does not report the count, which is
            not a claim that the total is exact. Create and update always answer
            from the stored upload records alone, so every public model is
            counted here until the build is read back.
        importReport:
          allOf:
            - $ref: '#/components/schemas/SnapshotImportReport'
          description: >-
            Set only when this build was created from a Desktop snapshot that
            had something outstanding or listed the install's models
            (localModels), and cleared on the first save of its definition. A
            build created from a workflow file reports under
            `workflowImportReport` instead. Absent therefore means one of three
            things and cannot tell them apart: it was never imported from a
            snapshot, the import carried everything, or it has been saved since.
            Read it before the first save.
        workflowImportReport:
          allOf:
            - $ref: '#/components/schemas/WorkflowImportReport'
          description: >-
            Set only when this build was created from a workflow file that had
            something outstanding, and cleared on the first save of its
            definition. A build carries this or `importReport`, never both,
            because it came from one kind of import or the other. Its models are
            the caller's next job: the definition installs no model a workflow
            named. Read it before the first save.
        warnings:
          type: array
          description: >-
            Non-blocking preflight advisories about the definition as saved
            (e.g. a pin the base image's Python cannot satisfy, or a
            pipDependencies line the build will ignore, quoted with the reason).
            Listed first, the definition's shape problems a release cut refuses
            on (e.g. a model type that is not a model directory, a malformed
            filename or sha256, a sourceUri that is not an https URL), then each
            HuggingFace or CivitAI model link that is not a form a deployment
            downloads (at `models[<n>].sourceUri`: e.g. a HuggingFace /raw/ view
            or repo page rather than a /resolve/ or /blob/ file link, or a
            CivitAI image page rather than a download or model page link; the
            reason names the form to use), then the pipDependencies lines the
            build will ignore, then a baseComfyVersion older than the minimum,
            then each custom node that installs a pack known not to work fully
            on a deployment (at `customNodes[<n>]`: one warning per node class
            that waits for a browser, naming the class and why, and one naming
            the editor features that call the pack's own routes, which nothing
            on Cloud answers yet, so they do nothing in the Cloud editor today),
            then the package, registry pin, model link and declared sha256
            lookups, in that order (a registry pin warns when the Comfy Registry
            does not publish that version, or withdrew it; a model link warns
            when a deployment could not download it, naming how its host refused
            it; a model's `sha256` warns, at `models[<n>].sha256`, when its
            link's host states another sha256, and the reason names both), then
            each private blob the definition names that the workspace does not
            hold, at `blob:<id>` with reason "unknown blob". A field a shape
            problem names carries that warning alone. Any other field may carry
            more than one, so read each warning's reason rather than keying
            warnings by field: a model link in a form a deployment does not
            download is still looked up, so its `models[<n>].sourceUri` can
            carry one warning for its form and another for how its host
            answered. Not listed: a missing baseComfyVersion, or what only the
            cut looks up (a private blob whose upload has not finished).
            Populated on the save response so an editor gets them without a
            second call; reads never carry them. A save is never rejected for a
            warning, and the cut path remains authoritative for what actually
            blocks a build.
          items:
            $ref: '#/components/schemas/ValidationIssue'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    SnapshotImportReport:
      type: object
      description: >
        What a snapshot could not carry into its definition. Everything here is
        advisory: the definition is still usable, and each entry names something
        the user may want to fix before building.


        An empty list is omitted rather than sent as [], so an absent field
        carries no claim in either direction: it does not assert that the check
        ran and found nothing.
      required:
        - pythonSatisfied
      properties:
        unresolvedNodes:
          type: array
          description: >-
            Packs the definition cannot install, by name — no fetchable remote
            in the snapshot, or a registry pin the registry disowned. This is a
            superset: every name in notInRegistry and registryPending also
            appears here, because a pack the snapshot attributed to the registry
            has no other source to fall back on. Render one or the other, not
            both.
          items:
            type: string
        notInRegistry:
          type: array
          description: >-
            Packs whose registry pin the registry does not have, by name. The
            pin is wrong; remove the pack or upload it privately.
          items:
            type: string
        registryPending:
          type: array
          description: >-
            Packs the registry has but has not finished publishing, by name. The
            pin is right and the import is worth retrying later.
          items:
            type: string
        skippedPins:
          type: array
          description: >-
            Packages left out because the build already decides them (the
            accelerator stack, ComfyUI's own packages, OS-specific wheels), by
            name.
          items:
            type: string
        unpinnablePins:
          type: array
          description: >-
            Packages with no PyPI version to write, by name — an editable or
            direct reference rather than a released version.
          items:
            type: string
        collidingNodes:
          type: array
          description: >-
            Packs left out because another pack already claimed the directory
            they would install into, by name. The folder is derived the way the
            cut derives it, from the registry id or the repository basename, so
            a fork and its upstream collide just as two registry ids differing
            only in case do. Cutting a release from a definition carrying both
            is refused, so importing both would hand the caller a build that
            cannot be built. The first pack to claim a folder is kept, the rest
            are named here, and none of them appear in nodes.
          items:
            type: string
        droppedComfyVersion:
          type: string
          description: >-
            The ComfyUI release the snapshot named and the import would not use,
            because it is not a git ref this can pass to the cut. Present so a
            caller can say which release was refused instead of showing an empty
            version field. Absent when the snapshot named a usable release, or
            named none at all.
        unverifiedPins:
          type: array
          description: >-
            Packs the registry never answered about, by name. Their pins are
            carried unchanged, and this says only that nothing confirmed them,
            so a registry outage cannot be mistaken for an import that verified
            clean. The cut remains the authority on a pin that cannot resolve.
          items:
            type: string
        localModels:
          type: array
          maxItems: 2000
          description: >-
            The model files the install had on disk, read from the export's
            top-level `models` list, sorted by folder then name and
            de-duplicated. Not a loss like the fields above: a definition cannot
            hold a model with no download source, so the list rides here for a
            caller to match against what Cloud can supply. An entry whose folder
            or name looks like a path on the machine is dropped. Absent when the
            export carried no usable list.
          items:
            $ref: '#/components/schemas/SnapshotLocalModel'
        localModelsTruncated:
          type: boolean
          description: >-
            True when localModels is not the whole library: either the export
            set its own `modelsTruncated: true` (Desktop cuts the list before
            sending it), or it listed more than an import keeps (2,000), in
            which case 2,000 are kept by taking from each folder in turn. Absent
            otherwise.
        pythonSatisfied:
          type: boolean
          description: >
            False when the chosen base image's Python does not match the one the
            snapshot's pins were resolved on, so a pin may reject the wheels
            that install worked with. True also when nothing could be compared.
    PaymentRequiredError:
      type: object
      description: >
        A 402 body. error is always PAYMENT_REQUIRED; reason says which gate
        refused. This service refuses only a workspace an operator blocked, so
        every 402 it sends carries spend_blocked -- the enum matches the deploy
        API's so one client can branch on one vocabulary across both.
      required:
        - error
        - reason
      properties:
        error:
          type: string
          description: Machine-readable error code. Always PAYMENT_REQUIRED.
        message:
          type: string
          description: Human-readable detail.
        reason:
          type: string
          description: >
            no_credit_balance: the workspace has neither an active subscription
            nor a positive credit balance, so subscribing or topping up clears
            it. No longer sent by this service. spend_blocked: an operator
            blocked this workspace, which topping up does not clear.
          enum:
            - no_credit_balance
            - spend_blocked
    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
    WorkflowImportReport:
      type: object
      description: Everything a workflow could not carry into its definition.
      required:
        - pinnedToLatest
        - comfyVersionRequired
      properties:
        unresolvedClasses:
          type: array
          description: >
            Node classes nothing installable provides and which the file did not
            claim were built in: either no pack claims them, or the pack that
            does publishes nothing to fetch. These are the ones a person has to
            act on: the graph will not run without them.
          items:
            type: string
        uncheckedClasses:
          type: array
          description: >
            Classes the registry never answered about, or was not asked about:
            the classes of stamped packs past the 16 one import looks up,
            unstamped classes past the first 16 sent to the class index, and
            every class the registry would be asked about when no registry is
            configured. Their packs are absent from the definition, and this
            says only that nothing confirmed they are missing, so a registry
            outage cannot read like a clean resolve.
          items:
            type: string
        packsWithoutVersion:
          type: array
          description: >
            Packs the registry knows but publishes no installable version of, by
            name. They are carried by repository instead, so they install from
            source rather than from a pinned release.
          items:
            type: string
        collidingPacks:
          type: array
          description: >
            Packs left out because another pack already claimed the directory
            they would install into. The cut refuses a definition carrying two
            of them, so keeping both would produce a build that cannot be cut.
          items:
            type: string
        models:
          type: array
          description: The model files the workflow names. Never part of the definition.
          items:
            $ref: '#/components/schemas/WorkflowModelNeed'
        unknownClasses:
          type: array
          description: >-
            Classes nothing attributes, with the packs their nearest known class
            names belong to and any `suggestedPack`. The detailed form of
            `unresolvedClasses`.
          items:
            $ref: '#/components/schemas/WorkflowUnknownClass'
        partnerClasses:
          type: object
          additionalProperties:
            type: string
          description: >-
            Classes served by a partner provider, mapped to that provider.
            Nothing to install, named so a caller sees the workflow needs
            partner access.
        comfyVersionRequired:
          type: boolean
          description: >-
            True when `baseComfyVersion` still has to be pinned before a cut. A
            workflow names no ComfyUI version and this service has no list to
            default from, so a fresh import always owes one.
        pinnedToLatest:
          type: boolean
          description: >
            True when any pack was pinned to the registry's newest published
            version. A workflow names no versions, so this is the normal case
            rather than an error, and it is the one way two imports of the same
            file can differ.
        packsFromStamps:
          type: array
          description: >
            Packs in the definition only because the file stamped them on a
            class the class map lacks and the registry's class index named the
            same pack, by name. The class map did not choose them, and the index
            lets any publisher list any class name, so agreement is not proof
            the pack is the one the author had installed.
          items:
            type: string
        classesFromStamps:
          type: array
          description: >
            Classes attributed to a pack only through the file's stamp, by class
            name, sorted: confirmed by the class index, carried along with a
            pack another class confirmed, or attached to a pack already going in
            by id or repository. Also every class with no registry stamp that
            the class index placed in a pack already going in, every class that
            runs only in the browser from a pack Comfy Cloud does not install,
            and every class Comfy Cloud hides, placed in the pack Cloud's config
            names for it, or in none for a ComfyUI built-in. The class map never
            placed them, and the map is what Comfy Cloud installs, so Cloud
            cannot be assumed to have them. They are absent from
            `unresolvedClasses` and `uncheckedClasses`, so a caller deciding
            whether Cloud runs the workflow as it is must read a non-empty list
            as no.
          items:
            type: string
    ValidationIssue:
      type: object
      required:
        - field
        - reason
      properties:
        field:
          type: string
        reason:
          type: string
    SnapshotLocalModel:
      type: object
      description: >-
        One model file on the install, never a path on the machine. The same
        idea as ImportBundleModel ({directory, filename}), which is what local
        ComfyUI uploads in an import bundle and is stored as sent. This is what
        the builder kept after checking a Desktop snapshot's list: the folder
        and name passed the path checks below and carry an optional size, so the
        limits are tighter and the field names follow the snapshot.
      required:
        - folder
        - name
      properties:
        folder:
          type: string
          maxLength: 64
          description: >-
            The ComfyUI model folder kind the file sits in (checkpoints, loras,
            or a pack's own such as ipadapter), as ComfyUI names it.
        name:
          type: string
          maxLength: 255
          description: >-
            The file's name relative to that folder, as a loader lists it, with
            "/" between subfolders (sdxl/foo.safetensors). Kept exactly as sent,
            leading and trailing spaces included, except that backslashes are
            turned into "/". At most 255 characters (Unicode code points, not
            bytes); a name with a control, line separator or bidi control
            character is dropped.
        size:
          type: integer
          format: int64
          minimum: 0
          description: >-
            The file's size in bytes. Absent when the export did not give a
            whole, non-negative number.
    WorkflowModelNeed:
      type: object
      description: >
        One model file the workflow names and the definition cannot carry. A
        definition's model needs exactly one source and a workflow supplies
        neither, so this is handed back for the caller to resolve, typically
        through POST /v1/models/resolve, and save into the definition.
      required:
        - filename
        - status
      properties:
        filename:
          type: string
          description: The basename, which is what a catalog is searched by.
        raw:
          type: string
          description: >-
            The value as the file wrote it, subfolder prefix and all, so a
            person can recognise it even when the catalog cannot.
        directories:
          type: array
          description: >-
            With status matched, the catalog folders holding this exact name.
            Otherwise the Build folders the workflow's own models list names for
            it, else those its loaders read in Cloud's catalog. Absent means no
            folder is known.
          items:
            type: string
        suggestions:
          type: array
          description: >-
            Catalog names this might have meant, closest first. Offered for a
            person to judge, never applied: `v1-5-pruned` and `v2-1-pruned`
            score alike.
          items:
            $ref: '#/components/schemas/WorkflowModelSuggestion'
        status:
          type: string
          enum:
            - matched
            - suggested
            - missing
          description: Which answer this is, so a caller branches on a value.
        usedBy:
          type: array
          description: The node classes that referenced it.
          items:
            type: string
    WorkflowUnknownClass:
      type: object
      description: >-
        A class nothing attributes, with the packs its nearest known class names
        belong to, and the pack the registry or the file points to. A lead,
        never an answer.
      required:
        - classType
        - status
      properties:
        classType:
          type: string
        suggestions:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowClassSuggestion'
        suggestedPack:
          $ref: '#/components/schemas/WorkflowSuggestedPack'
        status:
          type: string
          enum:
            - suggested
            - missing
          description: suggested when `suggestions` or `suggestedPack` holds a lead.
    WorkflowModelSuggestion:
      type: object
      description: One catalog name a model might have meant, and why.
      required:
        - filename
        - score
      properties:
        filename:
          type: string
          description: The catalog's name for it.
        directory:
          type: string
          description: A folder holding it, so a caller can say where it comes from.
        score:
          type: number
          format: double
          description: >-
            Similarity in [0, 1]. Ranks candidates; not confidence that two
            names mean the same weights.
    WorkflowClassSuggestion:
      type: object
      description: One pack offered for an unknown class, and the class that earned it.
      required:
        - packId
        - nearestClass
        - score
      properties:
        packId:
          type: string
        nearestClass:
          type: string
          description: The class in that pack whose name is closest.
        score:
          type: number
          format: double
    WorkflowSuggestedPack:
      type: object
      description: >-
        A pack the registry or the workflow file points to for an unknown class,
        which the definition does not install. The registry lets any publisher
        list any class name (its class index answers GetNode with an unrelated
        pack), so this is offered for a person to add and never added by the
        builder.
      required:
        - source
      properties:
        packId:
          type: string
          description: The registry id. Absent when `source` is `fileRepository`.
        name:
          type: string
          description: The registry's display name, when it has one.
        repository:
          type: string
          description: >-
            The pack's clone URL, shown so a person can see what they would add.
            Absent when the registry records none, or records one that is not an
            https URL.
        source:
          type: string
          enum:
            - classIndex
            - fileStamp
            - fileRepository
            - browserRegistration
          description: >-
            What pointed to the pack. classIndex: the registry's class index
            names it for the class. This is the weakest source: the index names
            whatever pack declared the name, so a generic name such as GetNode
            can name an unrelated pack, and a ComfyUI class newer than the class
            map can be offered one. fileStamp: the file's node names this
            registry pack (`cnr_id`) and the registry has it, but its class
            index does not list the class. fileRepository: the file's node names
            only a GitHub repository (`aux_id`), which the class index does not
            name for the class. browserRegistration: the pack's editor script
            registers the class, which runs only in the browser, but the
            registry's class index names another pack for the same name, so the
            pack is offered rather than added. The list is open: clients must
            accept a value not listed here, and treat it as a lead of unknown
            origin.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SubscriptionRequired:
      description: >
        An operator blocked the workspace (PAYMENT_REQUIRED, reason
        spend_blocked). A workspace with no credit is not refused here; it is
        held to the Standard plan's caps and asked for credit when it deploys.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PaymentRequiredError'
    PlanRequired:
      description: >
        The request sets, changes or removes an active governance rule (an
        allowlist, or a blocklist with an entry, in customNodePolicy,
        partnerNodePolicy, nodeIdPolicy or modelPolicy), and the workspace holds
        no active Team or Enterprise plan, or its plan could not be read
        (PLAN_REQUIRED). The message names the workspace's plan. A save that
        leaves the active rules as they are is never refused for this.
      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.