Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Collections

get

Describe Collection with associated cloud accounts

🔒 Requires the read:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Responses
200

Information about the collection

application/json

Information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

approval_policybooleanRequired

Whether the collection requires approval for install or uninstall e.g. false

Example: false
cost_quotanumber · min: 1Optional

Maximum allowed total cost for all environments in this collection in USD e.g. 1000.50

Example: 1000.5
current_costnumberOptional

Current total cost for all environments in this collection in USD e.g. 1000.50

Example: 1000.5
get/api/v1/collection/{idOrSlug}
GET /api/v1/collection/{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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_accounts": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ],
      "is_primary": true,
      "profile": "secrets-manager"
    }
  ],
  "associated_items_count": {
    "members": 1,
    "properties": 1,
    "secrets": 1,
    "deployments": 1,
    "environments": 1
  },
  "approval_policy": false,
  "allowed_blueprints": [
    {
      "name": "text",
      "versions": [
        "text"
      ]
    }
  ],
  "cost_quota": 1000.5,
  "current_cost": 1000.5
}
delete

Delete a collection from the organization

🔒 Requires the delete:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Responses
200

Updated information about the collection

application/json

Updated information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

delete/api/v1/collection/{idOrSlug}
DELETE /api/v1/collection/{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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
post

Create a collection for deploying blueprints

🔒 Requires the create:collection permission

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

The collection name e.g. Production Europe

Example: Production Europe
colorstringOptional

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
defaultbooleanOptional

Whether the collection is the default for the organization e.g. true

Responses
200

Information about created collection

application/json

Information about created collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

post/api/v1/collection
POST /api/v1/collection HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "name": "Production Europe",
  "color": "#0000ff",
  "default": true,
  "enabled_policies": [
    "require_owner_approval"
  ]
}
{
  "id": "f27d96be-c486-4075-a926-0ee96775119e",
  "slug": "production-europe",
  "name": "Production Europe",
  "color": "#0000ff",
  "allow_pre_release": false,
  "is_default": true,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
put

Enable a collection

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
or
Responses
200

Updated information about the collection

application/json

Updated information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put/api/v1/collection
PUT /api/v1/collection 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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
delete

Disable a collection

🔒 Requires the delete:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
or
Responses
200

Updated information about the collection

application/json

Updated information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

delete/api/v1/collection
DELETE /api/v1/collection 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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
put

Change default collection for the organization

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Responses
200

Updated information about the collection

application/json

Updated information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put/api/v1/collection/{idOrSlug}/default
PUT /api/v1/collection/{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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
patch

Update collection 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:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Body
namestringOptional

The collection name e.g. Production Europe

Example: Production Europe
colorstringOptional

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanOptional

Whether the collection allows pre-release deployments e.g. false

Example: false
cost_quotanumber · min: 1Optional

Maximum allowed total cost for all environments in this collection in USD e.g. 1000.50

Example: 1000.5
Responses
200

Updated information about the collection

application/json

Updated information about the collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

cost_quotanumber · min: 1Optional

Maximum allowed total cost for all environments in this collection in USD e.g. 1000.50

Example: 1000.5
patch/api/v1/collection/{idOrSlug}/edit
PATCH /api/v1/collection/{idOrSlug}/edit HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 218

{
  "name": "Production Europe",
  "color": "#0000ff",
  "allow_pre_release": false,
  "users": [
    {
      "id": "prov0|1234567890",
      "membership_role": "member"
    }
  ],
  "allowed_blueprints": [
    {
      "idOrName": "text",
      "versions": [
        "text"
      ]
    }
  ],
  "cost_quota": 1000.5
}
{
  "id": "f27d96be-c486-4075-a926-0ee96775119e",
  "slug": "production-europe",
  "name": "Production Europe",
  "color": "#0000ff",
  "allow_pre_release": false,
  "is_default": true,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null,
  "cost_quota": 1000.5,
  "allowed_blueprints": [
    {
      "name": "text",
      "versions": [
        "text"
      ]
    }
  ]
}
put

Clone an existing collection with properties and policies

🔒 Requires the create:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Body
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
Responses
200

Information about cloned collection

application/json

Information about cloned collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put/api/v1/collection/{idOrSlug}/clone
PUT /api/v1/collection/{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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": null
}
get

List collection properties

🔒 Requires the read:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Responses
200

List of collection properties

application/json

List of collection properties

get/api/v1/collection/{idOrSlug}/props
GET /api/v1/collection/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "props": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "max_size",
      "content": "10",
      "is_enforced": true
    }
  ]
}
post

Create collection props

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodyobject[]

List of new collection properties

namestringRequired

The property name e.g. max_size

Example: max_size
contentstringRequired

The property value or content e.g. 10

Example: 10
is_enforcedbooleanOptional

Indicates whether the collection property takes precedence over any provided value e.g. true

Default: falseExample: true
Responses
200

Updated collection properties

application/json

Updated collection properties

post/api/v1/collection/{idOrSlug}/props
POST /api/v1/collection/{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
  }
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "props": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "max_size",
      "content": "10",
      "is_enforced": true
    }
  ]
}
put

Update collection props

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodyobject[]

List of updated collection properties

idstring · uuidOptional

The property ID e.g. 123e4567-e89b-12d3-a456-426614174000

namestringRequired

The property name e.g. max_size

Example: max_size
contentstringRequired

The property value or content e.g. 10

Example: 10
is_enforcedbooleanOptional

Indicates whether the collection property takes precedence over any provided value e.g. true

Default: falseExample: true
Responses
200

Updated collection properties

application/json

Updated collection properties

put/api/v1/collection/{idOrSlug}/props
PUT /api/v1/collection/{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
  }
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "props": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "max_size",
      "content": "10",
      "is_enforced": true
    }
  ]
}
delete

Delete collection props

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodystring[]
string[]Optional
Responses
200

Updated collection props

application/json

Updated collection props

delete/api/v1/collection/{idOrSlug}/props
DELETE /api/v1/collection/{idOrSlug}/props HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 8

[
  "text"
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "props": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "max_size",
      "content": "10",
      "is_enforced": true
    }
  ]
}
get

List packages allowed to be deployed in the collection

🔒 Requires the read:package permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Query parameters
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumber · max: 1000Optional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
searchstringOptional

Enables searching within the list for package names that match a particular query e.g. sns

Responses
200

List of packages allowed in the collection

application/json

List of packages allowed in the collection

totalnumberRequired
get/api/v1/collection/{idOrSlug}/blueprints
GET /api/v1/collection/{idOrSlug}/blueprints HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "packages": [
    {
      "name": "@bluebricks/aws-vpc",
      "version": "1.2.3",
      "created": "2026-01-01T00:00:00.000Z",
      "description": "A package for blueprinting a VPC",
      "iac_type": [
        "terraform"
      ],
      "tags": [
        "my-tag"
      ],
      "allowed_versions": [
        "text"
      ]
    }
  ],
  "total": 1
}
get

List collection secrets

🔒 Requires the read:secret permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Responses
200

List of collection secrets

application/json

List of collection secrets

get/api/v1/collection/{idOrSlug}/settings/secrets
GET /api/v1/collection/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "secrets": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "API_TOKEN",
      "value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
    }
  ]
}
post

Create collection secrets

🔒 Requires the create:secret permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodyobject[]

List of new collection-scoped secrets

keystringRequired

The secret key e.g. API_TOKEN

Example: API_TOKEN
valuestringRequired

The secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==

Example: ERJZ7ZOJcNpQEAvrb6wPOA==
Responses
200

Updated collection secrets

application/json

Updated collection secrets

post/api/v1/collection/{idOrSlug}/settings/secrets
POST /api/v1/collection/{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=="
  }
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "secrets": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "API_TOKEN",
      "value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
    }
  ]
}
put

Update collection secrets

🔒 Requires the update:secret permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodyobject[]

List of updated collection-scoped secrets

idstring · uuidOptional

The secret ID e.g. 123e4567-e89b-12d3-a456-426614174000

keystringRequired

The secret key e.g. API_TOKEN

Example: API_TOKEN
valuestringRequired

The secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==

Example: ERJZ7ZOJcNpQEAvrb6wPOA==
Responses
200

Updated collection secrets

application/json

Updated collection secrets

put/api/v1/collection/{idOrSlug}/settings/secrets
PUT /api/v1/collection/{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=="
  }
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "secrets": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "API_TOKEN",
      "value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
    }
  ]
}
delete

Delete collection secrets

🔒 Requires the delete:secret permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodystring[]
string[]Optional

List of secret keys to delete within the collection

Responses
200

Updated collection secrets

application/json

Updated collection secrets

delete/api/v1/collection/{idOrSlug}/settings/secrets
DELETE /api/v1/collection/{idOrSlug}/settings/secrets HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 8

[
  "text"
]
{
  "collection": {
    "guid": "f27d96be-c486-4075-a926-0ee96775119e",
    "slug": "production-europe",
    "cloudAccount": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "type": "execution",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2026-01-01T00:00:00.000Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "execution": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "discovery": {
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
        },
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "types": [
        "execution"
      ]
    }
  },
  "secrets": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "API_TOKEN",
      "value": "ERJZ7ZOJcNpQEAvrb6wPOA=="
    }
  ]
}
get

List available collection secrets for the user's organization

🔒 Requires the read:collection 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. name

Default: created_atPossible values:
orderstringOptional

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

offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumberOptional

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 Secret Keys that match a particular query e.g. api_key

Responses
200

List of available collection secrets

application/json

List of available collection secrets

totalnumberRequired
get/api/v1/collection/settings/secrets
GET /api/v1/collection/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",
      "collection": {
        "id": "f27d96be-c486-4075-a926-0ee96775119e",
        "slug": "production-europe",
        "name": "Production Europe",
        "color": "#0000ff",
        "allow_pre_release": false,
        "is_default": true,
        "enabled_policies": [
          "require_owner_approval"
        ],
        "is_active": true,
        "is_deleted": true,
        "created": "2026-01-01T00:00:00.000Z",
        "users": [
          {
            "id": "prov0|1234567890",
            "name": "John Doe",
            "email": "johndoe@mail.com",
            "nickname": "JD",
            "picture": "https://example.com/profile.jpg",
            "roles": [
              {
                "id": "rol_abCdeFghIjklMnmP",
                "name": "Admin",
                "description": "Role for managing Admin permissions"
              }
            ],
            "membership_role": "member"
          }
        ],
        "cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ],
          "is_primary": true,
          "profile": "secrets-manager"
        },
        "discovery_cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ]
        }
      },
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": null,
      "created_by": {
        "id": "prov0|1234567890",
        "name": "John Doe",
        "nickname": "JD",
        "picture": "https://example.com/profile.jpg"
      }
    }
  ],
  "filters": {
    "collections": [
      {
        "id": "f27d96be-c486-4075-a926-0ee96775119e",
        "slug": "production-europe",
        "name": "Production Europe",
        "color": "#0000ff",
        "allow_pre_release": false,
        "is_default": true,
        "enabled_policies": [
          "require_owner_approval"
        ],
        "is_active": true,
        "is_deleted": true,
        "created": "2026-01-01T00:00:00.000Z",
        "users": [
          {
            "id": "prov0|1234567890",
            "name": "John Doe",
            "email": "johndoe@mail.com",
            "nickname": "JD",
            "picture": "https://example.com/profile.jpg",
            "roles": [
              {
                "id": "rol_abCdeFghIjklMnmP",
                "name": "Admin",
                "description": "Role for managing Admin permissions"
              }
            ],
            "membership_role": "member"
          }
        ],
        "cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ],
          "is_primary": true,
          "profile": "secrets-manager"
        },
        "discovery_cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ]
        }
      }
    ],
    "users": [
      {
        "id": "prov0|1234567890",
        "name": "John Doe",
        "nickname": "JD",
        "picture": "https://example.com/profile.jpg"
      }
    ]
  }
}
put

Update collection policies

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
Bodyobject · collectionPolicyUpdate[]

List of collection policies to update

policystring · enumRequired

The name of the policy

Example: require_owner_approvalPossible values:
enablebooleanRequired

Whether to enable or disable the policy

Responses
200

Updated policy information

application/json

Updated policy information

policystring · enumOptional

The name of the policy

Example: require_owner_approvalPossible values:
enablebooleanOptional

Current policy state after update

put/api/v1/collection/{idOrSlug}/settings/policies
PUT /api/v1/collection/{idOrSlug}/settings/policies HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51

[
  {
    "policy": "require_owner_approval",
    "enable": true
  }
]
[
  {
    "policy": "require_owner_approval",
    "enable": true
  }
]
get

List available collections for the user's organization

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
allbooleanOptional

If false, return active collections only. If true, return all collections

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

filterstringOptional

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

limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
sortstring · enumOptional

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

Default: createdPossible values:
searchstringOptional

Enables searching within the list for collection names that match a particular query e.g. prod

Responses
200

List of available collections

application/json

List of available collections

totalnumberRequired
get/api/v1/collections
GET /api/v1/collections 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,
      "enabled_policies": [
        "require_owner_approval"
      ],
      "is_active": true,
      "is_deleted": true,
      "created": "2026-01-01T00:00:00.000Z",
      "users": [
        {
          "id": "prov0|1234567890",
          "name": "John Doe",
          "email": "johndoe@mail.com",
          "nickname": "JD",
          "picture": "https://example.com/profile.jpg",
          "roles": [
            {
              "id": "rol_abCdeFghIjklMnmP",
              "name": "Admin",
              "description": "Role for managing Admin permissions"
            }
          ],
          "membership_role": "member"
        }
      ],
      "cloud_account": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "Production Europe",
        "provider": "aws",
        "type": "execution",
        "slug": "production-europe",
        "is_active": true,
        "is_deleted": false,
        "created": "2026-01-01T00:00:00.000Z",
        "cloud_account": "123456789012",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "external_id": "abcdef-ghijklm",
        "cloud_config": {
          "execution": {
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
          },
          "discovery": {
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
          },
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
          "ANY_ADDITIONAL_PROPERTY": "anything"
        },
        "types": [
          "execution"
        ],
        "is_primary": true,
        "profile": "secrets-manager"
      },
      "discovery_cloud_account": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "Production Europe",
        "provider": "aws",
        "type": "execution",
        "slug": "production-europe",
        "is_active": true,
        "is_deleted": false,
        "created": "2026-01-01T00:00:00.000Z",
        "cloud_account": "123456789012",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "external_id": "abcdef-ghijklm",
        "cloud_config": {
          "execution": {
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
          },
          "discovery": {
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
          },
          "service_account_email": "sa@project_id.iam.gserviceaccount.com",
          "scopes": "https://www.googleapis.com/auth/cloud-platform",
          "tenant_id": "text",
          "subscription_id": "text",
          "federated_app_client_id": "text",
          "oidc_issuer_url": "https://example.com",
          "oidc_audience": "text",
          "cluster_name": "text",
          "service_account_namespace": "text",
          "service_account_name": "text",
          "cluster_oidc_url": "https://example.com",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
          "ANY_ADDITIONAL_PROPERTY": "anything"
        },
        "types": [
          "execution"
        ]
      },
      "latest_deployment": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "slug": "text",
        "type": "blueprint",
        "name": "text",
        "version": "text",
        "stage": "pending",
        "is_uninstall": true,
        "timestamp": "2026-01-01T00:00:00.000Z",
        "user": {
          "id": "prov0|1234567890",
          "name": "John Doe",
          "nickname": "JD",
          "picture": "https://example.com/profile.jpg",
          "email": "johndoe@mail.com"
        }
      },
      "allowed_blueprints": [
        {
          "name": "text",
          "versions": [
            "text"
          ]
        }
      ],
      "cost_quota": 1000.5,
      "current_cost": 1000.5
    }
  ]
}
get

List available Collection properties of an organization

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
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

filterstringOptional

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

limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
sortstring · enumOptional

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

Default: created_atPossible values:
searchstringOptional

Enables searching within the list for collection names that match a particular query

packagestringOptional

The package name with version e.g. @bluebricks/aws-vpc@1.2.3

Example: @bluebricks/aws-vpc@1.2.3
Responses
200

List of available Collection properties of an organization

application/json

List of available Collection properties of an organization

totalnumberRequired
get/api/v1/collections/props
GET /api/v1/collections/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",
      "collection": {
        "id": "f27d96be-c486-4075-a926-0ee96775119e",
        "slug": "production-europe",
        "name": "Production Europe",
        "color": "#0000ff",
        "allow_pre_release": false,
        "is_default": true,
        "enabled_policies": [
          "require_owner_approval"
        ],
        "is_active": true,
        "is_deleted": true,
        "created": "2026-01-01T00:00:00.000Z",
        "users": [
          {
            "id": "prov0|1234567890",
            "name": "John Doe",
            "email": "johndoe@mail.com",
            "nickname": "JD",
            "picture": "https://example.com/profile.jpg",
            "roles": [
              {
                "id": "rol_abCdeFghIjklMnmP",
                "name": "Admin",
                "description": "Role for managing Admin permissions"
              }
            ],
            "membership_role": "member"
          }
        ],
        "cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ],
          "is_primary": true,
          "profile": "secrets-manager"
        },
        "discovery_cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ]
        }
      },
      "content": "10",
      "is_enforced": true,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": null,
      "created_by": {
        "id": "prov0|1234567890",
        "name": "John Doe",
        "nickname": "JD",
        "picture": "https://example.com/profile.jpg"
      }
    }
  ],
  "filters": {
    "collections": [
      {
        "id": "f27d96be-c486-4075-a926-0ee96775119e",
        "slug": "production-europe",
        "name": "Production Europe",
        "color": "#0000ff",
        "allow_pre_release": false,
        "is_default": true,
        "enabled_policies": [
          "require_owner_approval"
        ],
        "is_active": true,
        "is_deleted": true,
        "created": "2026-01-01T00:00:00.000Z",
        "users": [
          {
            "id": "prov0|1234567890",
            "name": "John Doe",
            "email": "johndoe@mail.com",
            "nickname": "JD",
            "picture": "https://example.com/profile.jpg",
            "roles": [
              {
                "id": "rol_abCdeFghIjklMnmP",
                "name": "Admin",
                "description": "Role for managing Admin permissions"
              }
            ],
            "membership_role": "member"
          }
        ],
        "cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ],
          "is_primary": true,
          "profile": "secrets-manager"
        },
        "discovery_cloud_account": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Production Europe",
          "provider": "aws",
          "type": "execution",
          "slug": "production-europe",
          "is_active": true,
          "is_deleted": false,
          "created": "2026-01-01T00:00:00.000Z",
          "cloud_account": "123456789012",
          "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
          "external_id": "abcdef-ghijklm",
          "cloud_config": {
            "execution": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "discovery": {
              "service_account_email": "sa@project_id.iam.gserviceaccount.com",
              "scopes": "https://www.googleapis.com/auth/cloud-platform",
              "tenant_id": "text",
              "subscription_id": "text",
              "federated_app_client_id": "text",
              "oidc_issuer_url": "https://example.com",
              "oidc_audience": "text",
              "cluster_name": "text",
              "service_account_namespace": "text",
              "service_account_name": "text",
              "cluster_oidc_url": "https://example.com",
              "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
              "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
            },
            "service_account_email": "sa@project_id.iam.gserviceaccount.com",
            "scopes": "https://www.googleapis.com/auth/cloud-platform",
            "tenant_id": "text",
            "subscription_id": "text",
            "federated_app_client_id": "text",
            "oidc_issuer_url": "https://example.com",
            "oidc_audience": "text",
            "cluster_name": "text",
            "service_account_namespace": "text",
            "service_account_name": "text",
            "cluster_oidc_url": "https://example.com",
            "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
            "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "types": [
            "execution"
          ]
        }
      }
    ],
    "users": [
      {
        "id": "prov0|1234567890",
        "name": "John Doe",
        "nickname": "JD",
        "picture": "https://example.com/profile.jpg"
      }
    ]
  }
}
post

Assign a cloud account to a collection

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
cloudIdstring · uuidRequired

The cloud ID to associate with the collection e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6

Example: f27d96be-c486-4075-a926-0ee96775119f
Body
is_primarybooleanOptional

Indicate if the cloud is going to be the one used for provisioning in the associated collection

Default: false
profilestringOptional

Profile is a named configuration of a specific cloud account

Example: secrets-manager
Responses
200

Updated collection

application/json

Updated collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

post/api/v1/collections/{collectionIdOrSlug}/cloud/{cloudId}
POST /api/v1/collections/{collectionIdOrSlug}/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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Production Europe",
    "provider": "aws",
    "type": "execution",
    "slug": "production-europe",
    "is_active": true,
    "is_deleted": false,
    "created": "2026-01-01T00:00:00.000Z",
    "cloud_account": "123456789012",
    "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
    "external_id": "abcdef-ghijklm",
    "cloud_config": {
      "execution": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "discovery": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "service_account_email": "sa@project_id.iam.gserviceaccount.com",
      "scopes": "https://www.googleapis.com/auth/cloud-platform",
      "tenant_id": "text",
      "subscription_id": "text",
      "federated_app_client_id": "text",
      "oidc_issuer_url": "https://example.com",
      "oidc_audience": "text",
      "cluster_name": "text",
      "service_account_namespace": "text",
      "service_account_name": "text",
      "cluster_oidc_url": "https://example.com",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "types": [
      "execution"
    ],
    "is_primary": true,
    "profile": "secrets-manager"
  },
  "discovery_cloud_account": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Production Europe",
    "provider": "aws",
    "type": "execution",
    "slug": "production-europe",
    "is_active": true,
    "is_deleted": false,
    "created": "2026-01-01T00:00:00.000Z",
    "cloud_account": "123456789012",
    "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
    "external_id": "abcdef-ghijklm",
    "cloud_config": {
      "execution": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "discovery": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "service_account_email": "sa@project_id.iam.gserviceaccount.com",
      "scopes": "https://www.googleapis.com/auth/cloud-platform",
      "tenant_id": "text",
      "subscription_id": "text",
      "federated_app_client_id": "text",
      "oidc_issuer_url": "https://example.com",
      "oidc_audience": "text",
      "cluster_name": "text",
      "service_account_namespace": "text",
      "service_account_name": "text",
      "cluster_oidc_url": "https://example.com",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "types": [
      "execution"
    ]
  }
}
post

Assign a secondary cloud account to a collection

🔒 Requires the update:collection permission

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

The collection's slug or ID e.g. prod | f27d96be-c486-4075-a926-0ee96775119d

Example: production-europe
cloudIdstring · uuidRequired

The cloud ID to associate with the collection e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6

Example: f27d96be-c486-4075-a926-0ee96775119f
Body
profilestringRequired

Profile is a named configuration of a specific cloud account

Example: secrets-manager
Responses
200

Updated collection

application/json

Updated collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
slugstringRequired

The collection slug e.g. production-europe

Example: production-europe
namestringRequired

The collection name e.g. Production Europe

Example: Production Europe
colorstringRequired

The collection color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the collection allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the collection is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the collection is active e.g. true

is_deletedbooleanRequired

Indicate if the collection was deleted e.g. true

createdstring · date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

post/api/v1/collections/{collectionIdOrSlug}/cloud/secondary/{cloudId}
POST /api/v1/collections/{collectionIdOrSlug}/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,
  "enabled_policies": [
    "require_owner_approval"
  ],
  "is_active": true,
  "is_deleted": true,
  "created": "2026-01-01T00:00:00.000Z",
  "users": [
    {
      "id": "prov0|1234567890",
      "name": "John Doe",
      "email": "johndoe@mail.com",
      "nickname": "JD",
      "picture": "https://example.com/profile.jpg",
      "roles": [
        {
          "id": "rol_abCdeFghIjklMnmP",
          "name": "Admin",
          "description": "Role for managing Admin permissions"
        }
      ],
      "membership_role": "member"
    }
  ],
  "cloud_account": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Production Europe",
    "provider": "aws",
    "type": "execution",
    "slug": "production-europe",
    "is_active": true,
    "is_deleted": false,
    "created": "2026-01-01T00:00:00.000Z",
    "cloud_account": "123456789012",
    "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
    "external_id": "abcdef-ghijklm",
    "cloud_config": {
      "execution": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "discovery": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "service_account_email": "sa@project_id.iam.gserviceaccount.com",
      "scopes": "https://www.googleapis.com/auth/cloud-platform",
      "tenant_id": "text",
      "subscription_id": "text",
      "federated_app_client_id": "text",
      "oidc_issuer_url": "https://example.com",
      "oidc_audience": "text",
      "cluster_name": "text",
      "service_account_namespace": "text",
      "service_account_name": "text",
      "cluster_oidc_url": "https://example.com",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "types": [
      "execution"
    ],
    "is_primary": true,
    "profile": "secrets-manager"
  },
  "discovery_cloud_account": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Production Europe",
    "provider": "aws",
    "type": "execution",
    "slug": "production-europe",
    "is_active": true,
    "is_deleted": false,
    "created": "2026-01-01T00:00:00.000Z",
    "cloud_account": "123456789012",
    "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
    "external_id": "abcdef-ghijklm",
    "cloud_config": {
      "execution": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "discovery": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "tenant_id": "text",
        "subscription_id": "text",
        "federated_app_client_id": "text",
        "oidc_issuer_url": "https://example.com",
        "oidc_audience": "text",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
        "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123"
      },
      "service_account_email": "sa@project_id.iam.gserviceaccount.com",
      "scopes": "https://www.googleapis.com/auth/cloud-platform",
      "tenant_id": "text",
      "subscription_id": "text",
      "federated_app_client_id": "text",
      "oidc_issuer_url": "https://example.com",
      "oidc_audience": "text",
      "cluster_name": "text",
      "service_account_namespace": "text",
      "service_account_name": "text",
      "cluster_oidc_url": "https://example.com",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "cloud_formation_stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/bluebricks-setup/abcde12345-6789-0123-4567-89abcdef0123",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "types": [
      "execution"
    ]
  }
}
delete

Dissociate cloud id from collection

🔒 Requires the update:collection permission

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

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

Example: f27d96be-c486-4075-a926-0ee96775119e
cloudIdstring · uuidRequired
Responses
200

Updated collection

application/json

Updated collection

idstring · uuidRequired

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

Example: f27d96be-c486-4075-a926-0ee96775119e
cloud_accountstring · uuidRequired
messagestringRequired
delete/api/v1/collections/{collectionId}/cloud/{cloudId}
DELETE /api/v1/collections/{collectionId}/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"
}

Last updated