When to use transactional send
- You need to send immediately after an application event.
- The message is specific to one contact and one moment.
- The content depends on data that is only available at send time (order ID, token, amount, etc.).
Request structure
CallPOST /client/send with your API key and the following fields:
template_name instead of template_id if you prefer to reference templates by name.
Variable resolution
When MailerPath processes the send request, it builds the variable set in this order:- Contact fields from the matched contact record.
- Client settings (brand, sender, timezone, etc.).
- System-generated values (unsubscribe link, view in browser URL).
- Your custom
vars— these override any of the above if keys collide.
Subscription check
MailerPath checks the recipient’s subscription state before sending.- Unsubscribed contacts are skipped by default.
- The sent email record reflects the skip reason when applicable.
Idempotency
Use unique values foridempotency_key when your application may retry the same request:
Authentication
All transactional send requests require an enabled API key in theAuthorization header:
What happens after the request
- MailerPath creates a sent email record with status
queued. - The email is dispatched to the email provider.
- Status updates to
sent, and thendelivered,opened, orbouncedas webhook events arrive.
Common issues
422— missing required fields, invalid template ID, or unsubscribed contact.401— missing or disabled API key.409— duplicate idempotency key for an already-sent message.

