Authentication
Learn how to securely authenticate with the Mixedbread API. This guide covers creating and using API keys, implementing authentication in API requests and SDKs, and best practices for API key management to ensure the security of your integration.
Creating an API Key
- Go to the Mixedbread dashboard
- Create a new API key
- Keep your key secret!
Using Your API Key
Include your API key in the Authorization
header of your requests:
SDK Authentication
If you're using our SDKs, simply pass your API key to the constructor:
Best Practices
- Never expose your API key in client-side code or public repositories
- Use environment variables to store your API key
- Rotate your API key regularly
- If you suspect your key is compromised, reset it immediately in the dashboard
Happy Baking! 🍞