Authentication
Learn how to securely authenticate API requests using API keys.
The Blazelock API uses API keys for authentication. Create a key in your API integration in the Blazelock Dashboard and send it as a bearer token with every request.
Bearer Authentication
Include your API key in the Authorization header of your API requests as follows:
Authorization: Bearer YOUR_API_KEYIf the header is missing or the key is invalid, the API returns 401 Unauthorized.
Security Best Practices
- Keep keys server-side: Never expose API keys in client-side code or commit them to public repositories. For frontend applications, send requests through your backend instead.
- Store keys securely: Store keys in environment variables or a secret manager, not in source code.
- Separate environments: Use separate keys for each environment or service so you can rotate or revoke them without affecting other systems.
- Copy once, store safely: Copy the key and store it securely when you create it. Blazelock only shows the plain-text value once.