SMTPD
  • Introduction
    • What is transactional email?
    • Getting Started
    • FAQ
      • Email Deliverability
        • Sending Reputation
        • Spam Filters
        • Blocklist
        • Bounce Rates
        • Spam Complaints
      • Email Tracking
        • Open Tracking
        • Click Tracking
  • User Guide
    • Click Tracking
  • API
    • Create Account
    • Authentication
    • Sending Profile
    • [In beta] Email Templates
    • Forms
    • Send
    • Analysis
      • Engagement
      • Delivery
    • Account & Billing
      • Users
      • API Keys
      • Roles & Permissions
      • Billing & Usage
Powered by GitBook
On this page
  • Create new email template
  • Create new email template revision
  • Set revision to $latest

Was this helpful?

  1. API

[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

Name
Type
Description

Authentication

string

Bearer {access_token}

Request Body

Name
Type
Description

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

Name
Type
Description

Authentication

string

Bearer {access_token}

Request Body

Name
Type
Description

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
}
{
  "code": 40401,
  "message": "Resource ID provided is invalid"
}

Set revision to $latest

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

This endpoint creates a new email template

Headers

Name
Type
Description

Authentication

string

Bearer {access_token}

Request Body

Name
Type
Description

revision

number

The revsion that will be latest

null
{
  "code": 40401,
  "message": "Resource ID provided is invalid"
}
PreviousSending ProfileNextForms

Last updated 2 years ago

Was this helpful?