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

> ## Agent Instructions
> Treat Stackdome as an application-delivery platform for coding agents and developers, not as a Kubernetes dashboard.
> Prefer the Stackdome agent plugin as the user entry point and the stackdome CLI as the execution interface.
> Route agents who need the maintained deploy skill to npx skills add stackdome/skills and the complete operational workflow to /guides/ai-agents.
> Verify commands and flags with stackdome --help. Run stackdome init before authoring stackfile.yaml and stackdome validate before deploying.
> Use -o json for automation and verify documented terminal states before claiming success.
> Never request a user's account password. Use API-token authentication.
> During alpha, Stackdome Cloud is ephemeral and capacity-limited, and each organization can connect one cluster.
> Do not expose Kubernetes as a user concern unless the task is self-hosting or infrastructure architecture.

# List all builds for a stack resource



## OpenAPI

````yaml /openapi.yaml get /api/v1/organizations/{org_id}/projects/{project_name}/stacks/{id}/resources/{resource_name}/builds
openapi: 3.0.0
info:
  description: >-
    Deploy, debug, and operate applications through the Stackdome REST API on
    Stackdome Cloud or a self-hosted installation. This API is in alpha and may
    change before general availability.
  title: Stackdome API
  version: 0.0.1-alpha
servers:
  - url: /
security: []
paths:
  /api/v1/organizations/{org_id}/projects/{project_name}/stacks/{id}/resources/{resource_name}/builds:
    get:
      summary: List all builds for a stack resource
      parameters:
        - description: The ID of the organization
          explode: false
          in: path
          name: org_id
          required: true
          schema:
            type: string
          style: simple
        - description: The name of the project
          explode: false
          in: path
          name: project_name
          required: true
          schema:
            type: string
          style: simple
        - description: The id of record
          explode: false
          in: path
          name: id
          required: true
          schema:
            type: string
          style: simple
        - description: The name of the stack resource
          explode: false
          in: path
          name: resource_name
          required: true
          schema:
            type: string
          style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageBuildList'
          description: Successful operation
        '401':
          description: Unauthorized
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal server error
      security:
        - Bearer: []
components:
  schemas:
    ImageBuildList:
      example:
        total: 1
        items:
          - stack_resource_id: stack_resource_id
            source_revision:
              volume_source_revision:
                current_volume_hash: current_volume_hash
              git_repo_revision:
                commit: commit
                tag: tag
                branch: branch
            updated_at: '2000-01-23T04:56:07.000Z'
            image_repo: image_repo
            stack_id: stack_id
            namespace: namespace
            created_at: '2000-01-23T04:56:07.000Z'
            build_context:
              volume:
                name: name
                id: id
              git_repo:
                repo_url: repo_url
            id: id
            stack_resource_name: stack_resource_name
            status:
              build_source_revision: build_source_revision
              image_url: image_url
              state: state
              last_build_failure_detail:
                reason: reason
                restart_count: 0
                failure_type: crash_loop
                exit_code: 6
                message: message
              conditions:
                - reason: reason
                  last_transition_time: '2000-01-23T04:56:07.000Z'
                  type: type
                  message: message
                  observed_generation: 1
                  status: status
                - reason: reason
                  last_transition_time: '2000-01-23T04:56:07.000Z'
                  type: type
                  message: message
                  observed_generation: 1
                  status: status
          - stack_resource_id: stack_resource_id
            source_revision:
              volume_source_revision:
                current_volume_hash: current_volume_hash
              git_repo_revision:
                commit: commit
                tag: tag
                branch: branch
            updated_at: '2000-01-23T04:56:07.000Z'
            image_repo: image_repo
            stack_id: stack_id
            namespace: namespace
            created_at: '2000-01-23T04:56:07.000Z'
            build_context:
              volume:
                name: name
                id: id
              git_repo:
                repo_url: repo_url
            id: id
            stack_resource_name: stack_resource_name
            status:
              build_source_revision: build_source_revision
              image_url: image_url
              state: state
              last_build_failure_detail:
                reason: reason
                restart_count: 0
                failure_type: crash_loop
                exit_code: 6
                message: message
              conditions:
                - reason: reason
                  last_transition_time: '2000-01-23T04:56:07.000Z'
                  type: type
                  message: message
                  observed_generation: 1
                  status: status
                - reason: reason
                  last_transition_time: '2000-01-23T04:56:07.000Z'
                  type: type
                  message: message
                  observed_generation: 1
                  status: status
      properties:
        items:
          items:
            $ref: '#/components/schemas/ImageBuild'
          type: array
        total:
          type: integer
      type: object
    Error:
      allOf:
        - $ref: '#/components/schemas/ObjectReference'
        - $ref: '#/components/schemas/Error_allOf'
    ImageBuild:
      example:
        stack_resource_id: stack_resource_id
        source_revision:
          volume_source_revision:
            current_volume_hash: current_volume_hash
          git_repo_revision:
            commit: commit
            tag: tag
            branch: branch
        updated_at: '2000-01-23T04:56:07.000Z'
        image_repo: image_repo
        stack_id: stack_id
        namespace: namespace
        created_at: '2000-01-23T04:56:07.000Z'
        build_context:
          volume:
            name: name
            id: id
          git_repo:
            repo_url: repo_url
        id: id
        stack_resource_name: stack_resource_name
        status:
          build_source_revision: build_source_revision
          image_url: image_url
          state: state
          last_build_failure_detail:
            reason: reason
            restart_count: 0
            failure_type: crash_loop
            exit_code: 6
            message: message
          conditions:
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
      properties:
        id:
          type: string
        namespace:
          type: string
        stack_id:
          type: string
        stack_resource_id:
          type: string
        stack_resource_name:
          type: string
        source_revision:
          $ref: '#/components/schemas/BuildSourceRevision'
        build_context:
          $ref: '#/components/schemas/BuildSourceContext'
        image_repo:
          type: string
        status:
          $ref: '#/components/schemas/ImageBuildStatus'
        created_at:
          format: date-time
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - build_context
        - image_repo
        - source_revision
        - stack_resource_id
        - stack_resource_name
      type: object
    ObjectReference:
      properties:
        id:
          type: string
        kind:
          type: string
        href:
          type: string
      type: object
    Error_allOf:
      properties:
        code:
          type: string
        reason:
          type: string
        operation_id:
          type: string
        details:
          additionalProperties: true
          description: Optional structured, machine-readable error context
          type: object
      type: object
    BuildSourceRevision:
      example:
        volume_source_revision:
          current_volume_hash: current_volume_hash
        git_repo_revision:
          commit: commit
          tag: tag
          branch: branch
      properties:
        volume_source_revision:
          $ref: '#/components/schemas/BuildSourceRevision_volume_source_revision'
        git_repo_revision:
          $ref: '#/components/schemas/GitRepoRevision'
      type: object
    BuildSourceContext:
      example:
        volume:
          name: name
          id: id
        git_repo:
          repo_url: repo_url
      properties:
        volume:
          $ref: '#/components/schemas/BuildSourceContext_volume'
        git_repo:
          $ref: '#/components/schemas/BuildSourceContext_git_repo'
      type: object
    ImageBuildStatus:
      example:
        build_source_revision: build_source_revision
        image_url: image_url
        state: state
        last_build_failure_detail:
          reason: reason
          restart_count: 0
          failure_type: crash_loop
          exit_code: 6
          message: message
        conditions:
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
      properties:
        state:
          type: string
        conditions:
          items:
            $ref: '#/components/schemas/Condition'
          type: array
        image_url:
          type: string
        build_source_revision:
          type: string
        last_build_failure_detail:
          $ref: '#/components/schemas/BuildFailureDetail'
      type: object
    BuildSourceRevision_volume_source_revision:
      example:
        current_volume_hash: current_volume_hash
      properties:
        current_volume_hash:
          type: string
      required:
        - current_volume_hash
      type: object
    GitRepoRevision:
      example:
        commit: commit
        tag: tag
        branch: branch
      properties:
        branch:
          type: string
        tag:
          type: string
        commit:
          type: string
      type: object
    BuildSourceContext_volume:
      example:
        name: name
        id: id
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
      type: object
    BuildSourceContext_git_repo:
      example:
        repo_url: repo_url
      properties:
        repo_url:
          type: string
      required:
        - repo_url
      type: object
    Condition:
      additionalProperties: false
      example:
        reason: reason
        last_transition_time: '2000-01-23T04:56:07.000Z'
        type: type
        message: message
        observed_generation: 1
        status: status
      properties:
        type:
          type: string
        status:
          type: string
        observed_generation:
          type: integer
        last_transition_time:
          format: date-time
          type: string
        reason:
          type: string
        message:
          type: string
      type: object
    BuildFailureDetail:
      example:
        reason: reason
        restart_count: 0
        failure_type: crash_loop
        exit_code: 6
        message: message
      properties:
        failure_type:
          enum:
            - crash_loop
            - out_of_memory
            - image_pull_failed
            - create_container_error
            - exit_error
            - port_not_listening
          type: string
        reason:
          type: string
        message:
          type: string
        restart_count:
          format: int32
          type: integer
        exit_code:
          format: int32
          type: integer
      type: object
  securitySchemes:
    Bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````