Package

get

Get extended package details

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
returnSlimbooleanOptional

Return slim version of bricks.json if exists

Default: false
Responses
get
/api/v1/package
post

Publish a bricks.json-based blueprint to the package registry. Supports both traditional bricks.json format and new slim bricks.yaml format. The package will be uploaded to the provided namespace.

If no namespace is provided, it will be uploaded to the organization namespace by default. This ensures that packages are properly organized and accessible within the appropriate scope.

Supported formats:

  • bricks.json: Traditional full-format blueprint
  • bricks.json (slim): Slim format in JSON (automatically converted to "traditional" format)
  • bricks.yaml / bricks.yml: YAML declarative format (automatically converted to "traditional" format)

🔒 Requires the create:package permission

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

The blueprint configuration file. Supports bricks.json ("traditional" and "slim" version), bricks.yaml

slimBricksbooleanOptional

Set to true if the provided bricks file is in slim format (YAML or JSON). If false or not provided, the file is expected to be in traditional bricks.json format

Default: false
packagestring · binaryOptional

The package content, zipped (required only for native packages)

statebooleanOptional

Whether the package includes initial state, e.g. true

Default: false
gitCommitHashstringOptional

The git commit hash of the package source

Example: 8f63e821f0df35c1f0c354c2ce15d5f8a65a6039
gitRemoteUrlstringOptional

The git remote url of the package repository

Example: https://github.com/username/repository.git
gitBranchstringOptional

The git branch name the package was created from

Example: main
gitSubdirPathstringOptional

The git subdirectory path of the package repository

Example: path/to/subdirectory
artifactHashstringOptional

SHA-256 hash of the artifact files for collision validation purposes (relevant only for packages of type artifact)

Example: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adPattern: ^[a-fA-F0-9]{64}$
bricksRawSlimstring · binaryOptional

Optional original slim bricks file provided during CLI publishing

Responses
post
/api/v1/package
get

List the available versions of a package

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
include_disabledbooleanOptionalDefault: false
Responses
get
/api/v1/package/versions
get

Get the last message from a publisher status stream by job ID. Returns the latest status update including progress, message, and status information.

🔒 Requires the read:package permission

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

Unique identifier for the publisher status stream job

Example: 123e4567-e89b-12d3-a456-42661417400
Responses
get
/api/v1/package/stream/{jobId}
post

Search through published packages

🔒 Requires the read:package permission

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

limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 10Example: 10
querystringRequired

Search query e.g. blue*, *blue

sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted

Possible values:
Responses
post
/api/v1/package/search
get

Return package filters

🔒 Requires the read:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
get
/api/v1/package/filters
get

Provide the status of a specific package for the account. Mostly used to indicate if package is already enabled for an account

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
include_pre_releasebooleanOptional

Include pre-release versions

Responses
get
/api/v1/package/status
get

Validate package properties

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
validate_propsstring[]Required

List of properties to validate if they are customizable e.g. ["bucket_name.region", "vpc_id"]

Responses
get
/api/v1/package/validation/customizable
post

Enable package version/s within the org

🔒 Requires the update:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
Responses
post
/api/v1/package/enable
post

Disable package version/s within the org

🔒 Requires the update:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
Responses
post
/api/v1/package/disable
post

Install package on remote cloud

🔒 Requires the create:deployment permission

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

Validate package for installation without execution

Default: false
Body
packagestringRequired

The package name, e.g. @bluebricks/postgres. Optional if planId is provided

Example: @bluebricks/aws-vpc
versionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
forcebooleanOptional

Force installation without approval

planOnlybooleanOptional

Plan the installation/uninstall without executing

Default: false
incrementalbooleanOptional

Enable incremental mode to skip deployments with no changes

Default: false
driftDetectionbooleanOptional

Execute drift detection for the deployment

Default: false
isDriftDetectionEnabledbooleanOptional

Enable drift detection for the deployment

Default: false
envstringOptional

Target environment for installation

Default: The default environment of the organization
slugstringOptional

Provides a slug for a newly created deployment. Cannot be specified if deployment was provided

deploymentstringOptional

Identify a previous deployments using its ID or slug for the same package in the same environment to share state and slug e.g. postgres-prod or 5ecbb18d-04c7-4298-b550-ab12bf661477

Responses
post
/api/v1/package/install
post

Uninstall package from cloud

🔒 Requires the create:deployment permission

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

Deployment ID or slug to target for uninstall e.g. aws-single-ec2-development-1 or 797746e4-07a0-4aed-bb15-89dd9a7c413a

planOnlybooleanOptional

Plan the installation/uninstall without executing

Default: false
Responses
post
/api/v1/package/uninstall
get

Load package by name and version

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
versionstringRequired

The package version e.g. 1.2.3

Example: 1.2.3
Responses
get
/api/v1/package/{packageName}/{version}
get

Get package properties with their values, sources, and metadata for a specific deployment context

🔒 Requires the read:package permission

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

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

Example: @bluebricks/aws-vpc
packageVersionstringOptional

The package version e.g. 1.2.3

Example: 1.2.3
environmentSlugstringOptional

The environment slug e.g. production-europe

Example: production-europe
deploymentIdOrSlugstringOptional

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

Responses
get
/api/v1/package/props
get

List packages used by organization

🔒 Requires the read:package permission

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

When true, returns all packages including those that were already deployed. When false, returns only not-deployed packages.

latestbooleanOptional

When true, returns only the latest version for each package

sortstring · enumOptional

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

Default: createdPossible values:
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
orderstringOptional

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

limitnumber · min: 3 · max: 1000Optional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
filterstringOptional

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

searchstringOptional

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

Responses
get
/api/v1/packages
post

Compare package file hashes to identify changed packages

🔒 Requires the read:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
post
/api/v1/package-changes

Last updated

Was this helpful?