Authentication
Learn how to authenticate your requests to the emma API.API Keys
All API requests must include an API key in the Authorization header.Getting Your API Key
Sign in to emma
Go to app.emma.ai and sign in to your account.
Example Request
- cURL
- Python
- JavaScript
Key Management
Rotating Keys
For security, we recommend rotating your API keys periodically:- Create a new API key
- Update your applications to use the new key
- Revoke the old key
Revoking Keys
To revoke an API key:- Go to Settings > API
- Find the key you want to revoke
- Click Revoke
Revoking a key is immediate and cannot be undone. Make sure you’ve updated all applications using that key before revoking.
Security Best Practices
Use Environment Variables
Store API keys in environment variables, not in code.
Limit Permissions
Create keys with only the permissions you need.
Rotate Regularly
Rotate keys periodically and after any potential exposure.
Monitor Usage
Review API usage logs for unusual activity.