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
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/rossum/apis/rossum-api/docs/api/v1/email_templates/:emailTemplateID/render/post.tsA function with typed inputs. Its response is checked against the schema.
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 operation across all 14 revisions of this API.