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

# Get all Lambda builds for a project (API Key)



## OpenAPI

````yaml get /api/lambda-builds/project/{projectId}
openapi: 3.0.0
info:
  title: LeanMCP SDK API
  description: >-
    API endpoints for LeanMCP SDK integration. These endpoints use API key
    authentication and are designed for programmatic access from the CLI and
    SDK.
  version: 1.0.0
servers:
  - url: https://api.leanmcp.com
    description: Production
  - url: http://localhost:3001
    description: Local Development
security: []
tags:
  - name: builds-sdk
  - name: chat-messages-api-key
  - name: chats-api-key
  - name: deployments-api-key
  - name: deployments-sdk
  - name: mapping-sdk
  - name: projects-api-key
paths:
  /api/lambda-builds/project/{projectId}:
    get:
      tags:
        - builds-sdk
      summary: Get all Lambda builds for a project (API Key)
      operationId: LambdaBuildsApiKeyController_getProjectLambdaBuilds
      parameters:
        - name: projectId
          required: true
          in: path
          description: Project ID
          schema:
            type: string
      responses:
        '200':
          description: Lambda builds found
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LambdaBuild'
        '404':
          description: Project not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    LambdaBuild:
      type: object
      properties:
        id:
          type: string
          description: Unique ID of the Lambda build
          example: f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454
        projectId:
          type: string
          description: ID of the project this build belongs to
          example: a1b2c3d4-5678-90ab-cdef-11111111111
        awsBuildId:
          type: string
          description: AWS CodeBuild ID
          example: dev-mcp-lambda-builds:12345678-1234-5678-abcd-12345678abcd
        status:
          type: string
          description: Current status of the build
          enum:
            - pending
            - in_progress
            - succeeded
            - failed
            - stopped
          example: in_progress
        s3SourceLocation:
          type: string
          description: S3 location of the source code
          example: dev-mcp-projects/userId/projectId/source.zip
        ecrRepository:
          type: string
          description: ECR repository URI for the Lambda image
          example: 767398153015.dkr.ecr.us-west-2.amazonaws.com/dev-mcp-lambda-services
        imageUri:
          type: string
          description: Docker image URI with tag
          example: >-
            767398153015.dkr.ecr.us-west-2.amazonaws.com/dev-mcp-lambda-services:1702800000
        logGroupName:
          type: string
          description: CloudWatch log group name
          example: /aws/codebuild/dev-mcp-lambda-builds
        logStreamName:
          type: string
          description: CloudWatch log stream name
          example: 12345678-1234-5678-abcd-12345678abcd
        currentPhase:
          type: string
          description: Current phase of the build
          example: BUILD
        errorMessage:
          type: string
          description: Error message if build failed
          example: 'Build failed: npm install returned non-zero exit code'
        startTime:
          type: string
          description: Build start time
          example: '2023-01-01T00:00:00.000Z'
        endTime:
          type: string
          description: Build end time
          example: '2023-01-01T00:10:00.000Z'
        createdAt:
          type: string
          description: Build creation time
          example: '2023-01-01T00:00:00.000Z'
        updatedAt:
          type: string
          description: Build last update time
          example: '2023-01-01T00:10:00.000Z'
      required:
        - id
        - projectId
        - awsBuildId
        - status
        - s3SourceLocation
        - ecrRepository
        - imageUri
        - logGroupName
        - logStreamName
        - currentPhase
        - errorMessage
        - startTime
        - endTime
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````