Authentication
Every API request must include your API key. Here's how to authenticate.
API key
Create API keys in your dashboard. Keys start with ms_live_ for production and ms_test_ for sandbox.
Pass your key via the X-API-Key header (recommended) or as a Bearer token:
# Recommended
X-API-Key: ms_live_your_key_here
# Also works
Authorization: Bearer ms_live_your_key_here
Keep your key secret. Don't commit it to version control or expose it in client-side code. If a key is compromised, revoke it in the dashboard and create a new one.
Key management
The number of active API keys depends on your plan:
- Free: 1 key
- Starter: 3 keys
- Pro: 5 keys
- Business: 5 keys
- Enterprise: unlimited
You can create, view, and revoke keys from the API Keys tab in your dashboard. Once created, the full key is shown only once — copy it immediately.