Skip to content

Deployments

On this page
  1. Endpoints

Deployments build and run your application from a Git repository. Point a deployment at a repository and branch, pick a plan, and RumptyCloud builds a container image (with Railpack or your Dockerfile), runs it, and serves it over HTTPS on a rumptycloud.app hostname. You can add custom domains, environment variables, a persistent volume, scale-to-zero and autoscaling.

Every build or rollout is a run. Runs keep their build logs and, while the image is retained, can be redeployed later to roll back.

Builds, rollouts, restarts, plan changes and deletion are asynchronous. They return 202 Accepted with an operation_id. Poll Get an operation to follow one.

Send an optional X-Idempotency header to make retries safe. The key is looked up before anything else is checked, so a retry gets the original result even if the first request already changed the deployment (for example, deleted it). If the key was already used for the same action, the original operation is returned with 200 OK, is_replay: true and an X-Idempotency-Replay: true header, and nothing new is queued. If the original operation has finished, is_completed is true and X-Idempotency-Completed: true is set. Reusing a key for a different action or a different deployment returns 409 with action: idempotency_key_reused. Keys are scoped to the workspace owner's account and the workspace. Requests that queue no operation (create without deploy_now, a plan change with nothing live) do not record the key, so repeating one runs it again.

If the account is suspended for non-payment, live apps are paused (status: paused) and builds, rollouts, restarts, environment applies and plan changes are rejected with 402 and action: past_due (as they are while the account is past due). Git pushes no longer trigger auto-deploys and pull requests no longer get previews. Once the account is active again, apps that suspension paused are resumed automatically within about a minute.

Endpoints

EndpointDescription
GET /v1/deployments/plansList deployment plans
GET /v1/deploymentsList deployments
POST /v1/deploymentsCreate a deployment
GET /v1/deployments/summaryGet the deployment summary
GET /v1/deployments/free-quotaGet the free app quota
GET /v1/deployments/activityList deployment activity
GET /v1/deployments/{uid}Get a deployment
PATCH /v1/deployments/{uid}Update a deployment
DELETE /v1/deployments/{uid}Delete a deployment
GET /v1/deployments/{uid}/activityList activity for a deployment
POST /v1/deployments/{uid}/deployDeploy a deployment
POST /v1/deployments/{uid}/apply-envApply environment changes
POST /v1/deployments/{uid}/restartRestart a deployment
POST /v1/deployments/{uid}/planChange a deployment plan
GET /v1/deployments/{uid}/custom-domainsList custom domains
POST /v1/deployments/{uid}/custom-domainsAdd a custom domain
POST /v1/deployments/{uid}/custom-domains/{domain_uid}/verifyVerify a custom domain
DELETE /v1/deployments/{uid}/custom-domains/{domain_uid}Delete a custom domain
GET /v1/deployments/{uid}/env-varsList environment variables
PUT /v1/deployments/{uid}/env-varsSet an environment variable
POST /v1/deployments/{uid}/env-vars/{env_uid}/revealReveal an environment variable
DELETE /v1/deployments/{uid}/env-vars/{env_uid}Delete an environment variable
GET /v1/deployments/{uid}/runsList deployment runs
GET /v1/deployments/{uid}/runs/{run_uid}Get a deployment run
GET /v1/deployments/{uid}/runs/{run_uid}/logsList deployment run logs
POST /v1/deployments/{uid}/runs/{run_uid}/deployRedeploy a run
DELETE /v1/deployments/{uid}/runs/{run_uid}/artifactDelete a run artifact
GET /v1/deployments/{uid}/metrics/currentGet current deployment metrics
GET /v1/deployments/{uid}/metrics/historyGet deployment metric history
GET /v1/deployments/{uid}/trafficGet deployment traffic
GET /v1/deployments/{uid}/firewall-policiesList deployment firewall policies