SendGrid API

So, I’m trying to code a POST action to the SendGrid platform.

The main problem I’m having is that the API have arrays inside it’s data input. So, how do I create arrays for the variables each array have? I can’t find a way for it. I tried using the API form or using the Server Connect method (basically the same), but I can’t find a way to create those arrays.

The request body is:

(https://sendgrid.com/docs/API_Reference/api_v3.html)

The first example in that doc is the “personalization” array which includes the “to” and “dynamic_template_data” arrays.

Community Page
Last updated: