We have make a library to use sendgrid emails with dynamic templates
git clone https://github.com/ambitus-it/sendgrid-connector
First: Copy your APIKEY to file configs.
Second: Change your Template Id and Dynamic Params
Third: Send a Post with Headers (Content-type application/json)
Four: Send a json with this format:
{
"to": "emailToSend",
"from": "emailFrom",
"subject": "Subject",
"text": "Text",
"html": "text/html",
"templateId": "TemplateID",
"params": "{
foo: bar
}"
}