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

# Read a platform build

> One platform build: its recipe, the image it pushed, or the error class that routes its failure. Answers 404 for every organisation without the platform_builds flag.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /org/applications/{application_id}/builds/{build_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/applications/{application_id}/builds/{build_id}:
    get:
      tags:
        - applications
      summary: Read a platform build
      description: >-
        One platform build: its recipe, the image it pushed, or the error class
        that routes its failure. Answers 404 for every organisation without the
        platform_builds flag.
      operationId: get_application_platform_build
      parameters:
        - in: path
          name: application_id
          required: true
          schema:
            title: Application Id
            type: string
        - in: path
          name: build_id
          required: true
          schema:
            title: Build Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformBuildResponse'
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: Not found ("Platform build not found" or "Application not found")
components:
  schemas:
    PlatformBuildResponse:
      properties:
        id:
          title: Id
          type: string
        component:
          title: Component
          type: string
        head_sha:
          title: Head Sha
          type: string
        ref:
          title: Ref
          type: string
        reason:
          title: Reason
          type: string
        recipe:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipe
          description: >-
            How the builder turned source into image (dockerfile, generated,
            buildpacks); null until resolved.
        status:
          title: Status
          type: string
          description: pending, running, succeeded or failed.
        image_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Ref
          description: The image a succeeded build pushed.
        error_class:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Class
          description: >-
            Routes a failure: build_failed is the user's code; clone_auth,
            recipe_missing, push_failed, timeout and capacity are the
            platform's.
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
        created_at:
          title: Created At
          type: string
      required:
        - id
        - component
        - head_sha
        - ref
        - reason
        - recipe
        - status
        - image_ref
        - error_class
        - error_message
        - started_at
        - finished_at
        - created_at
      title: PlatformBuildResponse
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object

````