Grant-level templates
Render a template
Renders the specified template with the provided variables. Nylas looks for a grant-level template with this ID first. If the grant doesn't have one, it renders the application-level template with the same ID.
post/v3/grants/{grant_id}/templates/{template_id}/render
Request
- Base URLhttps://api.us.nylas.com
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"strict": true,
"variables": {
"user": {
"name": "Leyah",
"surname": "Miller"
}
}
}Response
Success. Returns rendered template.
Example response
{
"request_id": "3822450015-47d9207c-4d06-4e15-b3e7-752c5dd5585d",
"data": {
"body": "<p>Hello Leyah, your booking has been confirmed.</p>",
"subject": "Leyah, your booking is confirmed!"
}
}Changes
No recorded changes to this operation across all 16 revisions of this API.