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

# Get safe metadata for one immutable build



## OpenAPI

````yaml /api-reference/openapi.json get /v1/projects/{projectId}/builds/{buildHash}
openapi: 3.1.0
info:
  title: Firedrill Control API
  version: 1.0.0
  description: >-
    The control plane for drills, drill runs, and the worlds they run in. Errors
    always carry the canonical envelope; unsafe operations require an
    Idempotency-Key; long work returns an operation resource.
servers:
  - url: https://api.firedrill.run
security:
  - controlCredential: []
paths:
  /v1/projects/{projectId}/builds/{buildHash}:
    get:
      summary: Get safe metadata for one immutable build
      operationId: builds.get
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            pattern: ^prj_[0-9a-z]{12,32}$
        - name: buildHash
          in: path
          required: true
          schema:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
      responses:
        '200':
          description: Immutable build
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostedBuild'
        default:
          description: Canonical error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    HostedBuild:
      type: object
      properties:
        artifactState:
          type: string
          enum:
            - available
            - deleting
            - deleted
        schemaVersion:
          type: number
          enum:
            - 1
        organizationId:
          type: string
          pattern: ^org_[0-9a-z]{12,32}$
        projectId:
          type: string
          pattern: ^prj_[0-9a-z]{12,32}$
        buildHash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        artifactDigest:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        artifactBytes:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 67108864
        engineVersion:
          type: string
          minLength: 1
          maxLength: 100
        packageLockHash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        worldProjection:
          type: object
          properties:
            digest:
              type: string
              pattern: ^sha256:[0-9a-f]{64}$
            bytes:
              type: integer
              minimum: 0
              exclusiveMinimum: true
              maximum: 16777216
          required:
            - digest
            - bytes
          additionalProperties: false
        definitionIndex:
          type: object
          properties:
            schemaVersion:
              type: number
              enum:
                - 1
            worldId:
              type: string
              minLength: 1
              maxLength: 96
              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
            defaultSeed:
              type: string
              pattern: ^(0|[1-9]\d{0,19})$
            toolInstances:
              minItems: 1
              maxItems: 256
              type: array
              items:
                type: object
                properties:
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                required:
                  - packageId
                  - instanceId
                additionalProperties: false
            toolApps:
              maxItems: 256
              type: array
              items:
                type: object
                properties:
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  entry:
                    type: string
                    minLength: 1
                    maxLength: 512
                    pattern: >-
                      ^[A-Za-z0-9_-][A-Za-z0-9._-]*(?:\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$
                required:
                  - packageId
                  - entry
                additionalProperties: false
            drills:
              maxItems: 10000
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  targetId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  tags:
                    maxItems: 10000
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  classification:
                    type: string
                    enum:
                      - contract
                      - safety
                      - quality
                  trials:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 10000
                  timeoutMs:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 86400000
                required:
                  - id
                  - targetId
                  - tags
                  - classification
                  - trials
                  - timeoutMs
                additionalProperties: false
            suites:
              maxItems: 10000
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  drills:
                    maxItems: 10000
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  tags:
                    maxItems: 10000
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  trials:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 10000
                  concurrency:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 64
                  retries:
                    type: integer
                    minimum: 0
                    maximum: 10
                required:
                  - id
                  - drills
                  - tags
                  - concurrency
                  - retries
                additionalProperties: false
          required:
            - schemaVersion
            - worldId
            - defaultSeed
            - drills
            - suites
          additionalProperties: false
        createdAtMs:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
        - schemaVersion
        - organizationId
        - projectId
        - buildHash
        - artifactDigest
        - engineVersion
        - packageLockHash
        - definitionIndex
        - createdAtMs
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        code:
          type: string
          pattern: ^(control|world)\.[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$
        message:
          type: string
          minLength: 1
        correlationId:
          type: string
          minLength: 1
        retryable:
          type: boolean
        retryAfterMs:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        operationId:
          type: string
        source:
          type: string
          enum:
            - platform
            - simulated_provider
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              code:
                type: string
              message:
                type: string
            required:
              - path
              - code
              - message
            additionalProperties: false
        details:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        evidence:
          type: object
          properties:
            sessionId:
              type: string
            runId:
              type: string
            journalSeq:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            buildHash:
              type: string
          additionalProperties: false
      required:
        - code
        - message
        - correlationId
        - retryable
        - source
      additionalProperties: true
  securitySchemes:
    controlCredential:
      type: http
      scheme: bearer
      description: Opaque control credential

````