Skip to main content
POST
Start build for project via API key

Authorizations

Authorization
string
header
required

Enter your LeanMCP API key

Path Parameters

id
string
required

Project ID

Example:

"proj_123456789"

Response

Build started successfully

id
string
required

Unique ID of the build

Example:

"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454"

projectId
string
required

ID of the project this build belongs to

Example:

"a1b2c3d4-5678-90ab-cdef-11111111111"

awsBuildId
string
required

AWS CodeBuild ID

Example:

"mcp-docker-build-2:12345678-1234-5678-abcd-12345678abcd"

status
enum<string>
required

Current status of the build

Available options:
pending,
in_progress,
succeeded,
failed,
stopped
Example:

"in_progress"

s3SourceLocation
string
required

S3 location of the source code

Example:

"s3-mcp-dev/1f04e1ec-8ff0-4bd6-8195-e58f0dd57326/project-id/file.zip"

startTime
string
required

Build start time

Example:

"2023-01-01T00:00:00.000Z"

createdAt
string
required

Build creation time

Example:

"2023-01-01T00:00:00.000Z"

updatedAt
string
required

Build last update time

Example:

"2023-01-01T00:10:00.000Z"

ecrRepository
string

ECR repository name

Example:

"ecr-mcp-dev/project-id"

logGroupName
string

CloudWatch log group name

Example:

"/aws/codebuild/mcp-docker-build-2"

logStreamName
string

CloudWatch log stream name

Example:

"12345678-1234-5678-abcd-12345678abcd"

currentPhase
string

Current phase of the build

Example:

"BUILD"

endTime
string

Build end time

Example:

"2023-01-01T00:10:00.000Z"