ScalixScalix Docs
Sign up

Build API

Build API to start, monitor, cancel, and read logs for container image builds in Scalix Cloud, with every build scoped to your project.

REST API endpoints for Build. 6 operations.

List builds

plaintext
GET /v1/build

Returns the builds for the caller's project.

Auth: Bearer API key

Responses

StatusDescription
200Build list
401Missing or invalid API key
500Internal error

operationId: listBuilds

Start a build

plaintext
POST /v1/build

Starts a container image build and returns the build record. For a private repository, either install the Scalix GitHub App for the project (builds then authenticate themselves) or pass auth_token.

Auth: Bearer API key

Request body

application/json (required) — schema BuildCreateRequest.

Responses

StatusDescription
200Build started
401Missing or invalid API key
500Internal error

operationId: createBuild

Get a build

plaintext
GET /v1/build/{id}

Returns a single build by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesBuild id

Responses

StatusDescription
200Build details
401Missing or invalid API key
500Internal error

operationId: getBuild

Cancel a build

plaintext
POST /v1/build/{id}/cancel

Cancels an in-progress build.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesBuild id

Responses

StatusDescription
200Build cancelled
401Missing or invalid API key
500Internal error

operationId: cancelBuild

Get build logs

plaintext
GET /v1/build/{id}/logs

Returns log output for a build.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesBuild id

Responses

StatusDescription
200Build logs
401Missing or invalid API key
500Internal error

operationId: getBuildLogs

Upload source and build

plaintext
POST /v1/build/upload

Builds from an uploaded source tree instead of a URL, so the source never has to be reachable from the internet. The request body IS the gzipped tarball (Content-Type: application/gzip); metadata goes in the query string. Multipart is not accepted.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
image_tagquerystringNoTag for the resulting image. Auto-generated if omitted.
dockerfile_pathquerystringNoPath to the Dockerfile within the uploaded tree. Auto-detected if omitted.
build_argsquerystringNoBuild-time ARGs as a url-encoded JSON object, e.g. {"VITE_API_URL":"https://api.example.com"}
timeout_secondsqueryinteger (int32)NoBuild timeout in seconds. Default 600, maximum 3600.

Request body

application/gzip (required) — schema string.

Responses

StatusDescription
201Build started
400Body is empty, not a gzipped tarball, too large, or build_args is malformed
401Missing or invalid API key
500Internal error

operationId: uploadBuild