Authentication
Learn how to obtain, use, and securely manage your Flora API key
Authentication Guide
To use the Flora API, you’ll need to authenticate your requests using an API key. This guide will walk you through obtaining your API key, using it in your requests, and best practices for keeping it secure.
Obtaining Your API Key
- Sign in to your Flora dashboard.
- Navigate to the “API Keys” section.
- Click on “New API Key”.
- Copy the generated key and store it securely. Note that you won’t be able to view this key again.
Using Your API Key
Include your API key in the Authorization
header of your HTTP requests:
Replace YOUR_FLORA_API_KEY
with your actual API key.
Security Recommendations
To keep your API key safe:
-
Never share your API key: Keep it confidential and don’t include it in public repositories or client-side code.
-
Use environment variables: Store your API key as an environment variable rather than hardcoding it in your application.
-
Rotate keys regularly: Generate new API keys periodically and update your applications accordingly.
-
Implement access controls: Limit access to your API key to only those who absolutely need it.
-
Monitor usage: Regularly review your API usage logs to detect any unauthorized access.
By following these practices, you’ll help ensure the security of your Flora API integration and protect your data.