Deployments

Deprecated
post

DEPRECATED: Use POST /api/v1/env/create instead. Create a new deployment or start run for existing deployment (legacy deployment endpoint).

🔒 Requires the create:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
deploymentSlugstringRequired

The deployment slug for creating or targeting existing deployment

blueprintstringOptional

The blueprint/package name, e.g. @bluebricks/postgres

versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
deployTypestring · enumOptional

Controls how the deployment is executed. autoApply automatically applies changes without manual approval; autoApprove skips approval and pending; validateOnly validates the deployment without executing; planOnly generates a plan without executing; driftDetection runs only configuration-drift detection; draft creates the deployment record without starting any activity. deployType can't be used together with deprecated flags: force, planOnly, validateOnly, noActivity and driftDetection.

Example: autoApprovePossible values:
forcebooleanOptional

Use deployType='autoApprove' instead

validateOnlybooleanOptional

Use deployType='validateOnly' instead

Default: false
planOnlybooleanOptional

Use deployType='planOnly' instead

Default: false
incrementalbooleanOptional

Enable incremental mode to skip deployments with no changes

Default: false
noActivitybooleanOptional

Use deployType='draft' instead

Default: false
driftDetectionbooleanOptional

Use deployType='driftDetection' instead

Default: false
isDriftDetectionEnabledbooleanOptional

Enable drift detection for the deployment

Default: false
envstringOptional

Use collection instead. Target environment for deployment

collectionstringOptional

Target collection for deployment

Responses
post
/api/v1/deployment/create
get

Return deployment information

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdOrSlugstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

Query parameters
parse_typestring · enumOptional

The parsing type to fetch e.g. state

Default: planPossible values:
Responses
get
/api/v1/deployment/{deploymentIdOrSlug}
get

Return deployment properties

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdOrSlugstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

Responses
get
/api/v1/deployment/{deploymentIdOrSlug}/props
get

Return deployment image

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdstring · uuidRequired

The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Query parameters
formatstring · enumOptional

Image format

Default: pngPossible values:
Responses
get
/api/v1/deployment/{deploymentId}/image
post

Approve deployment plan

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdstring · uuidRequired

The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Responses
post
/api/v1/deployment/{deploymentId}/approve
get

Get a deployment plan

🔒 Requires the read:deployment-plan permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdstring · uuidRequired

The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Query parameters
formatstring · enumOptional

Plan format

Default: jsonPossible values:
Responses
get
/api/v1/deployment/{deploymentId}/plan
post

Parse a deployment plan

🔒 Requires the read:deployment-plan permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
plan_filestring · binaryRequired

A plan file

Example: plan_file=@path/to/tfplan.json
Responses
post
/api/v1/deployment/plan
get

Get a deployment state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdstring · uuidRequired

The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Responses
get
/api/v1/deployment/{deploymentId}/state
Deprecated
get

DEPRECATED: Use GET /api/v1/env/:environmentIdOrSlug/states instead. Get deployment states information (legacy deployment endpoint).

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdOrSlugstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

Responses
get
/api/v1/deployment/{deploymentIdOrSlug}/states
put

Set deployment alias

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
outputIdstring · uuidRequired

The deployment output's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Body
aliasstringRequired

The deployment output alias e.g. my_output

Example: my-my_output
Responses
put
/api/v1/deployment/outputs/{outputId}/set-alias
get

Return deployment manifest

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdOrSlugstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

Responses
get
/api/v1/deployment/{deploymentIdOrSlug}/manifest
delete

Delete a deployment activity

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
runIdstring · uuidRequired

The deployment run ID to delete

Responses
delete
/api/v1/deployment/activity/{runId}
delete

Delete a deployment activity

🔒 Requires the update:environment permission

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
runIdstring · uuidRequired

The deployment run ID to delete

Responses
delete
/api/v1/deployment/run/{runId}
get

Return deployments information by collection

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
environmentIdstring · uuidOptionalDeprecated

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Example: f27d96be-c486-4075-a926-0ee96775119e
collectionIdstring · uuidOptional

The collection's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Example: f27d96be-c486-4075-a926-0ee96775119e
querystringOptional
sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted ' + 'e.g. name

Default: timestampPossible values:
typeone ofOptional

Specifies the type of deployments list to be returned. Note: runs and activities return the same data for backward compatibility.

Default: runs
undefined · enumOptionalPossible values:
or
undefined · enumOptionalPossible values:
or
undefined · enumOptionalDeprecated

DEPRECATED: Use /api/v1/envs endpoint instead. This type is maintained for backward compatibility.

Possible values:
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

limitnumber · min: 3 · max: 1000Optional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
filterstringOptional

Structure: [key1=value1,key2=value2&value3]

expandbooleanOptional

If true, return detailed graph information. If false, return basic information

latestbooleanOptional

If true, return unique latest deployments only

searchstringOptional

Enables searching within the list for deployments names that match a particular query e.g. my_app

archivedbooleanOptional

Also includes archived props

outdatedbooleanOptional

If true, return only deployments with outdated package versions (only applicable when type=deployments)

Responses
get
/api/v1/deployments
get

Return deployments filters

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
typestring · enumOptional

Will return a specific list with type of available filters if provided, otherwise returns all results

Possible values:
archivedbooleanOptional

If true, shows only archived deployments. if false, shows only non-archived deployments

Default: false
slugstringOptional

Filter by deployment slug

Responses
get
/api/v1/deployments/filters
get

Return list of deployment outputs

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted ' + 'e.g. key

Default: updatedPossible values:
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

limitnumber · min: 3 · max: 1000Optional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
filterstringOptional

Structure: [key1=value1,key2=value2&value3]

searchstringOptional

Enables searching within the list for deployment outputs key that match a particular query e.g. my_output

include_metadatabooleanOptional

If true, includes metadata with all package IDs from the filtered outputs. If false or omitted, metadata will not be included.

Default: false
environmentstringOptionalDeprecated

DEPRECATED: Use collection instead. Filter deployments by environment slug in filters

collectionstringOptional

Filter deployments by collection slug in filters

Responses
get
/api/v1/deployments/outputs
post

Get deployments plans

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
deploymentsstring · uuid[]Required

List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]

Example: ["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]
Responses
post
/api/v1/deployments/plans
post

Approve multiple deployments

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring · uuid[]
string · uuid[]Optional

List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]

Example: ["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]
Responses
post
/api/v1/deployments/approve
post

Cancel multiple deployments

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring · uuid[]
string · uuid[]Optional

List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]

Example: ["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]
Responses
post
/api/v1/deployments/cancel
Deprecated
post

DEPRECATED: Use POST /api/v1/envs/archive instead. Archive multiple deployments (legacy deployment endpoint).

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring[]
string[]Optional

List of deployment slugs, e.g. ["test-deployment", "my-deployment"]

Example: ["test-deployment","my-deployment"]
Responses
post
/api/v1/deployments/archive
Deprecated
post

DEPRECATED: Use POST /api/v1/envs/unarchive instead. Unarchive multiple deployments (legacy deployment endpoint).

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring[]
string[]Optional

List of deployment slugs, e.g. ["test-deployment", "my-deployment"]

Example: ["test-deployment","my-deployment"]
Responses
post
/api/v1/deployments/unarchive
Deprecated
post

DEPRECATED: Use POST /api/v1/envs/enable-drift-detection instead. Enable drift detection for multiple deployments (legacy deployment endpoint).

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring[]
string[]Optional

List of deployment slugs, e.g. ["test-deployment", "my-deployment"]

Example: ["test-deployment","my-deployment"]
Responses
post
/api/v1/deployments/enable-drift-detection
Deprecated
post

DEPRECATED: Use POST /api/v1/envs/disable-drift-detection instead. Disable drift detection for multiple deployments (legacy deployment endpoint).

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Bodystring[]
string[]Optional

List of deployment slugs, e.g. ["test-deployment", "my-deployment"]

Example: ["test-deployment","my-deployment"]
Responses
post
/api/v1/deployments/disable-drift-detection
Deprecated
post

DEPRECATED: Use POST /api/v1/envs/:environmentIdOrSlug/states instead. Upload state files to draft deployments (legacy deployment endpoint).

🔒 Requires the create:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
deploymentIdOrSlugstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

Body
statesstringRequired

JSON string containing array of state metadata with file references for root-level packages only.

Example: [{"package_id":"terraform_aws_secretsmanager","state_file":"state_1"},{"package_id":"terraform_aws_eks_auto","state_file":"state_2"}]
Other propertiesanyOptional
Responses
post
/api/v1/deployments/{deploymentIdOrSlug}/states
post

Get statuses for the requested Deployment IDs

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
deploymentsstring · uuid[]Required

List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]

Example: ["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]
Responses
post
/api/v1/deployments/status
get

Returns all existing mappings between a hierarchical package path and its state id by specific deployment

🔒 Requires the read:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
rootRunIdstringRequired

Root deployment run ID, e.g. 44cd0bd6-d09b-4924-abfb-12345d111fe7

Responses
get
/api/v1/deployments/{rootRunId}/state
get

Return deployment remote state config

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

The deployment's ID or environment's slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment

packageUniqueIdstringRequired

Unique package ID

Example: package-id-1
Responses
get
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/config
get

Return deployment remote state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID.

packageUniqueIdstringRequired
Query parameters
iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Responses
get
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state
post

Set deployment remote state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID.

packageUniqueIdstringRequired
Query parameters
IDstringOptional

Lock ID

iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Body

Remote state

Other propertiesanyOptional
Responses
post
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state

No content

delete

Delete deployment remote state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID.

packageUniqueIdstringRequired
Query parameters
IDstringOptional

Lock ID

iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Responses
delete
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state

No content

post

Lock deployment remote state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID

packageUniqueIdstringRequired
Query parameters
iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Body

Remote state lock details

Other propertiesanyOptional
Responses
post
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock
lock

Lock deployment remote state

🔒 Requires the update:environment permission

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID

packageUniqueIdstringRequired
Query parameters
iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Body

Remote state lock details

Other propertiesanyOptional
Responses
lock
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock
delete

Unlock deployment remote state

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID

packageUniqueIdstringRequired
Query parameters
iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Body

Remote state lock details

Other propertiesanyOptional
Responses
delete
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock

No content

unlock

Unlock deployment remote state

🔒 Requires the update:environment permission

🔒 Requires the update:environment permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
originDeploymentIdstringRequired

Origin run ID

packageUniqueIdstringRequired
Query parameters
iac_typestring · enumOptional

IaC type of the remote state

Default: terraformPossible values:
Body

Remote state lock details

Other propertiesanyOptional
Responses
unlock
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock

No content

Last updated

Was this helpful?