API Keys
The demeterrr API uses API keys for authentication. API keys identify your organization and determine what resources you can access based on assigned scopes.Creating an API Key
- Log in to your demeterrr dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Assign a name and select scopes
- Copy the key immediately (it won’t be shown again)
API Key Format
All demeterrr API keys follow this format:dem_xK3p9vL2mN8qR4tY6wZ1aC5eF7gH9jK0lM2nO4pQ6rS8t
Making Authenticated Requests
Include your API key in theX-API-Key header:
Alternative: Bearer Token
You can also use theAuthorization header with a Bearer token:
Authentication Errors
Missing API Key
Status:401 Unauthorized
Invalid API Key Format
Status:401 Unauthorized
Invalid or Inactive Key
Status:401 Unauthorized
Expired API Key
Status:401 Unauthorized
Key Management Best Practices
Rotate keys regularly
Rotate keys regularly
Create new API keys periodically and delete old ones to minimize security risks.
Use environment variables
Use environment variables
Store API keys in environment variables, not in your source code.
Use minimal scopes
Use minimal scopes
Only grant the scopes (permissions) your integration actually needs. See Scopes for details.
Monitor usage
Monitor usage
Check your API key usage in the dashboard to detect unusual activity.
Revoke compromised keys immediately
Revoke compromised keys immediately
If you suspect a key has been exposed, delete it immediately from your dashboard.
Next Steps
Scopes
Learn about API key permissions
Quick Start
Make your first API call