Overview
Every API request must include a Bearer token in theAuthorization header. Your token is an API key created in your Alfred Black dashboard.
Getting your API key
- Go to your Alfred Black dashboard
- Navigate to Settings > API Keys
- Click Create and give it a descriptive name
- Copy the key immediately — it’s shown only once
alf_ followed by 32 hex characters:
Making authenticated requests
Include the API key as a Bearer token in every request:Best practices
- Store keys in environment variables — never hardcode them in source code
- Rotate periodically — create a new key and revoke the old one every few months
- Use descriptive names — name keys after their purpose so you know which to revoke
- Revoke unused keys — clean up keys for integrations you no longer use
Error responses
Missing or invalid authentication returns a 401 status:Testing authentication
Use the health endpoint to verify your credentials:Next steps
Vault endpoints
Start with vault operations
Workers endpoints
Direct your specialists
