Deployments
Create a new deployment or start activity for existing deployment
🔒 Requires the create:deployment permission
The deployment slug for creating or targeting existing deployment
The blueprint/package name, e.g. @bluebricks/postgres
The package version e.g. 1.2.3
1.2.3Force deployment without approval
Validate deployment creation without execution
falsePlan the deployment without executing
falseEnable drift detection for the deployment
falseTarget environment for deployment
Created deployment and task details or validation result
Created deployment and task details or validation result
Failed to create deployment
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:deployment permission
Package not found or not enabled for organization
Deployment slug already exists
Too many requests
POST /api/v1/deployment/create HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 191
{
"deploymentSlug": "text",
"blueprint": "text",
"version": "1.2.3",
"force": true,
"validateOnly": false,
"planOnly": false,
"driftDetection": false,
"env": "text",
"props": {
"password": "$postgres.prodPass"
}
}{
"deployment": "text",
"activity_id": "123e4567-e89b-12d3-a456-426614174000",
"task": "123e4567-e89b-12d3-a456-426614174000"
}Return deployment information
🔒 Requires the read:deployment permission
The deployment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment
The parsing type to fetch e.g. state
planPossible values: Deployment details
Deployment details
Failed to get deployment details and state
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployment not found
Too many requests
GET /api/v1/deployment/{deploymentIdOrSlug} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"driftMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"plannedMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"costMetadata": {
"totalFrom": 1,
"totalTo": 1,
"totalMargin": 1
},
"plannedResourcesMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"stateMetadata": {
"managed": 1,
"unmanaged": 1
},
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"task": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"name": "text",
"version": "text",
"type": "blueprint",
"uniqueId": null,
"stage": "pending",
"is_archived": true,
"created": "2025-11-11T15:09:38.560Z",
"outdated_package": true,
"timestamp": "2025-11-11T15:09:38.560Z",
"errors": null,
"plan_file_url": null,
"state_file_url": null,
"iac_type": "terraform",
"parsed": {
"type": "plan",
"data": {
"driftMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"plannedMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"costMetadata": {
"totalFrom": 1,
"totalTo": 1,
"totalMargin": 1
},
"plannedResourcesMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputs": {
"ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
}
}
}
}Return deployment properties
🔒 Requires the read:deployment permission
The deployment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment
Deployment props
Failed to get deployment props
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployment not found
Too many requests
GET /api/v1/deployment/{deploymentIdOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"activity_id": "text",
"slug": null,
"updated": "text",
"package": "text",
"version": "text",
"env": "text",
"props": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Return deployment image
🔒 Requires the read:deployment permission
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Image format
pngPossible values: Deployment image
Deployment image, describing the deployment
Failed to get deployment image
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployment not found
Too many requests
GET /api/v1/deployment/{deploymentId}/image HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryApprove deployment plan
🔒 Requires the update:deployment permission
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Deployment approval details
Failed to approve deployment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
Deployment not found
Too many requests
POST /api/v1/deployment/{deploymentId}/approve HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"type": "blueprint",
"stage": "pending"
}Get a deployment plan
🔒 Requires the read:deployment-plan permission
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Plan format
jsonPossible values: Plan downloaded successfully
Deployment plan file in JSON format
Failed to download plan
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment-plan permission
Deployment plan not found
Too many requests
GET /api/v1/deployment/{deploymentId}/plan HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryParse a deployment plan
🔒 Requires the read:deployment-plan permission
A plan file
plan_file=@path/to/tfplan.jsonPlan generated successfully
Failed to generate plan
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment-plan permission
Too many requests
POST /api/v1/deployment/plan HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 46
{
"plan_file": "plan_file=@path/to/tfplan.json"
}{
"name": "text",
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"parsed": {
"data": {
"driftMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"plannedMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"costMetadata": {
"totalFrom": 1,
"totalTo": 1,
"totalMargin": 1
},
"plannedResourcesMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputs": {
"ANY_ADDITIONAL_PROPERTY": {
"type": "empty",
"action": "unchanged",
"state": null,
"desired": null,
"planned": null,
"actual": null,
"force_replace": true
}
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": null
}
}
}
}Get a deployment state
🔒 Requires the update:deployment permission
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
State retrieved successfully
Deployment state file in JSON format
Failed to download state
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
Deployment state not found
Too many requests
GET /api/v1/deployment/{deploymentId}/state HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binarySet deployment alias
🔒 Requires the update:deployment permission
The deployment output's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
The deployment output alias e.g. my_output
my-my_outputDeployment alias updated successfully
Failed to update deployment alias
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
Deployment not found
Alias already exists
Too many requests
PUT /api/v1/deployment/outputs/{outputId}/set-alias HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"alias": "my-my_output"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"alias": "my-my_output"
}Return list of deployment outputs for a deployment
🔒 Requires the read:deployment permission
The deployment's slug e.g. my-deployment
Specifies the attribute by which the returned list should be sorted ' +
'e.g. key
updatedPossible values: Results offset to allow pagination e.g. 10
0Example: 10Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Results limit to allow pagination, e.g. 50
20Example: 10Structure: [key1=value1,key2=value2&value3]
Enables searching within the list for deployment outputs key that match a particular query e.g. my_output
Paginated information of filtered deployment outputs
Failed to get deployment outputs information
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Too many requests
GET /api/v1/deployment/{deploymentSlug}/outputs HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"list": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"deployment_slug": "text",
"package_id": "123e4567-e89b-12d3-a456-426614174000",
"alias": null,
"key": "bucket_name",
"type": "string",
"value": "my-bucket",
"is_sensitive": true,
"is_hidden": true,
"is_destroyed": true,
"created_at": "2025-11-11T15:09:38.560Z",
"updated_at": null
}
],
"filters": {
"deployment_slugs": [
[
"deployment-slug-1",
"deployment-slug-2"
]
]
},
"metadata": {
"packages": [
[
"package-id-1",
"package-id-2"
]
]
}
}Return deployment manifest
🔒 Requires the read:deployment permission
The deployment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment
Deployment manifest in YAML format
YAML manifest for the deployment
Failed to get deployment manifest
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployment not found
Too many requests
GET /api/v1/deployment/{deploymentIdOrSlug}/manifest HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textReturn deployments information by environment
🔒 Requires the read:deployment permission
The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
f27d96be-c486-4075-a926-0ee96775119eSpecifies the attribute by which the returned list should be sorted ' +
'e.g. name
timestampPossible values: Specifies the type of deployments list to be returned, either activities or deployments
activitiesPossible values: Results offset to allow pagination e.g. 10
0Example: 10Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Results limit to allow pagination, e.g. 50
20Example: 10Structure: [key1=value1,key2=value2&value3]
If true, return detailed graph information. If false, return basic information
If true, return unique latest deployments only
Enables searching within the list for deployment names that match a particular query e.g. my_app
Also includes archived props
Paginated information of filtered deployments for an environment
Failed to get deployments information
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Package not found
Too many requests
GET /api/v1/deployments HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"stats": {
"live": 1,
"drafts": 1
},
"list": [
{
"driftMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"plannedMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"costMetadata": {
"totalFrom": 1,
"totalTo": 1,
"totalMargin": 1
},
"plannedResourcesMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"stateMetadata": {
"managed": 1,
"unmanaged": 1
},
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"task": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"name": "text",
"version": "text",
"type": "blueprint",
"uniqueId": null,
"stage": "pending",
"is_archived": true,
"created": "2025-11-11T15:09:38.560Z",
"outdated_package": true,
"timestamp": "2025-11-11T15:09:38.560Z",
"errors": null,
"user": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
},
"reviewed_by": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg",
"action": "approve",
"timestamp": "2025-11-11T15:09:38.560Z"
},
"slug": null,
"origin_state_location": null,
"environment": {
"id": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"name": "Production Europe",
"color": "#0000ff",
"allow_pre_release": false,
"is_default": true,
"is_active": true,
"is_deleted": true,
"created": "2025-11-11T15:09:38.560Z",
"users": [
{
"id": "prov0|1234567890",
"name": "John Doe",
"email": "[email protected]",
"nickname": "JD",
"picture": "https://example.com/profile.jpg",
"roles": [
{
"id": "rol_abCdeFghIjklMnmP",
"name": "Admin",
"description": "Role for managing Admin permissions"
}
]
}
],
"cloud_account": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T15:09:38.560Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"is_primary": true,
"profile": "secrets-manager"
}
},
"is_latest": true,
"is_uninstall": true,
"is_plan_only": true,
"drift_detection": true,
"children": [
{
"driftMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"plannedMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"outputMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"costMetadata": {
"totalFrom": 1,
"totalTo": 1,
"totalMargin": 1
},
"plannedResourcesMetadata": {
"unchanged": 1,
"add": 1,
"change": 1,
"destroy": 1
},
"stateMetadata": {
"managed": 1,
"unmanaged": 1
},
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"task": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"name": "text",
"version": "text",
"type": "blueprint",
"uniqueId": null,
"stage": "pending",
"is_archived": true,
"created": "2025-11-11T15:09:38.560Z",
"outdated_package": true,
"timestamp": "2025-11-11T15:09:38.560Z",
"errors": null,
"plan_file_url": null,
"state_file_url": null,
"iac_type": "terraform",
"parsed": "[Circular Reference]"
}
]
}
]
}Return deployments filters
🔒 Requires the read:deployment permission
Will return a specific list with type of available filters if provided, otherwise returns all results
If true, shows only archived deployments. if false, shows only non-archived deployments
falseDeployments filters
Failed to get deployments filters
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Too many requests
GET /api/v1/deployments/filters HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deployments_filters": {
"slugs": [
"slug1",
"slug2"
],
"stages": [
"plan_approved",
"completed"
],
"blueprints": [
"blueprint1",
"blueprint2"
],
"environments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "name",
"slug": "slug",
"color": "color"
}
],
"users": [
{
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
],
"types": [
"is_plan_only"
],
"iac_types": [
"terraform"
]
}
}Return list of deployment outputs
🔒 Requires the read:deployment permission
Specifies the attribute by which the returned list should be sorted ' +
'e.g. key
updatedPossible values: Results offset to allow pagination e.g. 10
0Example: 10Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Results limit to allow pagination, e.g. 50
20Example: 10Structure: [key1=value1,key2=value2&value3]
Enables searching within the list for deployment outputs key that match a particular query e.g. my_output
Paginated information of filtered deployment outputs
Failed to get deployment outputs information
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission. 🔒 Requires the read:deployment permission
Too many requests
GET /api/v1/deployments/outputs HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"list": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"deployment_slug": "text",
"package_id": "123e4567-e89b-12d3-a456-426614174000",
"alias": null,
"key": "bucket_name",
"type": "string",
"value": "my-bucket",
"is_sensitive": true,
"is_hidden": true,
"is_destroyed": true,
"created_at": "2025-11-11T15:09:38.560Z",
"updated_at": null
}
],
"filters": {
"deployment_slugs": [
[
"deployment-slug-1",
"deployment-slug-2"
]
]
},
"metadata": {
"packages": [
[
"package-id-1",
"package-id-2"
]
]
}
}Get deployments plans
🔒 Requires the read:deployment permission
List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]
["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]Plans downloaded successfully
Deployments plans file in Markdown format
Failed to download plans
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployments plans not found
Too many requests
POST /api/v1/deployments/plans HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"deployments": [
"123e4567-e89b-12d3-a456-426614174000",
"456e4567-e89b-12d3-a456-426614174000"
]
}binaryGet deployment logs
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Deployment logs retrieved successfully.
Bad request
Failed to authenticate user
Missing required scopes
Deployment not found
Too many requests
GET /api/v1/deployments/{deploymentId}/logs HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Accept: */*
{
"deployments_logs": {
"25cd0bd6-d09b-4924-abfb-41768d111fe7": {
"name": "my-package",
"version": "1.0.0",
"stage": "completed",
"type": "artifact",
"parent": "25cd0bd6-d09b-4924-abfb-41768d111fe8",
"uniqueId": "unique-id",
"created_at": "2024-01-01T00:00:00Z",
"logs": "Deployment logs content"
}
}
}Append deployment logs
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Deployment logs
Logs stored successfully.
Bad request
Failed to authenticate user
Missing required scopes
Deployment not found
Too many requests
POST /api/v1/deployments/{deploymentId}/logs HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"logs": "text"
}{
"message": "Logs stored successfully."
}Approve multiple deployments
🔒 Requires the update:deployment permission
List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]
["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]Deployment approval details
Failed to approve deployments
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
One of the deployment was not found
Too many requests
POST /api/v1/deployments/approve HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
[
"123e4567-e89b-12d3-a456-426614174000",
"456e4567-e89b-12d3-a456-426614174000"
][
{
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"type": "blueprint",
"stage": "pending"
}
]Cancel multiple deployments
🔒 Requires the update:deployment permission
List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]
["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]Deployment canceled successfully
Failed to cancel deployment
Failed to authenticate user or runtime
Missing required scopes. 🔒 Requires the update:deployment permission
Deployment not found
Too many requests
POST /api/v1/deployments/cancel HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
[
"123e4567-e89b-12d3-a456-426614174000",
"456e4567-e89b-12d3-a456-426614174000"
][
{
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"type": "blueprint",
"stage": "canceled"
}
]Archive multiple deployments
🔒 Requires the update:deployment permission
List of deployment slugs, e.g. ["test-deployment", "my-deployment"]
["test-deployment","my-deployment"]Deployment archived / unarchived successfully
Failed to archive / unarchive deployment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
Deployments not found to be archived / unarchived
Too many requests
POST /api/v1/deployments/archive HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
[
"test-deployment",
"my-deployment"
][
{
"deployment": "text",
"archived": true
}
]Unarchive multiple deployments
🔒 Requires the update:deployment permission
List of deployment slugs, e.g. ["test-deployment", "my-deployment"]
["test-deployment","my-deployment"]Deployment archived / unarchived successfully
Failed to archive / unarchive deployment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission. 🔒 Requires the update:deployment permission
Deployments not found to be archived / unarchived
Too many requests
POST /api/v1/deployments/unarchive HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
[
"test-deployment",
"my-deployment"
][
{
"deployment": "text",
"archived": true
}
]Upload deployment related files (one at a time) to cloud storage
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
A plan file
plan_file=@path/to.tfplanA state file
state_file=@path/to.tfstateUploaded files URLs
Failed to upload file for deployment
Failed to authenticate runtime
Deployment not found
Too many requests
POST /api/v1/deployments/{deploymentId}/files HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: multipart/form-data
Accept: */*
Content-Length: 84
{
"plan_file": "plan_file=@path/to.tfplan",
"state_file": "state_file=@path/to.tfstate"
}{
"planUrl": "s3://bucket/path/to/plan_file",
"stateUrl": "s3://bucket/path/to/state_file"
}Get statuses for the requested Deployment IDs
🔒 Requires the read:deployment permission
List of deployment IDs, e.g. ["123e4567-e89b-12d3-a456-426614174000", "456e4567-e89b-12d3-a456-426614174000"]
["123e4567-e89b-12d3-a456-426614174000","456e4567-e89b-12d3-a456-426614174000"]Deployments status
Failed to get deployments status
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:deployment permission
Deployments not found
Too many requests
POST /api/v1/deployments/status HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"deployments": [
"123e4567-e89b-12d3-a456-426614174000",
"456e4567-e89b-12d3-a456-426614174000"
]
}[
{
"deployment": "123e4567-e89b-12d3-a456-426614174000",
"type": "blueprint",
"name": "text",
"version": "text",
"stage": "pending",
"errors": null,
"created": "2025-11-11T15:09:38.560Z",
"updated": null,
"completed": null,
"statusTimestamps": {
"pending": "2025-11-11T15:09:38.560Z",
"planning": "2025-11-11T15:09:38.560Z",
"no_change": "2025-11-11T15:09:38.560Z",
"planned": "2025-11-11T15:09:38.560Z",
"plan_approved": "2025-11-11T15:09:38.560Z",
"installing": "2025-11-11T15:09:38.560Z",
"completed": "2025-11-11T15:09:38.560Z",
"canceled": "2025-11-11T15:09:38.560Z",
"error": "2025-11-11T15:09:38.560Z"
}
}
]Update deployment stage and files
The deployment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
Updated deployment details
Failed to update deployment
Failed to authenticate runtime
Deployment not found
Too many requests
POST /api/v1/deployments/{deploymentId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"action": "planning",
"payload": {}
}{
"guid": "123e4567-e89b-12d3-a456-426614174000",
"parent": null,
"taskId": "123e4567-e89b-12d3-a456-426614174000",
"depend": null,
"stage": "pending",
"type": "blueprint",
"plan_file": null,
"state_file": null,
"origin_state_location": null,
"slug": null,
"package": {
"qualified_name": "text",
"url": null,
"version": "text",
"uniqueId": "text"
}
}Return deployment remote state config
🔒 Requires the update:deployment permission
The deployment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-deployment
Unique package ID
package-id-1Deployment remote state config
Failed to get deployment remote state config
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:deployment permission
Deployment or package not found
Too many requests
GET /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/config HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"terraform_backend_config": {
"terraform": {
"backend": {
"http": {
"address": "https://api.bluebricks.co/api/v1/deployments/<deployment_id>/<package_unique_id>/state",
"lock_address": "https://api.bluebricks.co/api/v1/deployments/<deployment_id>/<package_unique_id>/state/lock",
"unlock_address": "https://api.bluebricks.co/api/v1/deployments/<deployment_id>/<package_unique_id>/state/lock",
"username": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"password": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"
}
}
},
"variables": null
}
}Return deployment remote state
🔒 Requires the update:deployment permission
IaC type of the remote state
terraformPossible values: Deployment remote state
Failed to get deployment remote state
Failed to authenticate user or runtime
Cannot access deployment remote state. 🔒 Requires the update:deployment permission
Remote state not found
Too many requests
GET /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Set deployment remote state
🔒 Requires the update:deployment permission
Lock ID
IaC type of the remote state
terraformPossible values: Remote state
Deployment remote state set successfully
Deployment remote state set successfully
Failed to set deployment remote state
Failed to authenticate user or runtime
Cannot access deployment remote state. 🔒 Requires the update:deployment permission
Remote state updates locked
Too many requests
POST /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}No content
Delete deployment remote state
🔒 Requires the update:deployment permission
Lock ID
IaC type of the remote state
terraformPossible values: Deployment remote state deleted successfully
Deployment remote state deleted successfully
Failed to delete deployment remote state
Failed to authenticate user or runtime
Cannot access deployment remote state. 🔒 Requires the update:deployment permission
Remote state updates locked
Too many requests
DELETE /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/state HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Accept: */*
No content
Lock deployment remote state
🔒 Requires the update:deployment permission
IaC type of the remote state
terraformPossible values: Remote state lock details
Deployment remote state locked successfully
Failed to lock deployment remote state
Failed to authenticate user or runtime
Cannot access deployment remote state. 🔒 Requires the update:deployment permission
Remote state updates locked
Too many requests
LOCK /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Unlock deployment remote state
🔒 Requires the update:deployment permission
IaC type of the remote state
terraformPossible values: Remote state lock details
Deployment remote state unlocked successfully
Deployment remote state unlocked successfully
Failed to unlock deployment remote state
Failed to authenticate user or runtime
Cannot access deployment remote state. 🔒 Requires the update:deployment permission
Remote state lock not found
Remote state updates locked
Too many requests
UNLOCK /api/v1/deployments/{originDeploymentId}/{packageUniqueId}/lock HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}No content
Last updated
Was this helpful?

