Dynamic Template Send
A 3-step recipe with SendGrid. We can help you get access.
Recipe · 3 steps
Dynamic Template Send
with SendGrid
Create a dynamic template and version, then send mail using it.
- Create a new dynamic transactional template.
- Add an active version to the template carrying the subject and HTML content that will be rendered when the template is sent.
- Send a message that renders the new template, passing per-recipient dynamic_template_data. A successful send is accepted with a 202 status.
What you'll need to have ready
- apiKey: SendGrid API key sent as a bearer token.
- templateName: The name for the new dynamic template.
- versionName: The name for the template version.
- subject: The subject line for the template version.
- htmlContent: The Handlebars HTML content for the template version.
- fromEmail: The verified sender email address messages are sent from.
- toEmail: The recipient email address.
- dynamicTemplateData: Key/value data substituted into the dynamic template.
For your developer
Arazzo workflow sendgrid:dynamic-template-send, 3 operations: CreateTemplate → CreateTemplateVersion → SendMail. Specs on APIs.io.