3

i'm trying to use the Email verify service via send grid and after i'm write all the placeholders i'm getting this error: "SendGrid Template does not contain required placeholders", and I can't find any solution.

Can someone guide me with this? Thank you!

Omer Ohana
  • 31
  • 4

3 Answers3

6

You need to enable the "Template Engine" read access for your API key. You can do so here: https://app.sendgrid.com/settings/api_keys. Make sure it is read access only (i.e. the slider is in the middle).

2

I had the same problem. I used {{{ code }}} to load the dynamic data. In my case, its OTP. So I replaced {{{ code }}} with {{{twilio_code}}} and the problem was resolved.

ouflak
  • 2,458
  • 10
  • 44
  • 49
Mahesh
  • 21
  • 1
0

As of today, the following applies : https://support.twilio.com/hc/en-us/articles/6554095919003-Error-SendGrid-Template-does-not-contain-required-placeholders-

Cause

This error message usually due to the SendGrid Dynamic template missing
at least one of the following placeholders:

- {{twilio_code}}
- {{twilio_message}}
- {{twilio_message_without_code}}
Ben
  • 5,030
  • 6
  • 53
  • 94