API
Connect your own apps
Create an API key for a brand in its settings, then call Mailfect from your website or backend.
Track an event
Adds or updates the contact and runs any automation for that event, such as a welcome email. Reuse the same event_id on retries and nobody is emailed twice.
POST /api/v1/events
Authorization: Bearer mfk_...
{
"event": "user.signed_up",
"email": "ada@example.com",
"first_name": "Ada",
"event_id": "user_123"
}Send a transactional email
Sends one of your transactional templates by name.
POST /api/v1/send
Authorization: Bearer mfk_...
{
"template": "Order confirmation",
"to": "ada@example.com",
"data": { "order": "1042" },
"idempotency_key": "order-1042"
}