Authentication

All requests to the Monirates REST API must be authenticated using your API key. You can generate and manage your API key from the Monirates business portal.

How It Works

Pass your API key in the request headers using the x-api-key key:
x-api-key: YOUR_API_KEY
This applies to both sandbox and production environments. The only difference between environments is which API key you use and which base URL you target.

Example Request

curl https://interface.monirates.com/your-endpoint \
  -H "x-api-key: MR_v1_xxx" \
  -H "Accept: application/json"

Getting Your API Key

  1. Log in to your Monirates business portal:
  2. Go to the Developer section.
  3. Create or copy your API key.

Sandbox vs. Production Keys

EnvironmentBase URLPortal
Sandboxhttps://dev.interface.monirates.comdev.business.monirates.com
Productionhttps://interface.monirates.combusiness.monirates.com
Your sandbox and production API keys are separate and not interchangeable. Always use the correct key for each environment. Never hardcode your API key in source code — use environment variables instead.

Security Best Practices

  • Store your API key in environment variables (e.g., MONIRATES_API_KEY).
  • Never commit your API key to version control.
  • Rotate your key immediately if it is ever exposed.
  • Use your sandbox key for development and testing, and your production key only for live traffic.