Builds API
API for starting and managing app builds
Use the Codemagic REST API to start and cancel builds, check their status, and list builds for your team. For the full list of endpoints, request parameters, and response formats, see the Builds section of the Codemagic REST API documentation.
Available endpoints
| Endpoint | Description |
|---|---|
POST /api/v3/apps/{app_id}/builds | Start a new build for an application. |
GET /api/v3/builds/{build_id} | Get information about a build, including its status. |
GET /api/v3/builds/{build_id}/actions | Get the actions (steps) of a build. |
GET /api/v3/builds/{build_id}/remote-access | Get remote access information for a build. |
POST /api/v3/builds/{build_id}/cancel | Cancel a running build. |
GET /api/v3/teams/{team_id}/builds | List builds for a team. |
Requests are authenticated with the x-auth-token header. See the Authentication section for how to get your API token.
Start a new build
workflow_id can be either the ID of a workflow in your codemagic.yaml file (as in workflows.<workflow_id>) or the ID of a Workflow Editor workflow. Exactly one of branch or tag is required.
codemagic.yaml is ignored.You can also pass labels, an instance type, workflow inputs, and environment overrides in the request body. See the Codemagic REST API documentation for all available parameters.
Cancel a build
Cancelling a build marks the build and its running steps as canceled and releases the build machine. A successful request returns 204 No Content. If the build has already finished, the request returns 409 Conflict and the build keeps the status it finished with.