2

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 Answers1

0

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.

Deni Begaj
  • 11
  • 2