Authentication
JWT Tokens
Extract JWT from CLI
token=$(awk '/^token:/ {sub(/token:[[:space:]]*/, ""); print; exit}' ~/.bricks/credentials.yaml)
curl -H "Authorization: ${token}" https://api.bluebricks.co/api/v1/environments$token = (Get-Content "$HOME\.bricks\credentials.yaml" | Select-String -Pattern '^token:' | ForEach-Object { $_ -replace '^token:\s*', '' })
curl -H "Authorization: $token" https://api.bluebricks.co/api/v1/environmentsLong-lived API Tokens
Prerequisites
Create via UI

Create via API
List via API
Deactivate via API
Activate via API
Last updated
Was this helpful?

