Create API Keys
Prerequisites
Creating API Keys
Method 1: Using cURL with JWT Token
# Get your JWT token
cat ~/.bricks/environment.yaml | grep token | sed -n 's/^token: Bearer //p'
# Create a new API key
curl https://api.bluebricks.co/api/v1/auth/key \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--data '{"name": "my-automation-key"}'Method 2: Using Web Interface
Using API Keys
Environment Variable
Command Line Flag
Configuration File
API Key Management
List API Keys
Activate/Deactivate Keys
Automation Use Cases
CI/CD Pipelines
Server Scripts
Security Best Practices
See also
Last updated
Was this helpful?

