curl --request POST \
--url "https://api.us.nylas.com/v3/templates" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <NYLAS_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"body": "<p>Hello from {{user}}</p>",
"name": "Nylas Alias",
"subject": "New notification for {{user}}",
"engine": "mustache"
}'
Sign in and select an app and grant, then add any required auth token, to auto-fill these placeholders with your real values.