/v1/deploymentsCreates a deployment from a Git repository.
- With
deploy_now: true, the first build is queued straight away. The response is202 Acceptedwith anoperation_idand the newrun. Follow it with Get an operation or Get a deployment run. - Otherwise the deployment is only saved and the response is
201 Createdwithout anoperation_id. Start the first build later with Deploy a deployment.
Things to know:
- You must accept the acceptable use policy first. Until then this endpoint returns
428withaction: accept_acceptable_use_policy. - The deployment gets a unique HTTPS hostname on the platform domain, shown in
public_urlanddefault_public_url. The slug is derived fromname; if it is taken in the workspace, a short suffix is added. - Private repositories need the RumptyCloud GitHub App. Send
git_provider: github_appandgit_repo_full_name. If GitHub is not connected, adeploy_nowrequest fails withConnect GitHub before deploying this repository. - For GitHub App repositories, a non-empty
root_directoryis checked against the branch and rejected if the folder does not exist. - On a Free plan (
free_allowance_countabove0), scale-to-zero is forced on, the app runs a single replica, and the account's Free allowance must not be used up. - A persistent volume pins the app to one replica. Preview apps need
git_providerand no volume; otherwisepreview_apps_enabledis silently turned off. env_varsare stored encrypted and are available both at build time and at runtime.build_envvalues are only passed to this first build and are not stored.X-Idempotencyonly deduplicates creates withdeploy_now: true, where the key is stored on the build operation. The same key with a differentnamereturns409(action: idempotency_key_reused). Withoutdeploy_nownothing records the key, so a retry creates a second deployment (with a suffixed slug).
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
X-IdempotencystringOptional key that makes retries safe. Repeating a request with a key already used for
the same action on the same deployment returns the original operation with 200 OK and
is_replay: true instead of queuing it again. Reusing it for a different action or
deployment returns 409 with action: idempotency_key_reused.
Request body
namestringRequiredDisplay name. Leading and trailing spaces are trimmed. The slug and default hostname are derived from it.
plan_slugstringRequiredSlug of a plan from List deployment plans. Case-insensitive.
repo_urlstringRequiredGit repository to build. Accepts https://, http://, git:// and ssh://git@
URLs, or the git@host:owner/repo.git form. The path must look like
/owner/repo.
git_providerstringSet to github_app to clone through your connected RumptyCloud GitHub App installation (needed for private repositories, previews and status checks). Omit for public repositories.
One ofgithub_app
git_repo_full_namestringowner/repository on GitHub. Required when git_provider is set. Each part may contain only letters, digits, _, . and -.
git_repo_idstringGitHub's numeric repository ID, stored for reference.
branchstringBranch to build. Defaults to main.
Default main
root_directorystringFolder inside the repository to build from, for monorepos. Must be relative and stay inside the repository. Empty or . builds from the root.
app_typestringservice for a long-running server, static for a static site. backend and api are accepted as service; frontend and web as static.
Default serviceOne ofservicestatic
build_methodstringHow to build the image. railpack detects the language and builds automatically. dockerfile uses the repository's Dockerfile.
Default railpackOne ofrailpackdockerfile
build_commandstringOptional command that overrides the detected build step.
start_commandstringOptional command that overrides the detected start command.
health_check_pathstringHTTP path probed to decide the app is healthy. Must start with /, contain no whitespace and be at most 255 characters.
Default /
portintegerPort your app listens on. Zero or negative values use 8080.
Default 8080
auto_deploy_enabledbooleanBuild and deploy automatically on every push to branch (GitHub App repositories).
Default false
security_scan_enabledbooleanScan each built image for known vulnerabilities. On unless you send false. Scanning is a paid add-on.
Default true
preview_apps_enabledbooleanCreate a temporary preview app for each pull request. Only applied when git_provider is set and there is no volume.
Default false
deploy_nowbooleanQueue the first build immediately.
Default false
build_envobjectExtra variables for the first build only. Not stored. Ignored when deploy_now is false.
env_varsarray of objectsEnvironment variables to store on the deployment. Keys must be unique.
Show item attributesHide item attributes
keystringRequiredVariable name. Starts with a letter or underscore, then letters, digits and underscores, up to 128 characters.
valuestringRequiredVariable value. Must not be empty. Trailing newlines are removed (surrounding whitespace is trimmed for env_vars on create).
scopestringKept for older clients. Every variable is available at build time and at runtime whatever you send, and it is stored as build.
One ofbuildruntimeboth
is_secretbooleanMarks the value as secret.
Default true
volume_mount_pathstringAbsolute path to mount a persistent volume at. Send together with
volume_size_gib. Cannot be / or a system directory such as /app, /etc
or /var (use a subdirectory like /var/data), and cannot be under /proc,
/sys or /dev.
volume_size_gibintegerVolume size in GiB, from 1 to 512. Volumes are billed and can only grow later.
min 1 · max 512
scale_to_zero_enabledbooleanLet the app sleep after scale_to_zero_idle_minutes without traffic. It wakes on the next request. Always on for Free plans.
Default false
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps. 0 means the default of 5.
Default 5min 1 · max 1440
min_replicasintegerInstances that are always running. Must be 1 when scale-to-zero is on. 0 means the default.
Default 1min 1 · max 5
max_replicasintegerUpper bound for autoscaling. Must be at least min_replicas, and 1 with a volume or on a Free plan. Each running replica is billed at the plan rate. 0 means the default.
Default 1min 1 · max 5
target_request_rateintegerRequests per second per replica above which a replica is added. 0 means the default.
Default 100min 1 · max 10000
Response
The deployment was created and its first build was queued (deploy_now was true).
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
operation_idstringRequiredUID of the queued operation. Empty when nothing was queued (create without deploy_now, or a plan change with nothing live).
deploymentobjectRequiredShow attributesHide attributes
uidstringRequiredUnique identifier of the deployment.
namestringRequiredDisplay name.
slugstringRequiredURL-safe name, unique in the workspace.
statusstringRequiredbuilding 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_statusstringStatus 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_slugstringRequiredSlug of the deployment's plan.
plan_namestringName of the plan.
vcpuintegerWhole vCPU count of the plan. Coarse; prefer cpu_limit_millis.
cpu_limit_millisintegerCPU limit per replica in millicores.
memory_mibintegerMemory limit per replica in MiB.
monthly_price_centsintegerPlan price per month per replica, in cents. Omitted for free plans.
hourly_price_centsintegerHourly price in whole cents. Omitted when 0.
hourly_price_microsintegerHourly price in millionths of the currency unit. Omitted for free plans.
currencystringISO currency code of the prices.
free_allowance_countintegerPresent on Free plans with the per-account allowance.
repo_urlstringRequiredGit repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.
git_providerstringgithub_app when the repository is connected through the RumptyCloud GitHub App.
git_repo_full_namestringowner/repository on GitHub.
git_repo_idstringGitHub repository ID.
branchstringRequiredBranch that is built.
root_directorystringFolder inside the repository that is built. Omitted when building from the root.
app_typestringRequiredKind of app.
One ofservicestatic
build_methodstringRequiredHow the image is built. image is used by one-click app components, which run a prebuilt image.
One ofrailpackdockerfileimage
build_commandstringBuild command override, if set.
start_commandstringStart command override, if set.
health_check_pathstringPath probed for health.
portintegerRequiredPort the app listens on.
auto_deploy_enabledbooleanRequiredWhether pushes to the branch deploy automatically.
security_scan_enabledbooleanRequiredWhether built images are scanned for vulnerabilities.
preview_apps_enabledbooleanRequiredWhether pull requests get preview apps.
artifact_retentionintegerRequiredHow many built images are kept for rollbacks. 0 keeps all.
previewsarray of objectsLive pull request previews. Only returned by Get a deployment.
Show item attributesHide item attributes
uidstringRequiredUID of the preview deployment.
pr_numberintegerRequiredPull request number.
branchstringRequiredPull request branch.
statusstringRequiredPreview status, using the same values as a deployment's display_status.
commit_shastringCommit of the preview's latest run.
public_urlstringURL of the preview.
expires_atstring (date-time)When the preview is removed automatically.
volume_mount_pathstringMount path of the persistent volume. Omitted without a volume.
volume_size_gibintegerSize of the persistent volume(s) in GiB. Omitted without a volume.
scale_to_zero_enabledbooleanPresent and true when the app sleeps when idle.
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps.
min_replicasintegerInstances always running.
max_replicasintegerAutoscaling upper bound.
target_request_rateintegerRequests per second per replica before scaling out.
current_replicasintegerReplicas running now. Each is billed at the plan rate.
app_uidstringSet when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.
custom_domainstringThe verified custom domain that public_url uses, if any.
last_run_uidstringUID of the most recent run.
last_run_statusstringStatus of the most recent run. Only returned by list and get.
One ofqueuedbuildingreadyfailedcanceled
public_urlstringURL the app is served at. Uses the custom domain once one is verified. Empty after deletion.
default_public_urlstringThe app's URL on the platform domain. Point custom domain CNAME records at its host.
created_atstring (date-time)RequiredWhen the deployment was created.
last_failurestringReadable reason for the last failure. Omitted when there is none.
env_changes_pendingbooleanPresent 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_buildbooleanPresent and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.
crashloopobjectPresent while the platform is holding the app down because it was not healthy.
Show attributesHide attributes
statestringRequiredpaused: 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.
reasonstringWhy the app was taken down.
next_retry_atstring (date-time)Next automatic attempt. Only while paused.
runobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the run.
deployment_uidstringRequiredUID of the deployment.
operation_idstringRequiredUID of the operation that tracks the run. See Get an operation.
triggerstringRequiredWhat started the run.
One ofmanualgit_pushgit_pull_request
statusstringRequiredready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.
One ofqueuedbuildingreadyfailedcanceled
branchstringRequiredBranch the run built.
commit_shastringCommit that was built, when known.
commit_messagestringCommit message or label.
trigger_actorstringWho started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.
trigger_actor_urlstringLink to the actor's profile, when known.
image_digeststringDigest of the built image. Omitted when the run has no image (failed, or deleted).
artifact_size_bytesintegerSize of the stored image in bytes. Omitted when unknown or deleted.
created_atstring (date-time)RequiredWhen the run was queued.
started_atstring (date-time)When work began.
finished_atstring (date-time)When the run finished.
last_failurestringReadable reason the run failed.
security_scanobjectVulnerability scan of the run's image. Present when scanning is enabled.
Show attributesHide attributes
uidstringRequiredUnique identifier of the scan.
statusstringRequiredwarning when critical or high findings exist. failed when the scan itself failed.
One ofqueuedscanningpassedwarningfailednot_scanned
critical_countintegerRequiredCritical findings.
high_countintegerRequiredHigh findings.
medium_countintegerRequiredMedium findings.
low_countintegerRequiredLow findings.
unknown_countintegerRequiredFindings of unknown severity.
scannerstringScanner used.
started_atstring (date-time)When the scan started.
finished_atstring (date-time)When the scan finished.
scanned_atstring (date-time)Same as finished_at.
vulnerabilitiesarray of objectsIndividual findings. Only returned by Get a deployment run.
Show item attributesHide item attributes
idstringRequiredVulnerability ID, such as a CVE.
severitystringRequiredSeverity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.
package_namestringRequiredAffected package.
installed_versionstringInstalled version.
fixed_versionstringFirst version with a fix, if any.
titlestringShort title.
descriptionstringLonger description.
sourcestringWhere the package was found, such as the OS release or a lockfile.
advisory_urlstringLink to the advisory.
statusstringRequiredStatus of the operation (queued for a new request; the original operation's status, such as running or succeeded, on a replay). Without an operation, the deployment status on create or completed on a plan change.
events_urlstringPath of the server-sent events stream with the operation's progress. Omitted without an operation.
is_replaybooleanRequiredtrue when an X-Idempotency key was reused and the original operation is returned instead of a new one.
is_completedbooleantrue when a replayed operation has already finished. Omitted unless true.
Response
The deployment was created without a build (deploy_now was false or omitted). operation_id is empty and status is the deployment's status.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
operation_idstringRequiredUID of the queued operation. Empty when nothing was queued (create without deploy_now, or a plan change with nothing live).
deploymentobjectRequiredShow attributesHide attributes
uidstringRequiredUnique identifier of the deployment.
namestringRequiredDisplay name.
slugstringRequiredURL-safe name, unique in the workspace.
statusstringRequiredbuilding 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_statusstringStatus 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_slugstringRequiredSlug of the deployment's plan.
plan_namestringName of the plan.
vcpuintegerWhole vCPU count of the plan. Coarse; prefer cpu_limit_millis.
cpu_limit_millisintegerCPU limit per replica in millicores.
memory_mibintegerMemory limit per replica in MiB.
monthly_price_centsintegerPlan price per month per replica, in cents. Omitted for free plans.
hourly_price_centsintegerHourly price in whole cents. Omitted when 0.
hourly_price_microsintegerHourly price in millionths of the currency unit. Omitted for free plans.
currencystringISO currency code of the prices.
free_allowance_countintegerPresent on Free plans with the per-account allowance.
repo_urlstringRequiredGit repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.
git_providerstringgithub_app when the repository is connected through the RumptyCloud GitHub App.
git_repo_full_namestringowner/repository on GitHub.
git_repo_idstringGitHub repository ID.
branchstringRequiredBranch that is built.
root_directorystringFolder inside the repository that is built. Omitted when building from the root.
app_typestringRequiredKind of app.
One ofservicestatic
build_methodstringRequiredHow the image is built. image is used by one-click app components, which run a prebuilt image.
One ofrailpackdockerfileimage
build_commandstringBuild command override, if set.
start_commandstringStart command override, if set.
health_check_pathstringPath probed for health.
portintegerRequiredPort the app listens on.
auto_deploy_enabledbooleanRequiredWhether pushes to the branch deploy automatically.
security_scan_enabledbooleanRequiredWhether built images are scanned for vulnerabilities.
preview_apps_enabledbooleanRequiredWhether pull requests get preview apps.
artifact_retentionintegerRequiredHow many built images are kept for rollbacks. 0 keeps all.
previewsarray of objectsLive pull request previews. Only returned by Get a deployment.
Show item attributesHide item attributes
uidstringRequiredUID of the preview deployment.
pr_numberintegerRequiredPull request number.
branchstringRequiredPull request branch.
statusstringRequiredPreview status, using the same values as a deployment's display_status.
commit_shastringCommit of the preview's latest run.
public_urlstringURL of the preview.
expires_atstring (date-time)When the preview is removed automatically.
volume_mount_pathstringMount path of the persistent volume. Omitted without a volume.
volume_size_gibintegerSize of the persistent volume(s) in GiB. Omitted without a volume.
scale_to_zero_enabledbooleanPresent and true when the app sleeps when idle.
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps.
min_replicasintegerInstances always running.
max_replicasintegerAutoscaling upper bound.
target_request_rateintegerRequests per second per replica before scaling out.
current_replicasintegerReplicas running now. Each is billed at the plan rate.
app_uidstringSet when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.
custom_domainstringThe verified custom domain that public_url uses, if any.
last_run_uidstringUID of the most recent run.
last_run_statusstringStatus of the most recent run. Only returned by list and get.
One ofqueuedbuildingreadyfailedcanceled
public_urlstringURL the app is served at. Uses the custom domain once one is verified. Empty after deletion.
default_public_urlstringThe app's URL on the platform domain. Point custom domain CNAME records at its host.
created_atstring (date-time)RequiredWhen the deployment was created.
last_failurestringReadable reason for the last failure. Omitted when there is none.
env_changes_pendingbooleanPresent 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_buildbooleanPresent and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.
crashloopobjectPresent while the platform is holding the app down because it was not healthy.
Show attributesHide attributes
statestringRequiredpaused: 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.
reasonstringWhy the app was taken down.
next_retry_atstring (date-time)Next automatic attempt. Only while paused.
runobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the run.
deployment_uidstringRequiredUID of the deployment.
operation_idstringRequiredUID of the operation that tracks the run. See Get an operation.
triggerstringRequiredWhat started the run.
One ofmanualgit_pushgit_pull_request
statusstringRequiredready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.
One ofqueuedbuildingreadyfailedcanceled
branchstringRequiredBranch the run built.
commit_shastringCommit that was built, when known.
commit_messagestringCommit message or label.
trigger_actorstringWho started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.
trigger_actor_urlstringLink to the actor's profile, when known.
image_digeststringDigest of the built image. Omitted when the run has no image (failed, or deleted).
artifact_size_bytesintegerSize of the stored image in bytes. Omitted when unknown or deleted.
created_atstring (date-time)RequiredWhen the run was queued.
started_atstring (date-time)When work began.
finished_atstring (date-time)When the run finished.
last_failurestringReadable reason the run failed.
security_scanobjectVulnerability scan of the run's image. Present when scanning is enabled.
Show attributesHide attributes
uidstringRequiredUnique identifier of the scan.
statusstringRequiredwarning when critical or high findings exist. failed when the scan itself failed.
One ofqueuedscanningpassedwarningfailednot_scanned
critical_countintegerRequiredCritical findings.
high_countintegerRequiredHigh findings.
medium_countintegerRequiredMedium findings.
low_countintegerRequiredLow findings.
unknown_countintegerRequiredFindings of unknown severity.
scannerstringScanner used.
started_atstring (date-time)When the scan started.
finished_atstring (date-time)When the scan finished.
scanned_atstring (date-time)Same as finished_at.
vulnerabilitiesarray of objectsIndividual findings. Only returned by Get a deployment run.
Show item attributesHide item attributes
idstringRequiredVulnerability ID, such as a CVE.
severitystringRequiredSeverity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.
package_namestringRequiredAffected package.
installed_versionstringInstalled version.
fixed_versionstringFirst version with a fix, if any.
titlestringShort title.
descriptionstringLonger description.
sourcestringWhere the package was found, such as the OS release or a lockfile.
advisory_urlstringLink to the advisory.
statusstringRequiredStatus of the operation (queued for a new request; the original operation's status, such as running or succeeded, on a replay). Without an operation, the deployment status on create or completed on a plan change.
events_urlstringPath of the server-sent events stream with the operation's progress. Omitted without an operation.
is_replaybooleanRequiredtrue when an X-Idempotency key was reused and the original operation is returned instead of a new one.
is_completedbooleantrue when a replayed operation has already finished. Omitted unless true.
Response
Replay. The X-Idempotency key was already used for this action on this deployment, so
the original operation is returned and nothing is queued. status is the operation's
current status and deployment its current state (or status: deleted if it is gone).
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
operation_idstringRequiredUID of the queued operation. Empty when nothing was queued (create without deploy_now, or a plan change with nothing live).
deploymentobjectRequiredShow attributesHide attributes
uidstringRequiredUnique identifier of the deployment.
namestringRequiredDisplay name.
slugstringRequiredURL-safe name, unique in the workspace.
statusstringRequiredbuilding 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_statusstringStatus 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_slugstringRequiredSlug of the deployment's plan.
plan_namestringName of the plan.
vcpuintegerWhole vCPU count of the plan. Coarse; prefer cpu_limit_millis.
cpu_limit_millisintegerCPU limit per replica in millicores.
memory_mibintegerMemory limit per replica in MiB.
monthly_price_centsintegerPlan price per month per replica, in cents. Omitted for free plans.
hourly_price_centsintegerHourly price in whole cents. Omitted when 0.
hourly_price_microsintegerHourly price in millionths of the currency unit. Omitted for free plans.
currencystringISO currency code of the prices.
free_allowance_countintegerPresent on Free plans with the per-account allowance.
repo_urlstringRequiredGit repository the deployment builds from. Empty for one-click app components, which run a prebuilt image.
git_providerstringgithub_app when the repository is connected through the RumptyCloud GitHub App.
git_repo_full_namestringowner/repository on GitHub.
git_repo_idstringGitHub repository ID.
branchstringRequiredBranch that is built.
root_directorystringFolder inside the repository that is built. Omitted when building from the root.
app_typestringRequiredKind of app.
One ofservicestatic
build_methodstringRequiredHow the image is built. image is used by one-click app components, which run a prebuilt image.
One ofrailpackdockerfileimage
build_commandstringBuild command override, if set.
start_commandstringStart command override, if set.
health_check_pathstringPath probed for health.
portintegerRequiredPort the app listens on.
auto_deploy_enabledbooleanRequiredWhether pushes to the branch deploy automatically.
security_scan_enabledbooleanRequiredWhether built images are scanned for vulnerabilities.
preview_apps_enabledbooleanRequiredWhether pull requests get preview apps.
artifact_retentionintegerRequiredHow many built images are kept for rollbacks. 0 keeps all.
previewsarray of objectsLive pull request previews. Only returned by Get a deployment.
Show item attributesHide item attributes
uidstringRequiredUID of the preview deployment.
pr_numberintegerRequiredPull request number.
branchstringRequiredPull request branch.
statusstringRequiredPreview status, using the same values as a deployment's display_status.
commit_shastringCommit of the preview's latest run.
public_urlstringURL of the preview.
expires_atstring (date-time)When the preview is removed automatically.
volume_mount_pathstringMount path of the persistent volume. Omitted without a volume.
volume_size_gibintegerSize of the persistent volume(s) in GiB. Omitted without a volume.
scale_to_zero_enabledbooleanPresent and true when the app sleeps when idle.
scale_to_zero_idle_minutesintegerIdle minutes before the app sleeps.
min_replicasintegerInstances always running.
max_replicasintegerAutoscaling upper bound.
target_request_rateintegerRequests per second per replica before scaling out.
current_replicasintegerReplicas running now. Each is billed at the plan rate.
app_uidstringSet when the deployment is a component of a one-click app. Such deployments cannot be deleted or change plan on their own.
custom_domainstringThe verified custom domain that public_url uses, if any.
last_run_uidstringUID of the most recent run.
last_run_statusstringStatus of the most recent run. Only returned by list and get.
One ofqueuedbuildingreadyfailedcanceled
public_urlstringURL the app is served at. Uses the custom domain once one is verified. Empty after deletion.
default_public_urlstringThe app's URL on the platform domain. Point custom domain CNAME records at its host.
created_atstring (date-time)RequiredWhen the deployment was created.
last_failurestringReadable reason for the last failure. Omitted when there is none.
env_changes_pendingbooleanPresent 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_buildbooleanPresent and true when the pending changes need a rebuild (Deploy a deployment) rather than Apply environment changes. Only returned by get.
crashloopobjectPresent while the platform is holding the app down because it was not healthy.
Show attributesHide attributes
statestringRequiredpaused: 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.
reasonstringWhy the app was taken down.
next_retry_atstring (date-time)Next automatic attempt. Only while paused.
runobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the run.
deployment_uidstringRequiredUID of the deployment.
operation_idstringRequiredUID of the operation that tracks the run. See Get an operation.
triggerstringRequiredWhat started the run.
One ofmanualgit_pushgit_pull_request
statusstringRequiredready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.
One ofqueuedbuildingreadyfailedcanceled
branchstringRequiredBranch the run built.
commit_shastringCommit that was built, when known.
commit_messagestringCommit message or label.
trigger_actorstringWho started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.
trigger_actor_urlstringLink to the actor's profile, when known.
image_digeststringDigest of the built image. Omitted when the run has no image (failed, or deleted).
artifact_size_bytesintegerSize of the stored image in bytes. Omitted when unknown or deleted.
created_atstring (date-time)RequiredWhen the run was queued.
started_atstring (date-time)When work began.
finished_atstring (date-time)When the run finished.
last_failurestringReadable reason the run failed.
security_scanobjectVulnerability scan of the run's image. Present when scanning is enabled.
Show attributesHide attributes
uidstringRequiredUnique identifier of the scan.
statusstringRequiredwarning when critical or high findings exist. failed when the scan itself failed.
One ofqueuedscanningpassedwarningfailednot_scanned
critical_countintegerRequiredCritical findings.
high_countintegerRequiredHigh findings.
medium_countintegerRequiredMedium findings.
low_countintegerRequiredLow findings.
unknown_countintegerRequiredFindings of unknown severity.
scannerstringScanner used.
started_atstring (date-time)When the scan started.
finished_atstring (date-time)When the scan finished.
scanned_atstring (date-time)Same as finished_at.
vulnerabilitiesarray of objectsIndividual findings. Only returned by Get a deployment run.
Show item attributesHide item attributes
idstringRequiredVulnerability ID, such as a CVE.
severitystringRequiredSeverity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.
package_namestringRequiredAffected package.
installed_versionstringInstalled version.
fixed_versionstringFirst version with a fix, if any.
titlestringShort title.
descriptionstringLonger description.
sourcestringWhere the package was found, such as the OS release or a lockfile.
advisory_urlstringLink to the advisory.
statusstringRequiredStatus of the operation (queued for a new request; the original operation's status, such as running or succeeded, on a replay). Without an operation, the deployment status on create or completed on a plan change.
events_urlstringPath of the server-sent events stream with the operation's progress. Omitted without an operation.
is_replaybooleanRequiredtrue when an X-Idempotency key was reused and the original operation is returned instead of a new one.
is_completedbooleantrue when a replayed operation has already finished. Omitted unless true.
Errors
| Status | Meaning |
|---|---|
400 | Validation failed. Possible messages include: invalid request (malformed JSON, or name, plan_slug or repo_url missing), name is required, repo_url must be a valid git repository URL, repo_url must point to a git repository, unsupported git provider, git_repo_full_name is required, git_repo_full_name must look like owner/repository, root_directory must be relative, app_type must be service or static, invalid build method, health_check_path must start with /, volume size must be between 1 and 512 GiB, invalid deployment plan, deployment plan is not available, max_replicas must be between 1 and 5, deployments with a persistent volume cannot scale beyond 1 replica, the Free plan runs a single instance; switch to a paid plan to scale out, the Free app limit message, duplicate environment variable <KEY>, environment variable value is required, a root directory not found on the branch, and Connect GitHub before deploying this repository. |
401 | The API key is missing, invalid, expired or revoked. |
402 | The account is past due, so new paid resources cannot be created. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
409 | The X-Idempotency key was already used for a different action or a different resource. Send a new key. |
428 | You have not accepted the acceptable use policy yet. |
Errors use the standard error format.