Email Template
Render email template
The rendered email template can be requested via the render endpoint.
Inside the to, cc and bcc attributes template variables can be used instead of the email field of the email address object.
post/api/v1/email_templates/{emailTemplateID}/render
Path parameters
emailTemplateIDinteger required
A unique integer value identifying this email template.
Request body
Example request
{
"to": [
{
"email": "{{sender_email}}",
"name": "John Doe"
}
],
"cc": [],
"bcc": [],
"parent_email": "https://example.rossum.app/api/v1/emails/1234",
"document_list": [
"https://example.rossum.app/api/v1/documents/2314"
],
"annotation_list": [],
"template_values": {}
}Response
OK
Example response
{
"to": [
{
"email": "satisfied.customer@rossum.ai"
}
],
"cc": [],
"bcc": [],
"subject": "My Email Template Subject: Rendered Parent Email Subject",
"message": "<p>My Email Template Message from user@example.com</p>"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.