API Reference
REST API Reference
Base URL: https://api.mailsflux.net · All requests require an Authorization: Bearer mf_live_sk_… header.
🔑
Authentication
All API requests must include your secret key in the Authorization header. Find your API key in your dashboard under Settings → API Keys. Never expose your secret key in client-side code.
Emails
POST
/v1/emails/sendSend a transactional or marketing emailGET
/v1/emails/:idRetrieve email status and delivery eventsGET
/v1/emailsList sent emails with filters and paginationPOST
/v1/emails/batchSend up to 1,000 emails in a single requestPhysical Mail
POST
/v1/mail/sendSend an envelope, postcard, or parcelGET
/v1/mail/:idGet shipment status and tracking nodesGET
/v1/mailList physical mail sendsPOST
/v1/mail/validate-addressValidate and normalize a postal addressTemplates
GET
/v1/templatesList all email templatesPOST
/v1/templatesCreate a new email templatePUT
/v1/templates/:idUpdate an existing templateDELETE
/v1/templates/:idDelete a templateAudiences
GET
/v1/audiencesList all audience segmentsPOST
/v1/audiencesCreate a new audience segmentPOST
/v1/audiences/:id/contactsAdd contacts to an audienceDELETE
/v1/audiences/:id/contacts/:emailRemove a contact from an audienceSuppressions
GET
/v1/suppressionsList suppressed addresses (bounces, complaints, unsubscribes)POST
/v1/suppressionsManually add an address to the suppression listDELETE
/v1/suppressions/:emailRemove an address from the suppression listWebhooks
GET
/v1/webhooksList configured webhook endpointsPOST
/v1/webhooksRegister a new webhook endpointDELETE
/v1/webhooks/:idDelete a webhook endpointDomains
GET
/v1/domainsList verified sending domainsPOST
/v1/domainsAdd a new sending domainGET
/v1/domains/:id/verifyTrigger DNS verification for a domainGET
/v1/domains/:id/reputationGet reputation score and metrics for a domainStandard Response Format
// Success
{
"id": "msg_01JNPXR4KQ...",
"status": "queued",
"queued_at": "2026-04-11T09:32:17Z"
}
// Error
{
"error": {
"code": "invalid_recipient",
"message": "The 'to' field must be a valid email address.",
"status": 422
}
}