Overview
The Minimo API uses API keys for authentication. All API requests must include a valid API key in theAuthorization header using the Bearer token scheme.
Creating an API Key
Creating an API Key
1
Navigate to API Key Section
Go to your Minimo Account Settings and select the API Key tab.
2
Create New API Key
Click the ”+ Create new API key” button.
3
Configure Your Key
Provide the following information:
- Name: A descriptive name to identify this key (e.g., “Production App”, “Staging Environment”)
- Permissions: Select which API resources this key can access
- Expiration: Set an expiration date (recommended: 1 year maximum)
4
Save and Copy
After creating the key, copy it immediately and store it securely. For security reasons, you won’t be able to see the full key again.
Using Your API Key
Include your API key in theAuthorization header of every request:
Example Request (cURL)
Example Request (JavaScript)
Example Request (Python)
API Key Format
Minimo API keys follow this format:mn-abc123-xyz789def456ghi789
mn-prefix identifies it as a Minimo keyCLIENT_IDidentifies your Minimo accountSECRET_KEYis the secure token
Security Best Practices
Use Separate Keys for Different Environments
Use Separate Keys for Different Environments
Create different API keys for development, staging, and production. This allows you to:
- Rotate keys without affecting all environments
- Track usage per environment
- Revoke compromised keys without downtime
Set Appropriate Permissions
Set Appropriate Permissions
Grant each API key only the permissions it needs:
- Read-only keys for analytics dashboards
- Write-only keys for contact imports
- Full access only when necessary
Rotate Keys Regularly
Rotate Keys Regularly
Set expiration dates and rotate your API keys at least annually. This limits the impact of leaked credentials.
Store Keys Securely
Store Keys Securely
- Use environment variables in your application
- Store in secure vaults (AWS Secrets Manager, HashiCorp Vault, etc.)
- Never hardcode keys in your source code
- Never commit keys to version control
Monitor Usage
Monitor Usage
Regularly review API key usage in your Minimo dashboard to detect:
- Unusual request patterns
- Unauthorized access attempts
- Performance issues
Authentication Errors
401 Unauthorized
Cause: Missing or invalid API key Response Example:Authorization header.
403 Forbidden
Cause: API key lacks required permissions Response Example:429 Too Many Requests
Cause: Rate limit exceeded Response Example:X-RateLimit-* headers in responses.
Client-Side vs. Server-Side Usage
Server-Side (Recommended) ✅
API keys should primarily be used in server-side applications where they can be kept secure:- Backend APIs
- Server-side scripts
- Scheduled jobs/cron tasks
- Server-to-server integrations
Client-Side (Use with Caution) ⚠️
While technically possible, using API keys client-side (browser, mobile apps) exposes them to users. If you must use keys client-side:- Create a separate API key with read-only permissions
- Limit permissions to only what’s needed (e.g., “Create Contact” only)
- Set short expiration periods
- Monitor usage closely
Revoking an API Key
If a key is compromised or no longer needed:- Go to Account Settings → API Keys
- Find the key in the list
- Click Revoke or Delete
- Confirm the action
Revoked keys stop working immediately. Update your applications before revoking keys used in production.
Need Help?
If you have questions about authentication or API key management:- Email: [email protected]
- Dashboard: app.minimo.it/account