> ## 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 the workspace's builds

> Paginated, newest first. Scoped to the caller's workspace, optionally filtered by creator.



## OpenAPI

````yaml /openapi-builder.yaml get /v1/builds
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:
    get:
      summary: List the workspace's builds
      description: >-
        Paginated, newest first. Scoped to the caller's workspace, optionally
        filtered by creator.
      operationId: listBuilds
      parameters:
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: createdBy
          in: query
          required: false
          description: >-
            Matched exactly against the createdBy a build already reports in
            BuildSummary. An id nobody in this workspace has built under returns
            an empty page rather than an error. Resend it with every cursor: the
            cursor carries the position, not the filter, so dropping it mid-page
            returns the whole workspace from that point.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildList'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  parameters:
    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:
    BuildList:
      type: object
      required:
        - builds
      properties:
        builds:
          type: array
          items:
            $ref: '#/components/schemas/BuildSummary'
        nextCursor:
          type: string
          description: Present when more results follow.
    BuildSummary:
      type: object
      required:
        - id
        - name
        - createdBy
        - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        createdBy:
          type: string
          description: >-
            Comfy user id of the person who created this build, not of whoever
            cut a release from it. A client that needs a display name or an
            email resolves this id against the workspace's member list, which
            returns both keyed by the same id.
        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), the same figure GET of the build returns for it (see
            Build sizeBytes): a release's size where the build's current
            definition is exactly the one that release was cut from and its cut
            stored a model total, otherwise the live read, private blobs from
            their upload records and 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.
        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.
        updatedAt:
          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.
  responses:
    BadRequest:
      description: Invalid request
      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.