1
votes

I'm using Sendgrid API to get the list of all dynamic templates. I was a bit surprised when I saw that the API response doesn't contain any info about the dynamic template data.

Is there a way to get the dynamic template data from sendgrid API ?

example: my dynamic template contains this dynamic data:

  • {{ firstName }}
  • {{ lastName }}
  • {{ link }}

And I want to get this data back when querying sendgrid API:

[GET] https://api.sendgrid.com/v3/templates/{{templateID}}

Thanks for your time !

1
Did you ever figure this out? I would also like to know if this is possible. - daybreaker
Hii.. did u find it out? i also need this solution - Madhu

1 Answers

0
votes

The solution is to use the URL provided in the Sendgrid Docs but with a special query parameter ?generations=dynamic

Thus the final URL would look like this:

https://api.sendgrid.com/v3/templates?generations=dynamic

Very happy to find this, since I was also looking for it a long time.