Overview
You use the Deployments API to trigger deploys, check status, list deployments, and stream build/runtime logs. All deployment routes requireAuthorization: Bearer <access_token>.
Endpoints
POST /deployments
Triggers a deployment for a project.- Body fields:
projectId(required)
deploymentIdworkflowName
GET /deployments
Returns deployments visible to the current backend context.GET /deployments/:id
Returns deployment details by ID.GET /deployments/:id/status
Synchronizes deployment state with Argo and returns status details. Common status values:QUEUEDBUILDINGPROVISIONINGCONFIGURING_DNSLIVEFAILEDCANCELLED
statusstepswith step names (BUILD,PROVISION,DNS) and statuses (PENDING,RUNNING,SUCCEEDED,FAILED,SKIPPED)deployedUrlerrorMessagebuildDurationregion
GET /deployments/:id/logs
Streams logs using Server-Sent Events.- Content type:
text/event-stream - Optional query parameters:
since(ISO timestamp)after(log cursor, only whensinceis not used)
DELETE /deployments/:id
Deletes a deployment.Polling and streaming pattern
Use this pattern for deployment UX:- Trigger with
POST /deployments. - Poll
GET /deployments/:id/statusfor status badges and step states. - Open
GET /deployments/:id/logsfor real-time logs.