API Authentication
API & Developer# API Authentication
The EaseBG API uses Bearer token authentication with API keys.
## Generating an API Key
1. Go to Settings > API Keys
2. Click Create New Key
3. Give it a name (e.g., "Production", "Testing")
4. Copy the key immediately — it won''t be shown again
## Using Your API Key
Include the key in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
https://api.easebg.com/v1/tasks
## Security Best Practices
- Never expose your API key in client-side code
- Use environment variables to store keys
- Rotate keys periodically
- Use different keys for different environments
## Rate Limits
Each plan has different rate limits. Check the API documentation for details.