Overview

Bluebricks API enables users to complete various actions, such as search, publish, and install.

Endpoints

Production Environment
https://api.bluebricks.co/api

The current API version is v1.

Authentication

All client APIs are using JWT to authenticate the calls. Currently, to generate a JWT, you should log in using bricks login (download the Bricks CLI if you don't have it) and execute the command below to fetch the JWT from the runtime configuration:

cat ~/.bricks/environment.yaml | grep token | sed -n 's/^token: Bearer //p'

Example API Usage

In the below snippet, we'll list the available environments using Environments API:

curl -X 'GET' \
  'https://api.bricks-dev.com/api/v1/environments' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {{JWT-TOKEN}}'

Replace {{JWT-TOKEN}} with your JWT

Last updated

Was this helpful?