Build

build

Methods

Submit Build ->
post/v5/builds

Submit a container image build.

Upload a tar.gz archive containing the build context (Dockerfile and any files needed for the build) along with image name, tag, and optional build arguments.

Maximum file size: 500MB

Get Build ->
get/v5/builds/{build_id}

Get a build by ID, including current status from the cloud provider.

List Builds -> CursorPage<>
get/v5/builds

List Builds

query Parameters
agent_name: string
Optional

Filter builds by agent name

ending_before: string
Optional
limit: number
Optional
(maximum: 10000, minimum: 1, default: 100)
sort_by: string
Optional
sort_order:
Optional
starting_after: string
Optional
Response fields
has_more: boolean

Whether there are more items left to be fetched.

items: Array<>
total: number

The total of items that match the query. This is greater than or equal to the number of items returned.

limit: number
Optional
(default: 100)

The maximum number of items to return.

object: "list"
Optional
(default: "list")
Request example
200Example
Stream Build Logs ->
get/v5/builds/{build_id}/logs

Stream build logs via Server-Sent Events (SSE).

Returns a streaming response with content-type text/event-stream. Each log line is sent as an SSE data event.

Cancel Build ->
post/v5/builds/{build_id}/cancel

Cancel a pending or running build.

Returns 202 Accepted — the actual cancellation happens asynchronously via a Temporal workflow.

List Undeployed Agents -> Array<{ agent_name, latest_build, total_builds }>
get/v5/builds/undeployed

List agents that exist only as cloud builds with no healthy deployment.

Returns distinct agent names from builds that have never had a deploy reach 'healthy' status, along with each agent's latest build info and total build count. Useful for surfacing agents that have been built but not yet deployed.

Response fields
agent_name: string

The agent name from cloud builds

latest_build:

The most recent cloud build for this agent

total_builds: number

Total number of builds for this agent

Request example
200Example

Domain types

AgentexCloudBuild = { id, account_id, agent_name, 10 more... }
BuildListUndeployedResponse = Array<{ agent_name, latest_build, total_builds }>
StreamChunk = { line }

A single log line from the build process.