Environments
List all environments
Returns all environments across all projects for the organization.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
OK
Get environment details
Returns a single environment by ID including instance, project, and deployment edges.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringEnvironment UUID
OK
Delete an environment
Marks an environment for async deletion. Cannot delete production environments directly.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringEnvironment UUID
Accepted
Update an environment
Updates an environment's name and description. The environment type cannot be changed.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredUpdated environment fields
descriptionstringnamestringPath Parameters
idRequiredstringEnvironment UUID
OK
Clone an environment
Creates a clone of an existing environment on a new branch. Enqueues async database clone.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredClone configuration
autoDestroybooleantargetBranchstringtargetTypestringPath Parameters
idRequiredstringSource Environment UUID
Accepted
Update commit behavior
Updates how the environment handles new commits (do_nothing, create_new_build, or update_previous_build).
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredCommit behavior setting
behaviorRequiredstring"do_nothing" | "create_new_build" | "update_previous_build"Path Parameters
idRequiredstringEnvironment UUID
OK
List environment deployments
Returns paginated deployment history for the environment's linked instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringEnvironment UUID
Query Parameters
limitintegerResults per page (default 20, max 100)
offsetintegerOffset for pagination
OK
Proxy Mailpit web UI
Reverse-proxies requests to the environment's Mailpit email testing interface via SSH tunnel.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringEnvironment UUID
Proxied response
Promote or demote an environment
Changes an environment's stage (e.g., development to staging). Supports role gating, test gating, and force promotion.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredPromotion configuration
demotionDbOptionstring"fresh" or "clone", only for demotion
forcePromotebooleanadmin-only, skips test gating
targetStageRequiredstring"production" | "staging" | "development"Path Parameters
idRequiredstringEnvironment UUID
Accepted
Trigger a manual build
Manually triggers a build for pending commits on environments with "do_nothing" commit behavior.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringEnvironment UUID
Accepted
List commits since a SHA
Returns commits between a given SHA and the current HEAD of a branch via the Git provider API.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
projectIdRequiredstringProject UUID
Query Parameters
sinceRequiredstringStarting commit SHA
branchRequiredstringBranch name
OK
List project environments
Returns all environments for a project, scoped to the current organization.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
projectIdRequiredstringProject UUID
OK
Create an environment
Creates a new environment linking a project to an instance with a specific type and branch.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredEnvironment details
branchstringenvironmentTypestringinstanceIdstringPath Parameters
projectIdRequiredstringProject UUID
Created
Get pipeline data
Returns combined pipeline view data with environments, deployments, and test statuses grouped by stage.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
projectIdRequiredstringProject UUID
Query Parameters
recentDeploymentsintegerNumber of recent deployments per environment (default 1, max 10)
OK
Get test gate settings
Returns the current test gate settings for staging and production promotions.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
projectIdRequiredstringProject UUID
OK
Update test gate settings
Updates the test gate requirements for staging and production promotions on a project.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredTest gate settings
testGateProductionRequiredstring"block" | "warn"testGateStagingRequiredstring"block" | "warn"Path Parameters
projectIdRequiredstringProject UUID
OK