Render email template

Renders a template with variables, exactly as it would be sent, without sending anything. For tests and previews.

POST
/email/templates/{template}/render

Renders a template with variables, exactly as it would be sent, without sending anything. For tests and previews.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Path Parameters

template*string

Alias or id

Request Body

application/json
  1. body
contact?null|
variables?|null
version?|

A published version number; the current one when left out.

Formatint32

Response Body

The finished subject, HTML and text.

Example Request
curl -X POST 'https://api.relevate.app/email/templates/string/render' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
Empty