API Overview
Base URL:https://api.mailofly.com (paths are /v1/..., e.g. https://api.mailofly.com/v1/emails)
Legacy:
https://www.mailofly.com/api/v1/... on the web app remains available during migration; new integrations should use api.mailofly.com/v1/....Quick start
Authentication
Missing or invalid keys return 401:
Response format
Success
List endpoints wrap results:{ "data": … }.
Errors
Resources
Pagination
List endpoints accept:Send email (transactional)
UseGET /v1/emails to list sent transactional emails (Resend cursor: limit, after, before) or GET /v1/emails/:id to retrieve one (includes html). Send with POST /v1/emails or batch with POST /v1/emails/batch. All match Resend’s email APIs, plus optional account_key (acc_…):
cc, bcc, reply_to, headers, tags, attachments, template ({ id, variables }). Returns { "id": "mail-log-uuid" }.
See Emails API. The legacy /v1/compose endpoint has been removed.
Rate limits
Each authenticated request is logged. Monitor at API usage.
Plan enforcement
API operations respect organization plan limits. Exceeding a limit returns 403 with a descriptive message:max_accounts,max_contacts,max_templatesmax_campaigns_per_month,monthly_email_quotaallow_automation,allow_google_sheet_sync