Skip to main content
API keys authenticate requests made from your applications and SDKs to Mailofly.

Creating an API Key

  1. Navigate to SettingsAPI Keys in the dashboard.
  2. Click Create API Key.
  3. Choose a permission scope:
    • Full Access: Can send emails, manage domains, webhooks, and contacts.
    • Sending Only: Can only send transactional and campaign emails (recommended for worker servers).
  4. Save your secret key immediately. For security reasons, secret keys cannot be displayed again after creation.

Revoking an API Key

If an API key is no longer needed:
  1. Open the API Keys table.
  2. Click the three-dot menu ... next to the key.
  3. Click Revoke. All subsequent requests using this key will immediately return an HTTP 401 Unauthorized.