Skip to content

List deployments

GET/v1/deployments

Returns the workspace's deployments, newest first. Deleted deployments, pull request previews and the component deployments of one-click apps are not included. Each item carries the status of its latest run in last_run_status, and display_status shows updating while a new version builds for a live app, and starting once that build has an image.

Without query parameters, every deployment is returned in data. Send page or page_size to paginate. A top-level pagination object is then added next to data, and q filters the results. q is ignored unless page or page_size is present.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Query parameters

pageinteger

Page number, starting at 1. Values below 1 (or non-numbers) are treated as 1. Sending this enables pagination.

min 1

page_sizeinteger

Items per page. Defaults to 10. Values above 100 are capped at 100. Sending this enables pagination.

Default 10min 1 · max 100

qstring

Case-insensitive substring search across name, slug, repository URL, branch, plan slug and status. Only applied when paginating.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The workspace's deployments. pagination is only present when page or page_size was sent.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the deployment.

namestringRequired

Display name.

slugstringRequired

URL-safe name, unique in the workspace.

statusstringRequired

building until the first version is live, then active. failed when the last deploy failed and nothing is live, idle while a scale-to-zero app is asleep (it wakes on the next request), paused while the account is suspended for non-payment (the app is scaled to zero and stops billing for compute; it is resumed automatically once the account is active again), deleted after deletion. A deployment created without deploy_now is active even though nothing has been deployed.

One ofactivebuildingfailedpausedidledeleted

display_statusstring

Status to show to people. Same as status, except updating while a live deployment's next version is still building, and starting once that build has an image and the app is coming up. Only computed by list and get; elsewhere equal to status.

plan_slugstringRequired

Slug of the deployment's plan.

plan_namestring

Name of the plan.

vcpuinteger

Whole vCPU count of the plan. Coarse; prefer cpu_limit_millis.

cpu_limit_millisinteger

CPU limit per replica in millicores.

memory_mibinteger

Memory limit per replica in MiB.

monthly_price_centsinteger

Plan price per month per replica, in cents. Omitted for free plans.

hourly_price_centsinteger

Hourly price in whole cents. Omitted when 0.

hourly_price_microsinteger

Hourly price in millionths of the currency unit. Omitted for free plans.

currencystring

ISO currency code of the prices.

free_allowance_countinteger

Present on Free plans with the per-account allowance.

repo_urlstringRequired

Git repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.

git_providerstring

github_app when the repository is connected through the RumptyCloud GitHub App.

git_repo_full_namestring

owner/repository on GitHub.

git_repo_idstring

GitHub repository ID.

branchstringRequired

Branch that is built.

root_directorystring

Folder inside the repository that is built. Omitted when building from the root.

app_typestringRequired

Kind of app.

One ofservicestatic

build_methodstringRequired

How the image is built. image is used by one-click app components, which run a prebuilt image.

One ofrailpackdockerfileimage

build_commandstring

Build command override, if set.

start_commandstring

Start command override, if set.

health_check_pathstring

Path probed for health.

portintegerRequired

Port the app listens on.

auto_deploy_enabledbooleanRequired

Whether pushes to the branch deploy automatically.

security_scan_enabledbooleanRequired

Whether built images are scanned for vulnerabilities.

preview_apps_enabledbooleanRequired

Whether pull requests get preview apps.

artifact_retentionintegerRequired

How many built images are kept for rollbacks. 0 keeps all.

previewsarray of objects

Live pull request previews. Only returned by Get a deployment.

Show item attributes
uidstringRequired

UID of the preview deployment.

pr_numberintegerRequired

Pull request number.

branchstringRequired

Pull request branch.

statusstringRequired

Preview status, using the same values as a deployment's display_status.

commit_shastring

Commit of the preview's latest run.

public_urlstring

URL of the preview.

expires_atstring (date-time)

When the preview is removed automatically.

volume_mount_pathstring

Mount path of the persistent volume. Omitted without a volume.

volume_size_gibinteger

Size of the persistent volume(s) in GiB. Omitted without a volume.

scale_to_zero_enabledboolean

Present and true when the app sleeps when idle.

scale_to_zero_idle_minutesinteger

Idle minutes before the app sleeps.

min_replicasinteger

Instances always running.

max_replicasinteger

Autoscaling upper bound.

target_request_rateinteger

Requests per second per replica before scaling out.

current_replicasinteger

Replicas running now. Each is billed at the plan rate.

app_uidstring

Set when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.

custom_domainstring

The verified custom domain that public_url uses, if any.

last_run_uidstring

UID of the most recent run.

last_run_statusstring

Status of the most recent run. Only returned by list and get.

One ofqueuedbuildingreadyfailedcanceled

public_urlstring

URL the app is served at. Uses the custom domain once one is verified. Empty after deletion.

default_public_urlstring

The app's URL on the platform domain. Point custom domain CNAME records at its host.

created_atstring (date-time)Required

When the deployment was created.

last_failurestring

Readable reason for the last failure. Omitted when there is none.

env_changes_pendingboolean

Present and true when environment variables changed since the last deploy and are waiting to be applied. Only returned by Get a deployment.

env_changes_require_buildboolean

Present and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.

crashloopobject

Present while the platform is holding the app down because it was not healthy.

Show attributes
statestringRequired

paused: the app was serving, became unhealthy and is retried automatically. stopped: nothing more happens until you restart or redeploy.

One ofpausedstopped

sincestring (date-time)

When the app was taken down.

reasonstring

Why the app was taken down.

next_retry_atstring (date-time)

Next automatic attempt. Only while paused.

paginationobject

Paging details. Only present when page or page_size was sent.

Show attributes
pageintegerRequired

Current page number.

page_sizeintegerRequired

Items per page.

totalintegerRequired

Total number of matching items.

total_pagesintegerRequired

Total number of pages.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.