API Keys
All Mavera API requests require authentication using an API key. API keys are passed via theAuthorization header as a Bearer token.
Creating an API Key
Navigate to Developer Settings
Key Format
Mavera API keys follow this format:- Prefix:
mvra_live_indicates a live production key - Length: 32+ characters total
Using Your Key
Security Best Practices
Do’s
Store keys in environment variables
Use secrets management (AWS Secrets Manager, HashiCorp Vault, etc.)
Rotate keys periodically
Use different keys for development and production
Revoke compromised keys immediately
Don’ts
Environment Variables
Store your API key in an environment variable:.env
Key Management
Viewing Keys
View all your API keys at Settings > Developer. You’ll see:- Key name
- Creation date
- Last used date
- Partial key preview (last 4 characters)
Revoking Keys
To revoke a key:- Go to Settings > Developer
- Find the key you want to revoke
- Click the delete/revoke button
- Confirm the action
Authentication Errors
| Status | Code | Description |
|---|---|---|
| 401 | missing_api_key | No Authorization header provided |
| 401 | invalid_api_key | Key format is invalid or key doesn’t exist |
| 401 | revoked_api_key | Key has been revoked |
| 401 | expired_api_key | Key has expired (if expiration was set) |
Subscription Requirement
API keys are tied to your subscription. You must have an active subscription to use the API. If your subscription expires:- Existing keys remain valid but will return 402 errors
- You cannot create new keys
- Renewing your subscription restores API access