email-templates

Render Email

Resolve the brand override (else tenant default) and render it with the event variables merged over the brand's values — the 'what would we send' preview.

post/v1/email-templates/render

Request

  • Base URL: https://api.elaan.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.elaan.io/v1/email-templates/render
  • Auth: none declared

Headers

authorizationstring nullable

Request body

notification_type_keystring required
branding_keystring required
variablesobject

Values for the template's {{ slot }} markers — the same shape POST /v1/notifications takes, so a preview can be built from the payload you would really send. Any JSON: strings, numbers, nested objects, and lists a template repeats over with {% for %}.

languagestring nullable

Example request

{
  "notification_type_key": "order_shipped",
  "branding_key": "acme",
  "variables": {
    "lines": [
      {
        "amount": "$40.00",
        "description": "Widget"
      }
    ],
    "order_id": "1234"
  },
  "language": "es"
}

Response

Successful Response

template_idstring required
branding_keystring nullable required
languagestring nullable required
subjectstring required
bodystring required

Changes

No recorded changes to this operation across all 1 revision of this API.