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
chevron-right
200

Package info and bricks.json content

application/json

Package info and bricks.json content

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

eventIdstringOptional

The ID of the event triggering the publish

Responses
chevron-right
200

Information about published package

application/json

Information about published package

namestringRequired

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
urlstring · nullableOptionalExample: https://url.to.git.repo
createdstring · date-timeRequired

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

updatedstring · nullableOptional

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

is_latestbooleanOptional
enabler_emailstringOptional

The user's email address

Example: [email protected]
verified_atstring · nullableOptionalExample: 2021-08-17T10:00:00Z
descriptionstring · nullableOptionalExample: A package for blueprinting a VPC
typestring · enumRequiredExample: blueprintPossible values:
iac_typeone ofRequired
or
string · enumOptionalExample: terraformPossible values:
tagsstring[]Required

The tag name e.g. my-tag

Example: my-tag
costnumberOptional

Declared cost of the package

Example: 500
is_pre_releasebooleanRequired

Is this a pre-release version of the package

Example: true
git_commit_hashstringOptional

The git commit hash of the package source

Example: 8f63e821f0df35c1f0c354c2ce15d5f8a65a6039
git_short_shastringOptional

The git short SHA of the package source

Example: a1b2c3d4
git_remote_urlstringOptional

The git remote url of the package repository

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

The git branch name the package was created from

Example: main
git_subdir_pathstringOptional

The git subdirectory path of the package repository

Example: path/to/subdirectory
ownerstringRequired

The user's email address

Example: [email protected]
organizationstringRequired

The organization ID

Example: org_abCdeFghIjklMnmP
publisherJobIdstring · uuidOptional

Unique identifier for the publisher status stream job

Example: 123e4567-e89b-12d3-a456-42661417400
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
chevron-right
200

Package info and list of versions

application/json

Package info and list of versions

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
chevron-right
200

Last message from the publisher stream

application/json

Last message from the publisher stream

messageIdstringRequired

Stream message ID

Example: 1234567890123-0
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
chevron-right
200

List of packages matching the query

application/json

List of packages matching the query

resultsnumberRequired
totalnumberRequired
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
chevron-right
200

Package filters

application/json

Package filters

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
chevron-right
200

List of enabled versions of a package

application/json

List of enabled versions of a package

namestringRequired

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
is_pre_releasebooleanRequired

Is this a pre-release version of the package

Example: true
createdstring · date-timeRequired

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

enablerstringRequired
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
chevron-right
200

Validation result for package properties

application/json

Validation result for package properties

statusCodenumberRequiredExample: 200
errorstringOptional
messagestringRequiredExample: All provided properties are customizable for the package '@bluebricks/aws-vpc
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
chevron-right
200

Package version/s enabled

application/json

Package version/s enabled

enabledboolean · enumRequiredPossible values:
versionsstring[]Required

List of enabled package versions

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

Package version/s disabled

application/json

Package version/s disabled

enabledboolean · enumRequiredPossible values:
versionsstring[]Required

List of disabled package versions

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

Install package on remote cloud

🔒 Requires the create:environment 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
deployTypestring · enumOptional

The deployment type

Example: autoApprovePossible values:
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 environment

Default: false
envstringOptionalDeprecated

DEPRECATED: Use collection instead. Target environment for installation

collectionstringOptional

Target collection for installation

slugstringOptional

Provides a slug for a newly created environment. Cannot be specified together with environmentSlug or runId

deploymentstringOptionalDeprecated

DEPRECATED: Use environmentSlug or runId instead. Identify a previous environment using its ID or slug e.g. postgres-prod or 5ecbb18d-04c7-4298-b550-ab12bf661477

environmentSlugstringOptional

Identify a previous environment by its slug e.g. postgres-prod

runIdstring · uuidOptional

Identify a previous environment by its run ID (UUID) e.g. 5ecbb18d-04c7-4298-b550-ab12bf661477

Responses
chevron-right
200

Created task id for installation process or validate installation

application/json

Created task id for installation process or validate installation

or
post
/api/v1/package/install
post

Uninstall package from cloud

🔒 Requires the create:environment permission

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

Created task id for uninstall process

application/json

Created task id for uninstall process

deploymentstring · uuidRequired

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

taskstring · uuidRequired

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

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
chevron-right
200

Presigned URL for package download

application/json

Presigned URL for package download

urlstring · uriRequired

Presigned URL for package download

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
environmentSlugstringOptionalDeprecated

The environment slug e.g. production-europe

Example: production-europe
collectionSlugstringOptional

The collection slug e.g. production-europe

Example: production-europe
deploymentIdOrSlugstringOptional

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

Responses
chevron-right
200

Package properties with their metadata

application/json

Package properties with their metadata

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
chevron-right
200

List of organization packages

application/json

List of organization packages

totalnumberRequired
publishednumberRequired
draftsnumberRequired
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
chevron-right
200

Comparison result with changed and unchanged packages

application/json

Comparison result with changed and unchanged packages

totalnumberOptional
post
/api/v1/package-changes

Last updated

Was this helpful?