API
Send sign-up and password-reset emails from your app
Use this for mail a person asked for, such as a code or a password reset. Do not use it for cold outreach.
Safety rules
- The key needs the permission send.transactional.
- The mailbox must be marked purpose transactional. A cold mailbox is rejected.
- Links are not rewritten. There is no open pixel and no unsubscribe footer.
- A hard bounce or a spam complaint still blocks that address. Unsubscribing from marketing does not.
- One address can receive at most 5 of these emails an hour.
- A paused cold campaign does not stop these emails.
Example
curl -X POST https://mailwright.tech/backend/v1/emails \
-H "Authorization: Bearer mw_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reset-123" \
-d '{
"to": "person@example.com",
"subject": "Reset your password",
"kind": "transactional",
"text": "Use this link to reset your password.",
"html": "<p>Use this link to reset your password.</p>",
"from_name": "Creator Ticker",
"reply_to": "support@example.com",
"tracking": {"opens": false, "clicks": false}
}'Fields
- to, subject, and body or text or html.
- kind: transactional, notification, or marketing. Omit kind to keep the old send.
- from_name, reply_to.
- headers: only X-Entity-Ref-ID, List-Unsubscribe, List-Unsubscribe-Post, and Auto-Submitted auto-generated.
- tracking.opens and tracking.clicks. Both are forced off for transactional.
Read status at GET /v1/emails/ID. Delivery, bounce, and complaint events use the signed webhook. GET /v1/me includes transactional true when the key has the permission.