Skip to content

Preview an inline template

POST
/v1/templates/preview
curl --request POST \
--url https://shareout.site/v1/templates/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "subject": "example", "html": "example", "text_body": "example", "data": {} }'

Render an unsaved template with sample data.

Media type application/json
object
subject
required
string
html
required
string
text_body
string
data
object
Example generated
{
"subject": "example",
"html": "example",
"text_body": "example",
"data": {}
}

Rendered preview

Media type application/json
object
subject
string
html
string
text
string
Example generated
{
"subject": "example",
"html": "example",
"text": "example"
}