Authentication
Set up your API key and authenticate requests to molroo-api.
Authentication
All molroo API endpoints (except /v1/health) require authentication via a Bearer token in the Authorization header.
Getting Your API Key
- Sign up at molroo.io
- Navigate to the Dashboard and go to API Keys
- Click Create New Key
- Copy and store your key securely — it will only be shown once
Using Your API Key
Include the key in every request as a Bearer token:
curl
JavaScript
Python
Key Prefixes
| Prefix | Environment | Usage |
|---|---|---|
mk_live_ | Production | Live API calls |
mk_test_ | Sandbox | Development and testing |
Security Best Practices
- Never expose keys in client-side code. Always call molroo-api from your backend.
- Use environment variables to store keys — do not hardcode them.
- Rotate keys periodically from the Dashboard.
- Use test keys (
mk_test_) during development.
Error Responses
If authentication fails, you will receive:
Rate Limits
Rate limits are applied per API key. See the pricing page for details on limits per plan.
| Plan | Requests/min | Sessions |
|---|---|---|
| Free | 60 | 10 |
| Pro | 600 | 1,000 |
| Enterprise | Custom | Unlimited |