Skip to main content
GET
Get a deployment's status

Authorizations

Authorization
string
header
required

A workspace-scoped Cloud JWT.

Path Parameters

id
string
required

Query Parameters

picked
boolean

Set by the Cloud editor's backend when a person picks this deployment or makes it the workspace default; the pick is remembered only when the request comes on the token the editor's backend mints for that pick, and ignored from any other caller. Has no effect on the answer.

Response

OK

id
string
required
status
enum<string>
required

Lifecycle state. unhealthy is a recoverable post-ready state: the deployment was serving but its endpoint degraded or vanished, and the control plane will move it back to ready if it recovers. stop_failed means a stop ran but could not release the compute, so the deployment may still be holding (and billing for) its endpoint; it is not terminal, and stopping it again retries the release. stopped and failed are terminal.

Available options:
queued,
provisioning,
starting,
ready,
unhealthy,
stopping,
stop_failed,
stopped,
failed
releaseId
string
required

The cut release this deployment runs.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
projectId
string

The project the deployment belongs to, set when it is created and never changed. Absent for a deployment in the workspace's default project. It says where the deployment's runs and spend are counted, not what the caller may do to it.

name
string | null

The deployment's name, unique among its build's live deployments; null on a deployment created before names until it is given one.

computeConfig
object

The requested serverless shape. The endpoint autoscales between min and max workers on demand (min 0 scales to zero when idle). region names where the deployment runs, at any level the catalog lists: the endpoint and its network volume stay bound to that placement. Changing GPU class or region creates a separate copy while preserving the deployment id and URL. Deployment reads report serving settings while ready; stopped/failed reads report accepted next-start settings when a compute request is stored.

requestedComputeConfig
object

Target compute requested by a pending move or stored for the next start. Absent after cutover or cancellation. While the source is ready, computeConfig remains its serving settings until cutover. A stopped or failed deployment also exposes its next-start settings in computeConfig.

editor
boolean

Whether the deployment keeps a CPU server answering its custom nodes' own routes in the editor. Answered on a read, a rename and an editor change; absent on the answer to a create or a compute edit.

endpointUrl
string | null

The live endpoint once the deployment is ready; null otherwise.

error
string | null

A sentence for the customer saying what went wrong and what to do: why the deployment failed when the status is failed, or that the last stop did not finish and should be retried when the status is stop_failed; null otherwise. It never carries the GPU provider's own error, and is not meant to be parsed.

stopReason
enum<string> | null

Why the deployment was stopped, set when the status is stopped: user (explicit stop), credits (out of funds), or policy (spend gate). Lets the UI show an involuntary credit stop differently from a user stop. Null when the deployment was never stopped or was started again.

Available options:
user,
credits,
policy
serving
object | null

What the deployment's compute is actually doing right now, as of the last control-plane sample. Descriptive only: status is the lifecycle signal and is never derived from these counts, so a sample that looks healthy beside an unhealthy status is the two answering different questions rather than a disagreement. Present once the control plane has sampled this deployment's current compute, which usually happens within a sampling interval of that compute appearing, so a booting deployment can show workers coming up. A stopped deployment keeps its last sample rather than clearing it, and so does a deleted one. Null before that first sample, and for the whole life of a deployment on a GPU provider that is not sampled where it runs. Null again once a deployment fails, or once it is started again, which discards the sample taken before it. The counts are a snapshot, not a time series, and can be stale: a deployment whose endpoint stopped answering keeps its last sample, so read sampledAt and age it out rather than trusting counts of unknown vintage.

progress
object | null

Where a deployment that is coming up has got to, as of updatedAt. Present while the status is provisioning or starting and null otherwise: a ready deployment has none, and neither has a stopped or failed one. Descriptive only: status is the lifecycle signal, and the events timeline is the history of what finished, where this is the one object that says what is happening now. It is rewritten every few seconds in every step, the two that count nothing included, so poll the deployment to follow it. The writes are best-effort and never hold a deploy up, so a sample can be missed; read updatedAt and treat an old one as stale rather than as a deploy that stopped. The byte counts, the rate and the time left are present only while step is staging_models. Staging that is retried starts a new attempt and counts again from what is already in place, so bytesDone can fall between two reads that straddle a retry.

waitingForBuild
string

The release whose build this deployment waits for before it starts. Present only while the status is queued for that build; absent otherwise. Answered on a read and a move.

revision
integer | null

The deployment's current revision, 1 at its create and one more per update. Answered on a read and a move; absent on the answer to a compute edit, and for a deployment with no record or whose serving copy is gone.

pendingUpdate
object | null

An update that waits for its release's running copy to be ready, or an unfinished cancellation of that copy. Cancellation keeps the original baseRevision and since so existing clients can retry stop/delete after dispatch failure. An unfinished cancellation reads failed, keeping its dismissal available even while the copy is stopping. Null after the move or cancellation finishes.

releases
object[]

Every release the deployment runs a copy of, the one it serves, each it keeps from an earlier update and one an update waits on, with what each costs. Answered on a read of one deployment.

addedModels
object[]

The model files added straight to the deployment, as the models route lists them. Answered on a read of one deployment that has any, and absent where it has none.

modelsAddEnabled
boolean

Always true on a read of one deployment, as the models route's addEnabled. Not whether this deployment can take the file now, and not whether a file can be removed.

deletedAt
string<date-time> | null

When this deployment was deleted, stamped once its compute was released; null while it is live. A deleted deployment is kept rather than removed, so it stays listed and fetchable as the record of what was deleted, keeping the status its release settled it at (normally stopped). It cannot be started again.

deletedBy
string | null

The user who deleted it, so a deleted deployment carries who and not only when. Null while it is live, and null when the delete had no acting user behind it.