[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

NameTypeDescription

Authentication

string

Bearer {access_token}

Request Body

NameTypeDescription

tags

object

link_tracking

boolean

open_tracking

boolean

reply_to

string

from_name

string

from_email_address

string

content_text

string

The Text email content

content_html

string

The HTML email content

template_name

string

Template name, this will be automatically added as a tag when sending.

{
    "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

NameTypeDescription

Authentication

string

Bearer {access_token}

Request Body

NameTypeDescription

tags

object

link_tracking

boolean

open_tracking

boolean

reply_to

string

from_name

string

from_email_address

string

content_text

string

The Text email content

content_html

string

The HTML email content

template_name

string

Template name, this will be automatically added as a tag when sending.

{
    "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

NameTypeDescription

Authentication

string

Bearer {access_token}

Request Body

NameTypeDescription

revision

number

The revsion that will be latest

null

Last updated