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

# List a preview run's outputs

> A code-blob preview returns one entry per destination slot (each with an href to fetch its download URL). A GitPipeline preview returns every produced output (declared, computed and discovered), each with an inline presigned download URL. Only available for preview runs.



## OpenAPI

````yaml /api-reference/openapi.yml get /build-runs/{buildRunId}/outputs
openapi: 3.0.3
info:
  title: DataLinks
  version: 2.29.0
servers:
  - url: https://api.datalinks.com/api/v1
    description: production server
security:
  - bearerAuth: []
  - openId:
      - implicit
paths:
  /build-runs/{buildRunId}/outputs:
    get:
      tags:
        - buildspecs
      summary: List a preview run's outputs
      description: >-
        A code-blob preview returns one entry per destination slot (each with an
        href to fetch its download URL). A GitPipeline preview returns every
        produced output (declared, computed and discovered), each with an inline
        presigned download URL. Only available for preview runs.
      operationId: listBuildRunOutputs
      parameters:
        - name: buildRunId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The preview run's outputs.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/BuildRunOutputListResponse'
                  - $ref: '#/components/schemas/BuildRunPipelineOutputListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: The GitPipeline preview has not produced its outputs yet.
components:
  schemas:
    BuildRunOutputListResponse:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: One entry per destination slot the preview produced.
          items:
            $ref: '#/components/schemas/BuildRunOutputSummary'
    BuildRunPipelineOutputListResponse:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: >-
            Every output the GitPipeline preview produced (declared, computed
            and discovered).
          items:
            $ref: '#/components/schemas/BuildRunPipelineOutput'
    BuildRunOutputSummary:
      required:
        - datasetName
        - href
        - namespace
        - owner
      type: object
      properties:
        datasetName:
          type: string
          description: The destination slot this output corresponds to.
        owner:
          type: string
        namespace:
          type: string
        href:
          type: string
          description: Relative URL to fetch this output's presigned download URL.
    BuildRunPipelineOutput:
      required:
        - downloadUrl
        - expiresAt
        - name
      type: object
      properties:
        name:
          type: string
          description: The produced file's name.
        target:
          $ref: '#/components/schemas/DatasetCoordinate'
        downloadUrl:
          type: string
          description: >-
            A presigned S3 URL to the content-addressed DVC-remote object.
            Time-limited.
        expiresAt:
          type: string
          description: When the presigned URL expires.
          format: date-time
      description: >-
        One output a GitPipeline preview produced, with a presigned download
        URL. `target` is present for declared and computed outputs (the dataset
        they would ingest into) and absent for discovered ones.
    ErrorResponse:
      required:
        - error_code
        - message
      type: object
      properties:
        error_code:
          type: string
          example: UNAUTHORIZED
        error_message:
          type: string
          example: ''
        message:
          type: string
          example: Missing authentication token
        sub_errors:
          type: array
          items:
            required:
              - code
              - message
            type: object
            properties:
              code:
                type: string
              message:
                type: string
    DatasetCoordinate:
      required:
        - datasetName
        - namespace
        - owner
      type: object
      properties:
        owner:
          type: string
          description: Owner username of the dataset's namespace.
        namespace:
          type: string
        datasetName:
          type: string
  responses:
    Unauthorized:
      description: >-
        Unauthorized. This error occurs if the authentication token is missing
        or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      description: >
        Use a Bearer token for authentication. Submit the token using the
        `Authorization`

        header: `Authorization: Bearer <token>`.
      scheme: bearer
    openId:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: >-
            https://login.datalinks.com/realms/datalinks-realm/protocol/openid-connect/auth
          scopes:
            openid: openid

````