Skip to content

Deployment API

REST endpoints for the Deployment area of Lessly.

The Deployment area publishes 109 REST endpoints. Paths are relative to https://api.lessly.com; see Authentication for the required header.

POST/deployment/alerts

Create a threshold alert rule for a service or managed service

MCP tool: deployment_alert_create

Parameters

NameInTypeRequiredDescription
targetKindbodystringone of: service, managed-service
targetIdbodystring (uuid)
metricbodystringone of: cpu, memory, net_in, net_out, disk
comparatorbodystringone of: gt, lt
thresholdbodynumber
enabledbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring
statestringone of: ok, firing
metricstringone of: cpu, memory, net_in, net_out, disk
enabledboolean
targetIdstring
createdAtstring
productIdstring
thresholdnumber
updatedAtstring
comparatorstringone of: gt, lt
targetKindstringone of: service, managed-service
environmentIdstring
lastEvaluatedAtstring | null
lastStateChangeAtstring | null
DELETE/deployment/alerts/:id

Delete an alert rule

MCP tool: deployment_alert_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
deletedboolean
PATCH/deployment/alerts/:id

Update an alert rule (threshold, comparator, enabled)

MCP tool: deployment_alert_update

Parameters

NameInTypeRequiredDescription
comparatorbodystringone of: gt, lt
thresholdbodynumber
enabledbodyboolean
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
statestringone of: ok, firing
metricstringone of: cpu, memory, net_in, net_out, disk
enabledboolean
targetIdstring
createdAtstring
productIdstring
thresholdnumber
updatedAtstring
comparatorstringone of: gt, lt
targetKindstringone of: service, managed-service
environmentIdstring
lastEvaluatedAtstring | null
lastStateChangeAtstring | null
POST/deployment/analytics/query

Ask a natural-language question about THIS product's deployment data (deployments, deploy events, environments, services, domains, managed services) and get a computed answer. Returns the generated SQL, the result rows, and a natural-language answer. Read-only; scoped to the current product.

MCP tool: deployment_analytics_query

Parameters

NameInTypeRequiredDescription
qbodystring

Response

Returns object.

FieldTypeAlwaysDescription
sqlstring
rowsobject[]
answerstring
truncatedboolean
explanationstring
GET/deployment/builds/:id

Get a single build by deployment id

MCP tool: deployment_build_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
lastErrorMessagestring | null
POST/deployment/cloud-sql/databases

Create a logical database (with its own role) on the managed Postgres instance.

MCP tool: deployment_cloud_sql_database_create

Parameters

NameInTypeRequiredDescription
instanceIdbodystring (uuid)
labelbodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring
dbNamestring
statusstring
roleNamestring
createdAtstring
productIdstring
updatedAtstring
instanceIdstring
lastErrorMessagestring | null
DELETE/deployment/cloud-sql/databases/:databaseId

Delete a logical managed Postgres database (detaches from all services first).

MCP tool: deployment_cloud_sql_database_delete

Parameters

NameInTypeRequiredDescription
databaseIdpathstring (uuid)
GET/deployment/cloud-sql/databases/:databaseId

Get a logical managed Postgres database by id.

MCP tool: deployment_cloud_sql_database_get

Parameters

NameInTypeRequiredDescription
databaseIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
dbNamestring
statusstring
roleNamestring
createdAtstring
productIdstring
updatedAtstring
instanceIdstring
lastErrorMessagestring | null
POST/deployment/cloud-sql/databases/attach

Attach a managed Postgres database to a service in an environment; injects DATABASE_URL (and PG* vars) as a secret.

MCP tool: deployment_cloud_sql_database_attach

Parameters

NameInTypeRequiredDescription
databaseIdbodystring (uuid)
serviceIdbodystring (uuid)
environmentIdbodystring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
statusstring
serviceIdstring
databaseIdstring
environmentIdstring
POST/deployment/cloud-sql/databases/detach

Detach a managed Postgres database from a service; removes the injected connection secrets. Does not delete the database.

MCP tool: deployment_cloud_sql_database_detach

Parameters

NameInTypeRequiredDescription
attachmentIdbodystring (uuid)
GET/deployment/cloud-sql/instances

List the product's managed Postgres (Cloud SQL) instance(s).

MCP tool: deployment_cloud_sql_instance_list

Parameters

No parameters.

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
POST/deployment/cloud-sql/instances

Provision the product's managed Postgres instance on Google Cloud SQL — fully managed by Google Cloud, with automated backups and point-in-time recovery, a dedicated instance, and easy resize.

MCP tool: deployment_cloud_sql_instance_create

Parameters

NameInTypeRequiredDescription
labelbodystring
tierbodystringone of: db-custom-1-3840, db-custom-2-7680, db-custom-4-15360
pgVersionbodystringone of: 16, 17, 18

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
DELETE/deployment/cloud-sql/instances/:instanceId

Delete the managed Postgres (Cloud SQL) instance (must have no databases).

MCP tool: deployment_cloud_sql_instance_delete

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)
GET/deployment/cloud-sql/instances/:instanceId

Get the product's managed Postgres (Cloud SQL) instance and its status.

MCP tool: deployment_cloud_sql_instance_get

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
GET/deployment/cloud-sql/instances/:instanceId/backups

List backup runs for the managed Postgres (Cloud SQL) instance.

MCP tool: deployment_cloud_sql_instance_backup_list

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
typestring
errorstring | null
statusstring
endTimestring | null
startTimestring | null
descriptionstring | null
POST/deployment/cloud-sql/instances/:instanceId/backups

Take an on-demand backup of the managed Postgres (Cloud SQL) instance.

MCP tool: deployment_cloud_sql_instance_backup

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
GET/deployment/cloud-sql/instances/:instanceId/databases

List the logical managed Postgres databases on an instance.

MCP tool: deployment_cloud_sql_database_list

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
dbNamestring
statusstring
roleNamestring
createdAtstring
productIdstring
updatedAtstring
instanceIdstring
lastErrorMessagestring | null
GET/deployment/cloud-sql/instances/:instanceId/logs

Snapshot the last N Postgres log lines for a managed Postgres (Cloud SQL) instance.

MCP tool: deployment_cloud_sql_logs

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)
tailqueryinteger

Response

Returns object.

FieldTypeAlwaysDescription
linesstring[]
PATCH/deployment/cloud-sql/instances/:instanceId/resize

Resize the managed Postgres (Cloud SQL) instance to a different tier (CPU/RAM).

MCP tool: deployment_cloud_sql_instance_resize

Parameters

NameInTypeRequiredDescription
instanceIdpathstring (uuid)
tierbodystringone of: db-custom-1-3840, db-custom-2-7680, db-custom-4-15360

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
POST/deployment/cloud-sql/instances/:instanceId/restore

Restore the managed Postgres (Cloud SQL) instance IN-PLACE from a backup run (destructive — overwrites current data).

MCP tool: deployment_cloud_sql_instance_restore

Parameters

NameInTypeRequiredDescription
backupRunIdbodystring
instanceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
tierstring
labelstring
regionstring
statusstring
createdAtstring
pgVersionstring
privateIpstring | null
productIdstring
updatedAtstring
pitrEnabledboolean | null
backupsEnabledboolean | null
connectionNamestring | null
lastErrorMessagestring | null
backupConfigObservedAtstring | null
POST/deployment/cloud-sql/instances/backfill-log-flags

Apply this product's managed Postgres (Cloud SQL) log flags to existing instance(s), idempotently (safe to re-run; zero downtime). Optionally target one instanceId.

MCP tool: deployment_cloud_sql_backfill_log_flags

Parameters

NameInTypeRequiredDescription
instanceIdbodystring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
failedobject[]
patchednumber
scannednumber
skippedNoDriftnumber
restartRequiredobject[]
skippedNotReadynumber
skippedRestartRequirednumber
GET/deployment/deployments/:id

Get a single deployment by id

MCP tool: deployment_deployment_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed, Sleeping, Stopped, WakeFailed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
updatedAtstring
deployedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
configSnapshotobject
lastErrorMessagestring | null
rolledBackFromDeploymentIdstring (uuid) | null
GET/deployment/domains/:domainId/routes

List path-routes for a domain

MCP tool: deployment_domain_routes_list

Parameters

NameInTypeRequiredDescription
domainIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
domainIdstring (uuid)
priorityinteger
createdAtstring
isDefaultboolean
serviceIdstring (uuid)
updatedAtstring
pathPrefixstring
POST/deployment/domains/:domainId/routes

Add a path-route to a custom domain

MCP tool: deployment_domain_routes_add

Parameters

NameInTypeRequiredDescription
domainIdpathstring (uuid)
pathPrefixbodystring
serviceIdbodystring (uuid)
isDefaultbodyboolean
prioritybodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
domainIdstring (uuid)
priorityinteger
createdAtstring
isDefaultboolean
serviceIdstring (uuid)
updatedAtstring
pathPrefixstring
DELETE/deployment/domains/:domainId/routes/:routeId

Remove a path-route (default route cannot be removed)

MCP tool: deployment_domain_routes_remove

Parameters

NameInTypeRequiredDescription
domainIdpathstring (uuid)
routeIdpathstring (uuid)
PATCH/deployment/domains/:domainId/routes/:routeId

Update a path-route

MCP tool: deployment_domain_routes_update

Parameters

NameInTypeRequiredDescription
domainIdpathstring (uuid)
routeIdpathstring (uuid)
pathPrefixbodystring
serviceIdbodystring (uuid)
prioritybodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
domainIdstring (uuid)
priorityinteger
createdAtstring
isDefaultboolean
serviceIdstring (uuid)
updatedAtstring
pathPrefixstring
DELETE/deployment/domains/:id

Remove a custom domain (auto-domains are removed via service.delete)

MCP tool: deployment_domain_remove

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/domains/:id

Get a domain by id (includes DNS instructions for custom domains awaiting verification)

MCP tool: deployment_domain_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
PATCH/deployment/domains/:id/redirect-www

Toggle the www→apex 301 redirect for an apex custom domain

MCP tool: deployment_domain_redirect_www

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
enabledbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
POST/deployment/domains/:id/verify

Force an out-of-band DNS verification check for a custom domain

MCP tool: deployment_domain_verify

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
GET/deployment/environments

List environments for the current product. Optionally filter by type (persistent or pr-preview).

MCP tool: deployment_environment_list

Parameters

NameInTypeRequiredDescription
typequerystringone of: persistent, pr-preview

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
POST/deployment/environments

Create a new environment

MCP tool: deployment_environment_create

Parameters

NameInTypeRequiredDescription
namebodystring
slugbodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
GET/deployment/environments/:environmentId/alert-events

List recent alert firing/resolved events in an environment

MCP tool: deployment_alert_events_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
limitqueryinteger

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
typestringone of: firing, resolved
valuenumber
metricstringone of: cpu, memory, net_in, net_out, disk
ruleIdstring
targetIdstring
createdAtstring
productIdstring
thresholdnumber
targetKindstringone of: service, managed-service
GET/deployment/environments/:environmentId/alerts

List alert rules in an environment

MCP tool: deployment_alert_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
statestringone of: ok, firing
metricstringone of: cpu, memory, net_in, net_out, disk
enabledboolean
targetIdstring
createdAtstring
productIdstring
thresholdnumber
updatedAtstring
comparatorstringone of: gt, lt
targetKindstringone of: service, managed-service
environmentIdstring
lastEvaluatedAtstring | null
lastStateChangeAtstring | null
GET/deployment/environments/:environmentId/canvas

Get canvas state (nodes + services) for an environment

MCP tool: deployment_canvas_get

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
edgesobject[]
nodesobject[]
servicesobject[]
environmentIdstring (uuid)
PUT/deployment/environments/:environmentId/canvas/nodes/:nodeId

Update position/size of a canvas node

MCP tool: deployment_canvas_move_node

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
nodeIdpathstring (uuid)
xbodynumber
ybodynumber
widthbodynumber
heightbodynumber

Response

Returns object.

FieldTypeAlwaysDescription
xnumber
ynumber
idstring (uuid)
widthnumber | null
heightnumber | null
nodeIdstring (uuid)
nodeKindstringone of: service, volume, managed-service, cloud-sql
createdAtstring
updatedAtstring
GET/deployment/environments/:environmentId/domains

List domains for an environment (auto + custom)

MCP tool: deployment_domain_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
POST/deployment/environments/:environmentId/domains

Register a custom domain for an environment; returns CNAME+TXT DNS instructions

MCP tool: deployment_domain_add

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
hostnamebodystring
defaultServiceIdbodystring (uuid)
pathPrefixbodystring
redirectWwwbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
routesobject[]
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
GET/deployment/environments/:environmentId/events

List deploy events for an environment, newest first

MCP tool: deployment_events_list_by_environment

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
typequerystringone of: deployment.queued, deployment.build.started, deployment.build.succeeded, deployment.build.failed, deployment.deploying, deployment.variable.ignored, deployment.healthcheck.passed, deployment.healthcheck.failed, deployment.healthy, deployment.failed, deployment.replaced, deployment.sourcemaps.uploaded, deployment.sourcemaps.upload-failed, deployment.requeue-failed, deployment.release.started, deployment.release.log, deployment.release.succeeded, deployment.release.failed, replica.restarted, service.scaled, service.restarted, service.restart-failed, domain.verified, domain.tls.issued, domain.tls.failed, domain.www-tls.issued, domain.www-tls.failed, domain.routing.active, domain.routing.failed, domain.removed, domain.governance.mirror-failed, service.slept, service.woke, service.wake_failed, service.sleep-enabled, service.sleep-disabled, service.sleep-enable-failed, cloud-sql.instance.stopped, cloud-sql.instance.started, cloud-sql.instance.stop-failed, cloud-sql.instance.start-failed, suspension.workload-stopped, suspension.workload-restored, managed-service.restarted, managed-service.port-leak-healed
sincequerystring (date-time)
untilquerystring (date-time)
limitqueryinteger

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
typestringone of: deployment.queued, deployment.build.started, deployment.build.succeeded, deployment.build.failed, deployment.deploying, deployment.variable.ignored, deployment.healthcheck.passed, deployment.healthcheck.failed, deployment.healthy, deployment.failed, deployment.replaced, deployment.sourcemaps.uploaded, deployment.sourcemaps.upload-failed, deployment.requeue-failed, deployment.release.started, deployment.release.log, deployment.release.succeeded, deployment.release.failed, replica.restarted, service.scaled, service.restarted, service.restart-failed, domain.verified, domain.tls.issued, domain.tls.failed, domain.www-tls.issued, domain.www-tls.failed, domain.routing.active, domain.routing.failed, domain.removed, domain.governance.mirror-failed, service.slept, service.woke, service.wake_failed, service.sleep-enabled, service.sleep-disabled, service.sleep-enable-failed, cloud-sql.instance.stopped, cloud-sql.instance.started, cloud-sql.instance.stop-failed, cloud-sql.instance.start-failed, suspension.workload-stopped, suspension.workload-restored, managed-service.restarted, managed-service.port-leak-healed
payloadobject
domainIdstring | null
createdAtstring
productIdstring
serviceIdstring | null
deploymentIdstring | null
environmentIdstring | null
GET/deployment/environments/:environmentId/managed-services

List managed services in an environment

MCP tool: deployment_managed_service_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/environments/:environmentId/managed-services

Provision a managed service (e.g. Postgres, Redis) inside an environment

MCP tool: deployment_managed_service_provision

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
namebodystring
slugbodystring
enginebodystringone of: postgres, redis, mysql, mongodb
versionbodystring
storageGiBbodyinteger
databaseNamebodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
GET/deployment/environments/:environmentId/services

List services within an environment

MCP tool: deployment_service_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
modestring
namestring
slugstring
probesobject
sourceobject
commandstring | null
lastRunobject | null
tracingstring
replicasinteger
schedulestring | null
createdAtstring
dependsOnstring[]
nextRunAtstring | null
resourcesobject
updatedAtstring
autoDeployboolean
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
idleMinutesinteger
scaleToZeroboolean
containerPortinteger
environmentIdstring (uuid)
jobTimeoutSecinteger
jobConcurrencystring
buildMachineTypestring | null
scheduleSuspendedboolean
suspendedByBillingboolean
lastReplicasRunninginteger
scaleToZeroEligibilityobject
POST/deployment/environments/:environmentId/services

Create a service inside an environment. mode:'persistent' (the default) is a container kept running; mode:'scheduled' is a job that runs a command and exits. A scheduled service takes schedule (a five-field UTC cron expression — minute hour day-of-month month day-of-week — or null for a job that only ever runs on demand), command (the shell command one run executes), jobTimeoutSec, and jobConcurrency ('forbid' | 'allow' | 'replace'), and accepts no containerPort, replicas or scaleToZero. mode is immutable after create.

MCP tool: deployment_service_create

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
namebodystring
slugbodystring
sourcebodyobject
containerPortbodyinteger
replicasbodyinteger
probesbodyobject
resourcesbodyobject
tracingbodystringone of: off, node, pythonOTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
canvasbodyobject
modebodystringone of: persistent, scheduled'persistent' (a long-running Deployment behind a Service — the default) or 'scheduled' (a k8s CronJob: no port, no replicas, no route). Immutable after create.
schedulebodystring | nullFive-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
commandbodystring | nullShell command a scheduled run executes (`/bin/sh -c <command>`). Scheduled services only; omit it to run the image entrypoint. `null` clears a command that was set and returns the run to the image entrypoint.
jobTimeoutSecbodyintegerWall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
jobConcurrencybodystringone of: forbid, allow, replaceWhat happens when a run is still going at the next tick: 'forbid' (skip the tick), 'allow' (run in parallel) or 'replace' (kill the running one).

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
modestring
namestring
slugstring
probesobject
sourceobject
commandstring | null
lastRunobject | null
tracingstring
replicasinteger
schedulestring | null
createdAtstring
dependsOnstring[]
nextRunAtstring | null
resourcesobject
updatedAtstring
autoDeployboolean
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
idleMinutesinteger
scaleToZeroboolean
containerPortinteger
environmentIdstring (uuid)
jobTimeoutSecinteger
jobConcurrencystring
buildMachineTypestring | null
scheduleSuspendedboolean
suspendedByBillingboolean
lastReplicasRunninginteger
scaleToZeroEligibilityobject
GET/deployment/environments/:environmentId/variables

List environment-scope (shared) variables

MCP tool: deployment_variable_list_env

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
DELETE/deployment/environments/:environmentId/variables/:key

Delete an environment-scope variable by key

MCP tool: deployment_variable_unset_env

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
keypathstring
PUT/deployment/environments/:environmentId/variables/:key

Create or update an environment-scope shared variable

MCP tool: deployment_variable_set_env

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
keypathstring
valuebodystring
isSecretbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
GET/deployment/environments/:environmentId/volumes

List volumes in environment

MCP tool: deployment_volume_list

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
sizeGbinteger
statusstringone of: provisioning, ready, detached, failed
createdAtstring
mountPathstring
updatedAtstring
environmentIdstring (uuid)
lastErrorMessagestring | null
attachedServiceIdstring (uuid) | null
POST/deployment/environments/:environmentId/volumes

Create a volume

MCP tool: deployment_volume_create

Parameters

NameInTypeRequiredDescription
environmentIdpathstring (uuid)
namebodystring
slugbodystring
sizeGbbodyinteger
mountPathbodystring
attachedServiceIdbodystring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
sizeGbinteger
statusstringone of: provisioning, ready, detached, failed
createdAtstring
mountPathstring
updatedAtstring
environmentIdstring (uuid)
lastErrorMessagestring | null
attachedServiceIdstring (uuid) | null
DELETE/deployment/environments/:id

Delete an environment (production cannot be deleted)

MCP tool: deployment_environment_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/environments/:id

Get a single environment by id

MCP tool: deployment_environment_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
PATCH/deployment/environments/:id

Update an environment (name is the only updatable field)

MCP tool: deployment_environment_update

Parameters

NameInTypeRequiredDescription
namebodystring
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
POST/deployment/environments/:id/reconcile

Re-emit the provision or deprovision workflow for an environment, with optional force-finalizer-strip on deprovision

MCP tool: deployment_environment_reconcile

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
forcebodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
POST/deployment/environments/fork

Fork an environment: deep-clone services, variables (not secrets), domains, and volumes from a base environment

MCP tool: deployment_environment_fork

Parameters

NameInTypeRequiredDescription
baseEnvironmentIdbodystring (uuid)
namebodystring
slugbodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
GET/deployment/governance/domains

List Governance-approved base domains the product may add subdomains of

MCP tool: deployment_domain_allowed_list

Parameters

No parameters.

Response

Returns object.

FieldTypeAlwaysDescription
domainsobject[]
GET/deployment/managed-service-types

List available managed service engines and versions

MCP tool: deployment_managed_service_types

Parameters

No parameters.

Response

Returns object.

FieldTypeAlwaysDescription
enginesobject[]
DELETE/deployment/managed-services/:id

Delete a managed service (soft-delete, triggers deprovisioning)

MCP tool: deployment_managed_service_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
GET/deployment/managed-services/:id

Get a managed service by id

MCP tool: deployment_managed_service_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/managed-services/:id/backup

Create a backup snapshot of a managed service

MCP tool: deployment_managed_service_backup

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
GET/deployment/managed-services/:id/backups

List backup snapshots for a managed service

MCP tool: deployment_managed_service_backup_list

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
namestring
pvcNamestring
createdAtstring
readyToUseboolean
restoreSizestring | null
GET/deployment/managed-services/:id/connect-info

Get connection info and variable reference syntax for a managed service

MCP tool: deployment_managed_service_connect_info

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
slugstring
varsobject[]
enginestringone of: postgres, redis, mysql, mongodb
GET/deployment/managed-services/:id/logs

Get pod logs for a managed service

MCP tool: deployment_managed_service_logs

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
tailqueryinteger

Response

Returns object.

FieldTypeAlwaysDescription
linesstring[]
POST/deployment/managed-services/:id/reconcile

Retry provisioning of a managed service that failed

MCP tool: deployment_managed_service_reconcile

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/managed-services/:id/resize

Increase storage size of a managed service (cannot shrink)

MCP tool: deployment_managed_service_resize

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
storageGiBbodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/managed-services/:id/restore

Restore a managed service from a backup snapshot

MCP tool: deployment_managed_service_restore

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
snapshotNamebodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/managed-services/:id/start

Start a stopped managed service

MCP tool: deployment_managed_service_start

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
POST/deployment/managed-services/:id/stop

Stop a running managed service

MCP tool: deployment_managed_service_stop

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
namestring
slugstring
enginestringone of: postgres, redis, mysql, mongodb
statusstring
versionstring
createdAtstring
productIdstring
updatedAtstring
storageGiBnumber
backupPolicyobject
databaseNamestring | null
lastBackupAtstring | null
environmentIdstring
lastErrorMessagestring | null
GET/deployment/metrics

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d). Services return resource metrics (cpu, memory, net_in, net_out) plus HTTP metrics (rps, p50, p95, p99, error_rate); managed services return cpu, memory, net_in, net_out, disk.

MCP tool: deployment_metrics_get

Parameters

NameInTypeRequiredDescription
targetKindquerystringone of: service, managed-service
targetIdquerystring (uuid)
windowquerystringone of: 15m, 1h, 6h, 24h, 7d

Response

Returns object.

FieldTypeAlwaysDescription
seriesobject[]
windowstringone of: 15m, 1h, 6h, 24h, 7d
capacityobject
targetIdstring
targetKindstringone of: service, managed-service
stepSecondsnumber
GET/deployment/preview-environments

List all preview environments

MCP tool: deployment_preview_environment_list

Parameters

No parameters.

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
POST/deployment/preview-environments

Create a preview environment from an open PR

MCP tool: deployment_preview_environment_create

Parameters

NameInTypeRequiredDescription
baseEnvironmentIdbodystring (uuid)
prNumberbodyinteger
prBranchbodystring

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
typestringone of: persistent, pr-preview
statusstringone of: provisioning, ready, provisioning_failed, deprovisioning, deprovisioning_failed
prBranchstring | null
prNumberinteger | null
createdAtstring
expiresAtstring | null
updatedAtstring
isProductionboolean
lastErrorMessagestring | null
baseEnvironmentIdstring (uuid) | null
DELETE/deployment/preview-environments/:id

Delete a preview environment immediately

MCP tool: deployment_preview_environment_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/preview-policies/:baseEnvironmentId

Get preview policy for a base environment (returns defaults if none configured)

MCP tool: deployment_preview_policy_get

Parameters

NameInTypeRequiredDescription
baseEnvironmentIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
enabledboolean
ttlHoursnumber
createdAtstring
updatedAtstring
maxPreviewsnumber
baseEnvironmentIdstring (uuid)
PUT/deployment/preview-policies/:baseEnvironmentId

Configure preview policy for a base environment (enabled, maxPreviews, ttlHours)

MCP tool: deployment_preview_policy_set

Parameters

NameInTypeRequiredDescription
baseEnvironmentIdpathstring (uuid)
enabledbodyboolean
maxPreviewsbodyinteger
ttlHoursbodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
enabledboolean
ttlHoursnumber
createdAtstring
updatedAtstring
maxPreviewsnumber
baseEnvironmentIdstring (uuid)
GET/deployment/product/suspension

Get the product's billing-suspension state (stage, reason, grace deadline) and whether enforcement is active

MCP tool: deployment_suspension_get

Parameters

No parameters.

Response

Returns object.

FieldTypeAlwaysDescription
stagestring | nullone of: warned, production_grace, stopped, cleared
reasonstring | null
changedAtstring | null
graceDeadlinestring | null
enforcementEnabledboolean
GET/deployment/product/variables

List product-scope (global) variables

MCP tool: deployment_variable_list_product

Parameters

No parameters.

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
DELETE/deployment/product/variables/:key

Delete a product-scope variable by key

MCP tool: deployment_variable_unset_product

Parameters

NameInTypeRequiredDescription
keypathstring
PUT/deployment/product/variables/:key

Create or update a product-scope global variable

MCP tool: deployment_variable_set_product

Parameters

NameInTypeRequiredDescription
keypathstring
valuebodystring
isSecretbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
DELETE/deployment/services/:id

Delete a service

MCP tool: deployment_service_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/services/:id

Get a single service by id. A scheduled service (mode:'scheduled') also reports nextRunAt and lastRun — when it fires next and how its most recent run ended.

MCP tool: deployment_service_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
modestring
namestring
slugstring
probesobject
sourceobject
commandstring | null
lastRunobject | null
tracingstring
replicasinteger
schedulestring | null
createdAtstring
dependsOnstring[]
nextRunAtstring | null
resourcesobject
updatedAtstring
autoDeployboolean
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
idleMinutesinteger
scaleToZeroboolean
containerPortinteger
environmentIdstring (uuid)
jobTimeoutSecinteger
jobConcurrencystring
buildMachineTypestring | null
scheduleSuspendedboolean
suspendedByBillingboolean
lastReplicasRunninginteger
scaleToZeroEligibilityobject
PATCH/deployment/services/:id

Update service fields. mode is immutable. On a scheduled service (mode:'scheduled') you may change schedule (five-field UTC cron, or null to leave it on demand only), command, jobTimeoutSec, jobConcurrency ('forbid' | 'allow' | 'replace'), and scheduleSuspended, which pauses or resumes the schedule without losing it.

MCP tool: deployment_service_update

Parameters

NameInTypeRequiredDescription
namebodystring
sourcebodyobject
containerPortbodyinteger
replicasbodyinteger
probesbodyobject
resourcesbodyobject
scaleToZerobodyboolean
idleMinutesbodyinteger
buildMachineTypebodystring | nullone of: E2_MEDIUM, E2_HIGHCPU_8
tracingbodystringone of: off, node, pythonOTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
autoDeploybodybooleanWhether a push to this service's repo+branch queues a deploy. Default true. Turning it off suppresses push-triggered deploys only — manual and API-triggered deploys still work. Applies to git and static sources alike; the UI toggle is currently git-only, so a static service is switched through this field.
schedulebodystring | nullFive-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
scheduleSuspendedbodybooleanPause or resume a scheduled service without losing its schedule.
commandbodystring | nullShell command a scheduled run executes (`/bin/sh -c <command>`). Scheduled services only; omit it to run the image entrypoint. `null` clears a command that was set and returns the run to the image entrypoint.
jobTimeoutSecbodyintegerWall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
jobConcurrencybodystringone of: forbid, allow, replaceWhat happens when a run is still going at the next tick: 'forbid' (skip the tick), 'allow' (run in parallel) or 'replace' (kill the running one).
modebodystring
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
modestring
namestring
slugstring
probesobject
sourceobject
commandstring | null
lastRunobject | null
tracingstring
replicasinteger
schedulestring | null
createdAtstring
dependsOnstring[]
nextRunAtstring | null
resourcesobject
updatedAtstring
autoDeployboolean
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
idleMinutesinteger
scaleToZeroboolean
containerPortinteger
environmentIdstring (uuid)
jobTimeoutSecinteger
jobConcurrencystring
buildMachineTypestring | null
scheduleSuspendedboolean
suspendedByBillingboolean
lastReplicasRunninginteger
scaleToZeroEligibilityobject
POST/deployment/services/:id/restart

Trigger a rolling restart of a service without changing the deployed image

MCP tool: deployment_service_restart

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
POST/deployment/services/:id/scale

Scale a service to N replicas without redeploy (min 0 = stop)

MCP tool: deployment_service_scale

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
replicasbodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
modestring
namestring
slugstring
probesobject
sourceobject
commandstring | null
lastRunobject | null
tracingstring
replicasinteger
schedulestring | null
createdAtstring
dependsOnstring[]
nextRunAtstring | null
resourcesobject
updatedAtstring
autoDeployboolean
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
idleMinutesinteger
scaleToZeroboolean
containerPortinteger
environmentIdstring (uuid)
jobTimeoutSecinteger
jobConcurrencystring
buildMachineTypestring | null
scheduleSuspendedboolean
suspendedByBillingboolean
lastReplicasRunninginteger
scaleToZeroEligibilityobject
POST/deployment/services/:id/wake

Wake a sleeping (scale-to-zero) service

MCP tool: deployment_service_wake

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/services/:serviceId/builds

List builds for a service, newest first

MCP tool: deployment_build_list

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
lastErrorMessagestring | null
POST/deployment/services/:serviceId/cancel

Cancel a non-terminal deployment, releasing the in-progress lock so the service can deploy again

MCP tool: deployment_deployment_cancel

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
deploymentIdbodystring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed, Sleeping, Stopped, WakeFailed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
updatedAtstring
deployedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
configSnapshotobject
lastErrorMessagestring | null
rolledBackFromDeploymentIdstring (uuid) | null
GET/deployment/services/:serviceId/deployments

List deployments for a service (newest first)

MCP tool: deployment_deployment_list

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed, Sleeping, Stopped, WakeFailed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
updatedAtstring
deployedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
configSnapshotobject
lastErrorMessagestring | null
rolledBackFromDeploymentIdstring (uuid) | null
GET/deployment/services/:serviceId/deployments/:deploymentId/build-logs

Snapshot build logs for a deployment (Cloud Logging proxy)

MCP tool: deployment_build_logs

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
deploymentIdpathstring (uuid)
tailqueryinteger
sincequerystring (date-time)

Response

Returns object.

FieldTypeAlwaysDescription
linesobject[]
cursorstring | null
completeboolean
GET/deployment/services/:serviceId/domains

List domains routed to a service (backward-compat)

MCP tool: deployment_domain_list_by_service

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
kindstringone of: auto, custom
hostnamestring
createdAtstring
tlsStatusstringone of: none, pending, issuing, active, failed
updatedAtstring
lastProbeAtstring | null
redirectWwwboolean
wwwTlsStatusstringone of: none, pending, issuing, active, failed
environmentIdstring (uuid)
routingStatusstringone of: provisioning, propagating, active, failed
lastProbeErrorstring | null
dnsInstructionsobject | null
routingRecordTypestringone of: A, CNAME
verificationTokenstring | null
verificationStatusstringone of: pending_dns, verified, dns_failed
lastVerificationErrorobject | null
lastVerificationCheckAtstring | null
tlsCertificateExpiresAtstring | null
GET/deployment/services/:serviceId/events

List deploy events for a service, newest first

MCP tool: deployment_events_list_by_service

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
typequerystringone of: deployment.queued, deployment.build.started, deployment.build.succeeded, deployment.build.failed, deployment.deploying, deployment.variable.ignored, deployment.healthcheck.passed, deployment.healthcheck.failed, deployment.healthy, deployment.failed, deployment.replaced, deployment.sourcemaps.uploaded, deployment.sourcemaps.upload-failed, deployment.requeue-failed, deployment.release.started, deployment.release.log, deployment.release.succeeded, deployment.release.failed, replica.restarted, service.scaled, service.restarted, service.restart-failed, domain.verified, domain.tls.issued, domain.tls.failed, domain.www-tls.issued, domain.www-tls.failed, domain.routing.active, domain.routing.failed, domain.removed, domain.governance.mirror-failed, service.slept, service.woke, service.wake_failed, service.sleep-enabled, service.sleep-disabled, service.sleep-enable-failed, cloud-sql.instance.stopped, cloud-sql.instance.started, cloud-sql.instance.stop-failed, cloud-sql.instance.start-failed, suspension.workload-stopped, suspension.workload-restored, managed-service.restarted, managed-service.port-leak-healed
sincequerystring (date-time)
untilquerystring (date-time)
limitqueryinteger
deploymentIdquerystring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
typestringone of: deployment.queued, deployment.build.started, deployment.build.succeeded, deployment.build.failed, deployment.deploying, deployment.variable.ignored, deployment.healthcheck.passed, deployment.healthcheck.failed, deployment.healthy, deployment.failed, deployment.replaced, deployment.sourcemaps.uploaded, deployment.sourcemaps.upload-failed, deployment.requeue-failed, deployment.release.started, deployment.release.log, deployment.release.succeeded, deployment.release.failed, replica.restarted, service.scaled, service.restarted, service.restart-failed, domain.verified, domain.tls.issued, domain.tls.failed, domain.www-tls.issued, domain.www-tls.failed, domain.routing.active, domain.routing.failed, domain.removed, domain.governance.mirror-failed, service.slept, service.woke, service.wake_failed, service.sleep-enabled, service.sleep-disabled, service.sleep-enable-failed, cloud-sql.instance.stopped, cloud-sql.instance.started, cloud-sql.instance.stop-failed, cloud-sql.instance.start-failed, suspension.workload-stopped, suspension.workload-restored, managed-service.restarted, managed-service.port-leak-healed
payloadobject
domainIdstring | null
createdAtstring
productIdstring
serviceIdstring | null
deploymentIdstring | null
environmentIdstring | null
POST/deployment/services/:serviceId/exec

Run a command against a service. mode:"exec" (default) execs non-interactively into the first running pod (debugging); mode:"job" runs a one-off Job of the service's current image with its env (migrations). Returns stdout/stderr + exit code as text. command is run via /bin/sh -c.

MCP tool: deployment_service_exec

Parameters

NameInTypeRequiredDescription
commandbodystring
modebodystringone of: exec, job
timeoutSecbodyinteger
serviceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
modestringone of: exec, job
outputstring
stderrstring
stdoutstring
targetobject
exitCodeinteger
timedOutboolean
truncatedboolean
GET/deployment/services/:serviceId/logs

Snapshot the last N runtime log lines for a service

MCP tool: deployment_service_logs

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
tailqueryinteger

Response

Returns object.

FieldTypeAlwaysDescription
linesstring[]
sleepStatestringone of: awake, sleeping, waking, stopped, wake_failed
POST/deployment/services/:serviceId/redeploy

Roll out a new deployment for a service from its current source and variables (runs asynchronously; poll the deployment for status)

MCP tool: deployment_service_redeploy

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed, Sleeping, Stopped, WakeFailed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
updatedAtstring
deployedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
configSnapshotobject
lastErrorMessagestring | null
rolledBackFromDeploymentIdstring (uuid) | null
POST/deployment/services/:serviceId/rollback

Roll back a service to a previous deployment by re-deploying its imageRef

MCP tool: deployment_service_rollback

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
deploymentIdbodystring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Initializing, Building, Deploying, Active, Replaced, Crashed, Completed, Failed, Removed, Sleeping, Stopped, WakeFailed
builtAtstring | null
imageRefstring | null
commitShastring | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
updatedAtstring
deployedAtstring | null
finishedAtstring | null
cloudBuildIdstring | null
configSnapshotobject
lastErrorMessagestring | null
rolledBackFromDeploymentIdstring (uuid) | null
GET/deployment/services/:serviceId/runs

List the runs of a scheduled service (job), newest first. Returns a page of runs plus nextCursor; pass that back as cursor for the next page. A run with status "Skipped" is a tick that never fired — concurrency held it back — and has no logs or exit code.

MCP tool: deployment_job_runs_list

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
limitqueryinteger
cursorquerystring

Response

Returns object.

FieldTypeAlwaysDescription
itemsobject[]
nextCursorstring | null
POST/deployment/services/:serviceId/runs

Run a scheduled service (job) now, regardless of its schedule or concurrency; returns the run

MCP tool: deployment_job_run

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
statusstringone of: Running, Succeeded, Failed, TimedOut, Skipped
triggerstringone of: schedule, manual
exitCodeinteger | null
createdAtstring
serviceIdstring (uuid)
startedAtstring | null
finishedAtstring | null
k8sJobNamestring
imageDigeststring | null
triggeredBystring | null
deploymentIdstring (uuid) | null
environmentIdstring (uuid)
failureReasonstring | null
GET/deployment/services/:serviceId/runs/:runId/logs

Read the output of one job run: the stored tail (up to 256 KiB) once the run has finished, or a live tail while it is still running. `live` says which one you got — a caller that polls should stop once it turns false.

MCP tool: deployment_job_run_logs

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
runIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
liveboolean
logsstring
statusstringone of: Running, Succeeded, Failed, TimedOut, Skipped
GET/deployment/services/:serviceId/ssh-command

Get the ssh command string to connect to a service

MCP tool: deployment_ssh_command

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
hoststring
commandstring
usernamestring
GET/deployment/services/:serviceId/variables

List variables for a service (secret values are returned as null)

MCP tool: deployment_variable_list

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
DELETE/deployment/services/:serviceId/variables/:key

Delete a variable from a service by key

MCP tool: deployment_variable_unset

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
keypathstring
PUT/deployment/services/:serviceId/variables/:key

Create or update a variable on a service. Pass `isSecret: true` to encrypt the value via KMS — this transition is irreversible (a row that is already secret cannot be downgraded to plain).

MCP tool: deployment_variable_set

Parameters

NameInTypeRequiredDescription
serviceIdpathstring (uuid)
keypathstring
valuebodystring
isSecretbodyboolean

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
keystring
scopestringone of: service, environment, product
valuestring | null
isSecretboolean
createdAtstring
serviceIdstring (uuid) | null
updatedAtstring
environmentIdstring (uuid) | null
GET/deployment/ssh-keys

List SSH public keys registered in the current workspace

MCP tool: deployment_ssh_key_list

Parameters

No parameters.

Response

Returns object[].

Item fieldTypeAlwaysDescription
idstring
algostring
namestring
scopestringone of: workspace, personal
createdAtstring
productIdstring
lastUsedAtstring | null
ownerIdentityIdstring
fingerprintSha256string
POST/deployment/ssh-keys

Register an SSH public key for the current workspace

MCP tool: deployment_ssh_key_register

Parameters

NameInTypeRequiredDescription
namebodystringHuman label for the key, e.g. "my-laptop"
publicKeybodystringOpenSSH public key line (ssh-ed25519 / ssh-rsa ...)

Response

Returns object.

FieldTypeAlwaysDescription
idstring
algostring
namestring
scopestringone of: workspace, personal
createdAtstring
productIdstring
lastUsedAtstring | null
ownerIdentityIdstring
fingerprintSha256string
DELETE/deployment/ssh-keys/:id

Delete a registered SSH public key

MCP tool: deployment_ssh_key_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
deletedboolean
GET/deployment/vcs/branches

List branches for a repository on a GitHub connection

MCP tool: deployment_vcs_branch_list

Parameters

NameInTypeRequiredDescription
connectorIdquerystring (uuid)
repoFullNamequerystring

Response

Returns object[].

Item fieldTypeAlwaysDescription
namestring
commitShastring
GET/deployment/vcs/connections

List the GitHub connections available to the current product

MCP tool: deployment_vcs_connection_list

Parameters

No parameters.

Response

Returns object[].

Item fieldTypeAlwaysDescription
statusstring
connectorIdstring
accountLoginstring
installationIdstring
GET/deployment/vcs/repos

List repositories accessible to a GitHub connection (optionally filtered by search)

MCP tool: deployment_vcs_repo_list

Parameters

NameInTypeRequiredDescription
connectorIdquerystring (uuid)
pagequeryinteger
searchquerystring

Response

Returns object[].

Item fieldTypeAlwaysDescription
privateboolean
fullNamestring
defaultBranchstring
DELETE/deployment/volumes/:id

Permanently delete a detached volume

MCP tool: deployment_volume_delete

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
GET/deployment/volumes/:id

Get a volume

MCP tool: deployment_volume_get

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
sizeGbinteger
statusstringone of: provisioning, ready, detached, failed
createdAtstring
mountPathstring
updatedAtstring
environmentIdstring (uuid)
lastErrorMessagestring | null
attachedServiceIdstring (uuid) | null
POST/deployment/volumes/:id/detach

Detach a volume from its service (data preserved)

MCP tool: deployment_volume_detach

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
sizeGbinteger
statusstringone of: provisioning, ready, detached, failed
createdAtstring
mountPathstring
updatedAtstring
environmentIdstring (uuid)
lastErrorMessagestring | null
attachedServiceIdstring (uuid) | null
POST/deployment/volumes/:id/resize

Increase a volume size

MCP tool: deployment_volume_resize

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)
sizeGbbodyinteger

Response

Returns object.

FieldTypeAlwaysDescription
idstring (uuid)
namestring
slugstring
sizeGbinteger
statusstringone of: provisioning, ready, detached, failed
createdAtstring
mountPathstring
updatedAtstring
environmentIdstring (uuid)
lastErrorMessagestring | null
attachedServiceIdstring (uuid) | null
Was this page helpful?
Esc

Start typing to search the docs.

navigateselect