Skip to main content
POST
Set the live deployment

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

Idempotency-Key
string
required

Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9\-_.:]+$

Path Parameters

appId
string
required

App ID: app- followed by lowercase letters, digits and hyphens, ending in a letter or digit. It is part of the app’s hostname, so your organization’s subdomain and the ID together must fit 63 characters.

Maximum string length: 63
Pattern: ^app-[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

Body

application/json
deploymentId
string<uuid>
required

An earlier successful deployment of this app.

expectedLiveDeploymentId
string<uuid> | null
required

The live deployment you expect, from getApp; null before the first deployment.

allowMigrationsAhead
boolean
default:false

Set true to serve a deployment that lacks migrations the database already has. Migrations are never reversed.

Response

The same Idempotency-Key replayed a finished attempt.

id
string<uuid>
required
appId
string
required

App ID: app- followed by lowercase letters, digits and hyphens, ending in a letter or digit. It is part of the app’s hostname, so your organization’s subdomain and the ID together must fit 63 characters.

Maximum string length: 63
Pattern: ^app-[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$
sourceSha
string
required
shape
enum<string> | null
required
Available options:
full,
service,
instructions,
null
bundleSha256
string | null
required
Pattern: ^[0-9a-f]{64}$
runtimeUrl
string<uri> | null
required
mcpUrl
string<uri> | null
required
createdByEmail
string | null
required
createdAt
string<date-time>
required
completedAt
string<date-time> | null
required
idempotencyExpiresAt
string<date-time> | null
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
stage
string
required
checks
object | null
required
effects
object
required
interface
object | null
required
error
object | null
required
live
boolean
required

True when production serves this deployment. Branch previews report false.

target
object
previewUrl
string<uri>

Private URL for the latest activated build of this branch. Returned after success.

buildId
string<uuid>

Build activated by this preview attempt. Identical content can reuse an existing build.