Skip to main content

Authentication

The Monk API uses API keys to authenticate requests. You can create and manage API keys from your Settings page.

Environments

Monk runs production and sandbox as separate instances with separate accounts and API keys.
A sandbox API key does not work against production endpoints, and a production API key does not work against sandbox endpoints.

API Key Format

API keys follow this format:
Your API key grants access to your organization’s data. Keep it in a secrets manager or environment variable, and never expose it in client-side code or a public repository.

Making Authenticated Requests

Include your API key in the Authorization header as a Bearer token:

Scopes

API keys can be limited to the operations an integration needs:

Error Responses

Missing or Invalid Authorization

Invalid, Revoked, or Expired API Key

Insufficient Permissions

Rate Limiting

The Monk API applies rate limits per IP address. When a client exceeds a limit, the API returns 429 Too Many Requests:
Use exponential backoff for retries and cache read responses when appropriate.

Best Practices

Use environment variables or a secrets manager. Never commit API keys to version control.
Grant only the scopes required for an integration’s work.
Revoke old keys and create replacements, especially if you suspect a key may have been compromised.
Check the Last Used timestamp in Settings to identify unused or suspicious keys.