Skip to Content
MailroomMailroom home
API referenceTemplates

Preview a template with variables

POST
/templates/{id}/render

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Request Body

application/json
  1. body
variables?

Response Body

Rendered

application/json
  1. response
html?string
text?string
subject?string
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/templates/string/render' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "html": "string",  "text": "string",  "subject": "string"}