# Grant-level templates

Source: https://developer.nylas.com/docs/reference/api/grant-level-templates/

Grant-level templates let you create reusable messages with dynamic content. Each template is linked to the grant specified in a [Create Template request](/docs/reference/api/grant-level-templates/create-grant-level-template/).

<div id="admonition-info">💡 <b>If you want to create templates for a Nylas application, use the <a href="/docs/reference/api/application-level-templates/">application-level templates endpoints</a></b>.</div>

Nylas supports the following templating engines:

- [Handlebars](https://handlebarsjs.com/)
- [mustache }}](https://mustache.github.io/)
- [Nunjucks](https://mozilla.github.io/nunjucks/)
- [Twig](https://twig.symfony.com/)

We recommend you use [mustache }}](https://mustache.github.io/) or [Handlebars](https://handlebarsjs.com/) if you need a simple implementation. If you need more advanced formatting, conditions, or layouts, we recommend [Nunjucks](https://mozilla.github.io/nunjucks/) or [Twig](https://twig.symfony.com/).


## Endpoints

- **GET** `/v3/grants/{grant_id}/templates` - [Return all templates](https://developer.nylas.com/docs/reference/api/grant-level-templates/get-grant-level-templates/)
- **POST** `/v3/grants/{grant_id}/templates` - [Create a template](https://developer.nylas.com/docs/reference/api/grant-level-templates/create-grant-level-template/)
- **GET** `/v3/grants/{grant_id}/templates/{template_id}` - [Return a template](https://developer.nylas.com/docs/reference/api/grant-level-templates/get-grant-level-template/)
- **PUT** `/v3/grants/{grant_id}/templates/{template_id}` - [Update a template](https://developer.nylas.com/docs/reference/api/grant-level-templates/update-grant-level-template/)
- **DELETE** `/v3/grants/{grant_id}/templates/{template_id}` - [Delete a template](https://developer.nylas.com/docs/reference/api/grant-level-templates/delete-grant-level-template/)
- **POST** `/v3/grants/{grant_id}/templates/{template_id}/render` - [Render a template](https://developer.nylas.com/docs/reference/api/grant-level-templates/render-grant-level-template/)
- **POST** `/v3/grants/{grant_id}/templates/render` - [Render template as HTML](https://developer.nylas.com/docs/reference/api/grant-level-templates/render-grant-level-template-html/)
