> ## 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.

# Get a BuildSpec



## OpenAPI

````yaml /api-reference/openapi.yml get /build-specs/{buildSpecId}
openapi: 3.0.3
info:
  title: DataLinks
  version: 2.33.0
servers:
  - url: https://api.datalinks.com/api/v1
    description: production server
security:
  - bearerAuth: []
  - openId:
      - implicit
paths:
  /build-specs/{buildSpecId}:
    get:
      tags:
        - buildspecs
      summary: Get a BuildSpec
      operationId: getBuildSpec
      parameters:
        - name: buildSpecId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The BuildSpec.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildSpecResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    BuildSpecResponse:
      required:
        - code
        - codeSource
        - createdAt
        - destinations
        - id
        - owner
        - sources
        - updatedAt
        - version
      type: object
      properties:
        id:
          type: string
          format: uuid
        owner:
          type: string
          description: Username of the BuildSpec's owner.
        version:
          type: integer
        sources:
          type: array
          items:
            $ref: '#/components/schemas/DatasetCoordinate'
        destinations:
          type: array
          items:
            $ref: '#/components/schemas/DatasetCoordinate'
        code:
          $ref: '#/components/schemas/BuildSpecCode'
        codeSource:
          type: string
          description: >-
            The spec's transform source. A `GitPipeline` spec's `code` is empty;
            edit its transform through the pipeline files API rather than this
            field.
          enum:
            - CodeBlob
            - GitPipeline
        createdAt:
          type: string
          description: Timestamp of the BuildSpec creation.
          format: date-time
          example: '2005-04-02T19:37:00.000Z'
        updatedAt:
          type: string
          description: Timestamp of the BuildSpec last update.
          format: date-time
          example: '2005-04-02T19:37:00.000Z'
    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
    BuildSpecCode:
      required:
        - payload
      type: object
      properties:
        payload:
          type: string
          description: >-
            Code payload, base64-encoded by the client. Only Python code is
            supported.
          example: cGFzcwo=
    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
  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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.