Environments
Describe Environment with associated cloud accounts
🔒 Requires the read:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeInformation about the environment
Failed to get environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:environment permission
Environment not found
Too many requests
GET /api/v1/environment/{idOrSlug} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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:51.576Z",
"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_accounts": [
{
"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:51.576Z",
"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"
}
],
"associated_items_count": {
"members": 1,
"properties": 1,
"secrets": 1,
"live_deployments": 1
}
}Delete an environment from the organization
🔒 Requires the delete:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeUpdated information about the environment
Failed to delete the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the delete:environment permission
Environment not found
Too many requests
DELETE /api/v1/environment/{idOrSlug} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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:51.576Z",
"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": null
}Create an environment for deploying blueprints
🔒 Requires the create:environment permission
The environment name e.g. Production Europe
Production EuropeThe environment color code e.g. #0000ff
#0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$Whether the environment is the default for the organization e.g. true
Information about created environment
Failed to create an environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:environment permission
Too many requests
POST /api/v1/environment HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"name": "Production Europe",
"color": "#0000ff",
"default": true
}{
"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:51.576Z",
"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": null
}Enable an environment
🔒 Requires the update:environment permission
Updated information about the environment
Failed to update the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment not found
Too many requests
PUT /api/v1/environment HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"slug": "production-europe"
}{
"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:51.576Z",
"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": null
}Disable an environment
🔒 Requires the delete:environment permission
Updated information about the environment
Failed to update the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the delete:environment permission
Environment not found
Too many requests
DELETE /api/v1/environment HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"slug": "production-europe"
}{
"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:51.576Z",
"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": null
}Change default environment for the organization
🔒 Requires the update:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeUpdated information about the environment
Failed to update the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment not found
Too many requests
PUT /api/v1/environment/{idOrSlug}/default HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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:51.576Z",
"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": null
}Update environment properties such as color code, name, pre-release status, or associated users. Note: The slug remains unchanged even if the name is updated.
🔒 Requires the update:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeThe environment name e.g. Production Europe
Production EuropeThe environment color code e.g. #0000ff
#0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$Whether the environment allows pre-release deployments e.g. false
falseThe user's unique ID e.g. prov0|1234567890
prov0|1234567890Updated information about the environment
Failed to update the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment not found
Too many requests
PUT /api/v1/environment/{idOrSlug}/edit HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"name": "Production Europe",
"color": "#0000ff",
"allow_pre_release": false,
"users": [
"prov0|1234567890"
]
}{
"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:51.576Z",
"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": null
}Clone an existing environment with properties and policies
🔒 Requires the create:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeThe environment name e.g. Production Europe
Production EuropeInformation about cloned environment
Failed to clone the environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:environment permission
Environment not found
Too many requests
PUT /api/v1/environment/{idOrSlug}/clone HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"name": "Production Europe"
}{
"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:51.576Z",
"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": null
}List environment properties
🔒 Requires the read:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of environment properties
Failed to list environment props
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:environment permission
Environment not found
Too many requests
GET /api/v1/environment/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"props": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"content": "10",
"is_enforced": true
}
]
}Create environment props
🔒 Requires the update:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of new environment properties
The property name e.g. max_size
max_sizeThe property value or content e.g. 10
10Indicates whether the environment property takes precedence over any provided value e.g. true
falseExample: trueUpdated environment properties
Failed to create environment props
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment not found
Environment prop already exists
Too many requests
POST /api/v1/environment/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
[
{
"name": "max_size",
"content": "10",
"is_enforced": true
}
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"props": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"content": "10",
"is_enforced": true
}
]
}Update environment props
🔒 Requires the update:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of updated environment properties
The property ID e.g. 123e4567-e89b-12d3-a456-426614174000
The property name e.g. max_size
max_sizeThe property value or content e.g. 10
10Indicates whether the environment property takes precedence over any provided value e.g. true
falseExample: trueUpdated environment properties
Failed to update environment props
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment or prop not found
Environment prop already exists
Too many requests
PUT /api/v1/environment/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 99
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"content": "10",
"is_enforced": true
}
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"props": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"content": "10",
"is_enforced": true
}
]
}Delete environment props
🔒 Requires the update:environment permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeUpdated environment props
Failed to delete environment props
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment or prop not found
Too many requests
DELETE /api/v1/environment/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"props": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"content": "10",
"is_enforced": true
}
]
}List environment secrets
🔒 Requires the read:secret permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of environment secrets
Failed to list environment secrets
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:secret permission
Environment not found
Too many requests
GET /api/v1/environment/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"secrets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]
}Create environment secrets
🔒 Requires the create:secret permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of new environment-scoped secrets
The secret key e.g. API_TOKEN
API_TOKENThe secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==
ERJZ7ZOJcNpQEAvrb6wPOA==Updated environment secrets
Failed to create environment secrets
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:secret permission
Environment not found
Secret with such key already exists
Too many requests
POST /api/v1/environment/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
[
{
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"secrets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]
}Update environment secrets
🔒 Requires the update:secret permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of updated environment-scoped secrets
The secret ID e.g. 123e4567-e89b-12d3-a456-426614174000
The secret key e.g. API_TOKEN
API_TOKENThe secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==
ERJZ7ZOJcNpQEAvrb6wPOA==Updated environment secrets
Failed to update environment secrets
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:secret permission
Environment or secret with provided key not found
Secret with such key already exists
Too many requests
PUT /api/v1/environment/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 100
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"secrets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]
}Delete environment secrets
🔒 Requires the delete:secret permission
The environment's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d
production-europeList of secret keys to delete within the environment
Updated environment secrets
Failed to delete environment secrets
Failed to authenticate user
Missing required scopes. 🔒 Requires the delete:secret permission
Environment or secret with provided key not found
Too many requests
DELETE /api/v1/environment/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"environment": {
"guid": "f27d96be-c486-4075-a926-0ee96775119e",
"slug": "production-europe",
"cloudAccount": {
"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:51.576Z",
"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"
}
}
},
"secrets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "API_TOKEN",
"value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
}
]
}List available environment secrets for the user's organization
🔒 Requires the read:environment permission
Specifies the attribute by which the returned list should be sorted ' +
'e.g. name
created_atPossible values: Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Results offset to allow pagination e.g. 10
0Example: 10Results limit to allow pagination, e.g. 50
20Example: 10Structure: [key1=value1,key2=value2&value3]
Enables searching within the list for Secret Keys that match a particular query e.g. api_key
List of available environment secrets
Failed to list available environment secrets
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:environment permission
Users assigned to the environment not found
Too many requests
GET /api/v1/environment/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"list": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "API_TOKEN",
"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:51.576Z",
"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:51.576Z",
"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"
}
},
"created_at": "2025-11-11T15:09:51.576Z",
"updated_at": null,
"created_by": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
}
],
"filters": {
"environments": [
{
"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:51.576Z",
"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:51.576Z",
"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"
}
}
],
"users": [
{
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
]
}
}List available environments for the user's organization
🔒 Requires the read:environment permission
If false, return active environments only. If true, return all environments
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
Structure: [key1=value1,key2=value2&value3]
Results limit to allow pagination, e.g. 50
20Example: 10Specifies the attribute by which the returned list should be sorted ' +
'e.g. name
createdPossible values: Enables searching within the list for environment names that match a particular query e.g. prod
List of available deployment environments
Failed to list available environments
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:environment permission
Too many requests
GET /api/v1/environments HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"stats": {
"active": 1,
"cloud_connected": 1
},
"list": [
{
"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:51.576Z",
"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:51.576Z",
"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"
},
"latest_deployment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"slug": "text",
"type": "blueprint",
"name": "text",
"version": "text",
"stage": "pending",
"is_uninstall": true,
"timestamp": "2025-11-11T15:09:51.576Z",
"user": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
}
}
]
}List available Environment properties of an organization
🔒 Requires the read:environment permission
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
Structure: [key1=value1,key2=value2&value3]
Results limit to allow pagination, e.g. 50
20Example: 10Specifies the attribute by which the returned list should be sorted ' +
'e.g. name
created_atPossible values: Enables searching within the list for environment names that match a particular query
The package name with version e.g. @bluebricks/[email protected]
@bluebricks/[email protected]List of available Environment properties of an organization
Failed to list Environment Props of an organization
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:environment permission
Users assigned to the environment not found
Too many requests
GET /api/v1/environments/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"list": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "max_size",
"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:51.576Z",
"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:51.576Z",
"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"
}
},
"content": "10",
"is_enforced": true,
"created_at": "2025-11-11T15:09:51.576Z",
"updated_at": null,
"created_by": {
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
}
],
"filters": {
"environments": [
{
"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:51.576Z",
"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:51.576Z",
"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"
}
}
],
"users": [
{
"id": "prov0|1234567890",
"name": "John Doe",
"nickname": "JD",
"picture": "https://example.com/profile.jpg"
}
]
}
}Assign a cloud account to an environment
🔒 Requires the update:environment permission
The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
f27d96be-c486-4075-a926-0ee96775119eThe cloud ID to associate with the environment e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6
f27d96be-c486-4075-a926-0ee96775119fIndicate if the cloud is going to be the one used for provisioning in the associated environment
falseProfile is a named configuration of a specific cloud account
secrets-managerUpdated environment
Failed to assign cloud id to environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment or cloud account not found
Cloud account already assigned
Too many requests
POST /api/v1/environments/{envId}/cloud/{cloudId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"is_primary": false,
"profile": "secrets-manager"
}{
"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:51.576Z",
"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:51.576Z",
"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"
}
}Dissociate cloud id from environment
🔒 Requires the update:environment permission
The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
f27d96be-c486-4075-a926-0ee96775119eUpdated environment
Failed to dissociate cloud id from environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment or cloud account not found
Too many requests
DELETE /api/v1/environments/{envId}/cloud/{cloudId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "f27d96be-c486-4075-a926-0ee96775119e",
"cloud_account": "123e4567-e89b-12d3-a456-426614174000",
"message": "text"
}Assign a secondary cloud account to an environment
🔒 Requires the update:environment permission
The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e
f27d96be-c486-4075-a926-0ee96775119eThe cloud ID to associate with the environment e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6
f27d96be-c486-4075-a926-0ee96775119fProfile is a named configuration of a specific cloud account
secrets-managerUpdated environment
Failed to assign cloud id to environment
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:environment permission
Environment or cloud account not found
Cloud account already assigned
Too many requests
POST /api/v1/environments/{envId}/cloud/secondary/{cloudId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"profile": "secrets-manager"
}{
"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:51.576Z",
"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:51.576Z",
"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"
}
}Last updated
Was this helpful?

