Skip to main content
POST
/
email-templates
/
{id}
/
render
Render an email template
curl --request POST \
  --url https://api.reply.io/v3/email-templates/{id}/render \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "contactId": 500,
  "sequenceId": 12,
  "emailAccountId": 100
}
'
{
  "subject": "Hi John, quick follow-up",
  "body": "<p>Hi John,</p><p>Following up on our conversation.</p>",
  "isSuccess": true,
  "errors": []
}

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header

Path Parameters

id
integer
required

Email template ID to render

Body

application/json

Request body for rendering an email template with variable substitution.

contactId
integer
required

ID of the contact whose data is used for variable substitution

sequenceId
integer | null

Optional sequence ID for sequence-specific variables

emailAccountId
integer<int64> | null

Optional email account ID for sender-specific variables

Response

Rendered template result

Result of rendering an email template with variable substitution.

isSuccess
boolean
required

Whether the rendering completed successfully

subject
string | null

Rendered email subject with variables replaced

body
string | null

Rendered email body with variables replaced

errors
RenderError · object[]

List of rendering errors (e.g., unresolved variables)