Deployments
Build and run applications from a Git repository or an uploaded archive.
Get a deployment
query Parameters
deploymentIdprojectIdenvironmentIdGet a deployment › Responses
The deployment, with build configuration, domains and (decoded) secrets.
Create a deployment
Creates a deployment and starts the first build. The deployment is returned with
status: "Pending"; poll Get a deployment to follow it.
gitUrl must use the form https://<host>/<owner>/<repo>.git -b <branch> where host
is github.com, gitlab.com or bitbucket.org. Unknown fields are rejected.
Create a deployment › Request Body
name^[a-z0-9-]+$ · requiredprojectIdenvironmentIdOptional file mounted into the container.
Create a deployment › Responses
Deployment created; build queued.
Delete a deployment
List deployments
Update, start, stop or restart a deployment
One endpoint covers configuration changes and lifecycle actions. projectId and
environmentId are always required in the body.
| Goal | Body |
|---|---|
| Stop (scale to 0, HPA off) | {"action": "pause", "projectId": "…", "environmentId": "…"} |
| Start | {"action": "resume", "projectId": "…", "environmentId": "…"} |
| Restart pods | {"action": "restart", "projectId": "…", "environmentId": "…"} |
| Update config / redeploy | Any create fields to change, e.g. application, environment, sourceCode |
Changing sourceCode or build commands triggers a new build. A deploy-only update
fails if the deployment has never built successfully.
path Parameters
deploymentIdUpdate, start, stop or restart a deployment › Request Body
projectIdenvironmentIdactionpause = stop, resume = start, restart = restart pods.
nameOptional file mounted into the container.
Update, start, stop or restart a deployment › Responses
Update accepted.
Stream deployment status (SSE)
Server-Sent Events stream of deployment status for an environment. See the Streaming guide.
query Parameters
projectIdenvironmentIdintervalPush interval in seconds.
Stream deployment status (SSE) › Responses
text/event-stream

