Deployments

post

Create a new deployment or start run for existing deployment

🔒 Requires the create:deployment 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
forcebooleanOptional

Force deployment without approval

validateOnlybooleanOptional

Validate deployment creation without execution

Default: false
planOnlybooleanOptional

Plan the deployment without executing

Default: false
incrementalbooleanOptional

Enable incremental mode to skip deployments with no changes

Default: false
noActivitybooleanOptional

Create deployment without starting an activity

Default: false
driftDetectionbooleanOptional

Execute drift detection for the deployment

Default: false
isDriftDetectionEnabledbooleanOptional

Enable drift detection for the deployment

Default: false
envstringOptional

Target environment for deployment

Responses
200

Created deployment and task details or validation result

application/json
Responseone of

Created deployment and task details or validation result

or
post
/api/v1/deployment/create
get

Return deployment information

🔒 Requires the read:deployment permission

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

The deployment's ID or 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
200

Deployment details

application/json
Responseone of

Deployment details

or
get
/api/v1/deployment/{deploymentIdOrSlug}
get

Return deployment properties

🔒 Requires the read:deployment permission

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

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

Responses
200

Deployment props

application/json
get
/api/v1/deployment/{deploymentIdOrSlug}/props
get

Return deployment image

🔒 Requires the read:deployment 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
200

Deployment image

image/png
Responsestring · binary

Deployment image, describing the deployment

get
/api/v1/deployment/{deploymentId}/image
post

Approve deployment plan

🔒 Requires the update:deployment 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
200

Deployment approval details

application/json
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
200

Plan downloaded successfully

Responsestring · binary

Deployment plan file in JSON format

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
200

Plan generated successfully

application/json
post
/api/v1/deployment/plan
get

Get a deployment state

🔒 Requires the update:deployment 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
200

State retrieved successfully

application/json
Responsestring · binary

Deployment state file in JSON format

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

Get deployment states information

🔒 Requires the read:deployment permission

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

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

Responses
200

List of deployment states with metadata

application/json
get
/api/v1/deployment/{deploymentIdOrSlug}/states
put

Set deployment alias

🔒 Requires the update:deployment 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
200

Deployment alias updated successfully

application/json
put
/api/v1/deployment/outputs/{outputId}/set-alias
get

Return list of deployment outputs for a deployment

🔒 Requires the read:deployment permission

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

The deployment's slug e.g. my-deployment

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
environmentstringOptional

Filter deployments by environment slug in filters

Responses
200

Paginated information of filtered deployment outputs

application/json
get
/api/v1/deployment/{deploymentSlug}/outputs
get

Return deployment manifest

🔒 Requires the read:deployment permission

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

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

Responses
200

Deployment manifest in YAML format

application/yaml
Responsestring

YAML manifest for the deployment

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

Delete a deployment activity

🔒 Requires the update:deployment permission

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

The deployment run ID to delete

Responses
200

Deployment activity deleted successfully

application/json
delete
/api/v1/deployment/activity/{runId}
delete

Delete a deployment activity

🔒 Requires the update:deployment permission

🔒 Requires the update:deployment permission

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

The deployment run ID to delete

Responses
200

Deployment activity deleted successfully

application/json
delete
/api/v1/deployment/run/{runId}
get

Return deployments information by environment

🔒 Requires the read:deployment permission

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

The environment'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:
typestring · enumOptional

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

Default: runsPossible 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 deployment 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
200

Paginated information of filtered deployments for an environment

application/json
get
/api/v1/deployments
get

Return deployments filters

🔒 Requires the read:deployment 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
200

Deployments filters

application/json
get
/api/v1/deployments/filters
get

Return list of deployment outputs

🔒 Requires the read:deployment 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
environmentstringOptional

Filter deployments by environment slug in filters

Responses
200

Paginated information of filtered deployment outputs

application/json
get
/api/v1/deployments/outputs
post

Get deployments plans

🔒 Requires the read:deployment 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
200

Plans downloaded successfully

text/markdown
Responsestring · binary

Deployments plans file in Markdown format

post
/api/v1/deployments/plans
post

Approve multiple deployments

🔒 Requires the update:deployment 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
200

Deployment approval details

application/json
post
/api/v1/deployments/approve
post

Cancel multiple deployments

🔒 Requires the update:deployment 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
200

Deployment canceled successfully

application/json
post
/api/v1/deployments/cancel
post

Archive multiple deployments

🔒 Requires the update:deployment 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
200

Deployment archived / unarchived successfully

application/json
post
/api/v1/deployments/archive
post

Unarchive multiple deployments

🔒 Requires the update:deployment 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
200

Deployment archived / unarchived successfully

application/json
post
/api/v1/deployments/unarchive
post

Enable drift detection for multiple deployments

🔒 Requires the update:deployment 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
200

Deployment drift detection status updated successfully

application/json
post
/api/v1/deployments/enable-drift-detection
post

Disable drift detection for multiple deployments

🔒 Requires the update:deployment 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
200

Deployment drift detection status updated successfully

application/json
post
/api/v1/deployments/disable-drift-detection
post

Upload state files to draft deployments

🔒 Requires the create:deployment permission

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

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

Body
packageVersionstringRequired

The package version e.g. 1.2.3

Example: 1.2.3
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
200

State upload results

application/json
post
/api/v1/deployments/{deploymentIdOrSlug}/states
post

Get statuses for the requested Deployment IDs

🔒 Requires the read:deployment 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
200

Deployments status

application/json
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:deployment 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
200

All the existing for specified deployment state mappings

application/json
Responseany

All the existing for specified deployment state mappings

Example: {"deploymentId":"25cd0bd6-d09b-4924-abfb-41768d111fe7","mappings":{"root.vpc.subnet-1":"bae58bdb-9924-4831-a341-405313cfca92","root.vpc.subnet-2":"cabf22cf-6a57-47d9-9a11-69ab318d3e08","root.database":"90d8f41b-f886-4b96-b05c-1c7d23bbcff7"}}
get
/api/v1/deployments/{rootRunId}/state
post

Sets the mapping for deployment's state with hierarchical package path and its deployment run id. Optionally, it can also set the stage of state.

🔒 Requires all of the following permissions: read:deployment, update:deployment, create:deployment

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

Body
hierarchical_pathstringRequired

The hierarchical package path, e.g. root.vpc2.subnet_new. Notice: hierarchical_path must represent the path from the root module (root) to the artifact identifier, with each level separated by a dot (.)

run_idstring · uuidRequired

The deployment run id that produced/updated the state

stagestring · enumOptional

The state stage

Possible values:
Responses
200

Deployment state mapping updated successfully

application/json
Responseany

Deployment state mapping updated successfully

Example: {"root.vpc.subnet-1":"bae58bdb-9924-4831-a341-405313cfca92"}
post
/api/v1/deployments/{deploymentId}/state
get

Return deployment remote state config

🔒 Requires the update:deployment permission

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

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

packageUniqueIdstringRequired

Unique package ID

Example: package-id-1
Responses
200

Deployment remote state config

application/json
get
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/config
get

Return deployment remote state

🔒 Requires the update:deployment 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
200

Deployment remote state

application/json
get
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state
post

Set deployment remote state

🔒 Requires the update:deployment 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
200

Deployment remote state set successfully

application/json
Responseany

Deployment remote state set successfully

post
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state

No content

delete

Delete deployment remote state

🔒 Requires the update:deployment 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
200

Deployment remote state deleted successfully

application/json
Responseany

Deployment remote state deleted successfully

delete
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state

No content

post

Lock deployment remote state

🔒 Requires the update:deployment 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
200

Deployment remote state locked successfully

application/json
post
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock
lock

Lock deployment remote state

🔒 Requires the update:deployment permission

🔒 Requires the update:deployment 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
200

Deployment remote state locked successfully

application/json
lock
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock
delete

Unlock deployment remote state

🔒 Requires the update:deployment 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
200

Deployment remote state unlocked successfully

application/json
Responseany

Deployment remote state unlocked successfully

delete
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock

No content

unlock

Unlock deployment remote state

🔒 Requires the update:deployment permission

🔒 Requires the update:deployment 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
200

Deployment remote state unlocked successfully

application/json
Responseany

Deployment remote state unlocked successfully

unlock
/api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock

No content

Last updated

Was this helpful?