Skip to content
Browse docs

Deployments (runtime)

The 3 endpoints /api/v1 serves under Deployments (runtime).

POST /api/v1/flows/:id/deploy

http
POST /api/v1/flows/:id/deploy
  • Auth: required (admin+)
  • Body: { flowVersionId }
  • 202
  • 402 — free tier exceeded its deploy cap (PLAN-RULE-06)
  • 422 — no verified Cloudflare account

GET /api/v1/deployments

http
GET /api/v1/deployments
  • Auth: required
  • Query: ?flowId=&status=
  • 200
  • 404 — flow outside the caller's tenants (PLAN-RULE-01)

POST /api/v1/deployments/:id/rollback

http
POST /api/v1/deployments/:id/rollback
  • Auth: required (admin+)
  • 200