Templates
Create a template
Create a template as a draft. Publish it with POST /v1/templates/{id}/publish before sending with it. Same body as Resend's create template; markdown, preview_text and category are SMTPfast additions. Requires the email:send scope.
post/v1/templates
Request
- Base URL: https://smtpfa.st/api
- URL: https://smtpfa.st/api/v1/templates
- Auth: HTTP bearer
Request body
Example request
{
"name": "order-confirmation",
"alias": "order-confirmation",
"from": "Acme <orders@acme.com>",
"subject": "Your order {{{ORDER_ID}}}",
"variables": [
{
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"key": "PRODUCT"
}
]
}Response
Template created as a draft
Example response
{
"id": "clx_tpl123",
"object": "template"
}Changes
No recorded changes to this operation across all 1 revision of this API.