Grant-level templates
Create a template
Changed onCreates a grant-level template.
post/v3/grants/{grant_id}/templates
Request
- Base URLhttps://api.us.nylas.com
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"body": "<p>Hello {{user.name}}, your booking has been confirmed.</p>",
"engine": "mustache",
"name": "Booking confirmed message",
"subject": "{{user.name}}, your booking is confirmed!"
}Response
Success. Returns template.
Example response
{
"data": {
"app_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"body": "<p>Hello {{user.name}}, your booking has been confirmed.</p>",
"created_at": 1640995200,
"engine": "mustache",
"grant_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"id": "b79c82b2-a51b-4c54-8469-28006a43551a",
"name": "Booking confirmed message",
"object": "template",
"subject": "{{user.name}}, your booking is confirmed!",
"updated_at": 1640995200
}
}Changes
- breaking
removed the enum value
nunjucksof the request property - breaking
removed the enum value
twigof the request property - info
removed the
nunjucksenum value from the/response property for the response status - info
removed the
twigenum value from the/response property for the response status
- breaking