Getting an API key
- Visit meddra.co/login and sign in with your account.
- Navigate to Settings → API Access to create, rotate, or revoke keys.
- Each key is tied to your organisation and inherits your plan’s quota and feature entitlements.
- You can generate multiple keys—for example, one for production and one for staging.
.env, AWS Secrets Manager, or HashiCorp Vault. Never commit keys to source control or ship them in client-side code.
Sending authenticated requests
Include the key with theX-API-Key header on every request:
Node.js (fetch)
Python (requests)
Key rotation & revocation
- Rotate regularly: issue new keys on a schedule and deprecate old ones to reduce exposure.
- Revoke compromised keys immediately from the dashboard; revoked keys start returning
401 Unauthorized. - Audit usage: the dashboard shows per-key request volume to help identify unexpected traffic.
Error responses
| Status | Reason | Fix |
|---|---|---|
| 401 | Missing, malformed, or revoked API key. | Ensure the X-API-Key header is present and the key is still live. |
| 403 | Account disabled or feature not available. | Contact support to restore access or upgrade your plan. |
Security best practices
- Scope keys per environment and least-privileged service.
- Inject keys at deploy time (CI/CD or secrets manager) instead of embedding them in code.
- Avoid sharing the same key across contractors or temporary integrations—issue separate keys so you can revoke them individually.