[In beta] Email Templates

Create new email template

POST https://api.smtpd.dev/api/v1/email/template

This endpoint creates a new email template, each template as an associated revision. When you send an email using a template you can default to latest OR a specific revisions, which enables testing for new revisions.

Headers

Request Body

{
    "template_id": "b9106530-aa81-4776-bf65-ac7d226ae528",
    "revision": 1
}

Create new email template revision

POST https://api.smtpd.dev/api/v1/email/template/:id

This endpoint creates a new email template

Headers

Request Body

{
    "template_id": "b9106530-aa81-4776-bf65-ac7d226ae528",
    "revision": 2
}

Set revision to $latest

POST https://api.smtpd.dev/api/v1/email/template/:id/latest

This endpoint creates a new email template

Headers

Request Body

null

Last updated