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

# List the caller's BuildSpecs

> Returns every BuildSpec owned by the authenticated user.



## OpenAPI

````yaml /api-reference/openapi.yml get /build-specs
openapi: 3.0.3
info:
  title: DataLinks
  version: 2.22.1
servers:
  - url: https://api.datalinks.com/api/v1
    description: production server
security:
  - bearerAuth: []
  - openId:
      - implicit
paths:
  /build-specs:
    get:
      tags:
        - buildspecs
      summary: List the caller's BuildSpecs
      description: Returns every BuildSpec owned by the authenticated user.
      operationId: listBuildSpecs
      responses:
        '200':
          description: The caller's BuildSpecs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildSpecListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    BuildSpecListResponse:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: The caller's BuildSpecs
          items:
            $ref: '#/components/schemas/BuildSpecResponse'
    BuildSpecResponse:
      required:
        - code
        - createdAt
        - destination
        - 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'
        destination:
          $ref: '#/components/schemas/DatasetCoordinate'
        code:
          $ref: '#/components/schemas/BuildSpecCode'
        createdAt:
          type: string
        updatedAt:
          type: string
    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
    BuildSpecCode:
      required:
        - payload
      type: object
      properties:
        payload:
          type: string
          description: Opaque code payload; jvmRest never interprets it.
  responses:
    Unauthorized:
      description: >-
        Unauthorized. This error occurs if the authentication token is missing
        or invalid.
      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

````