Objects and Arrays with Sendgrid

Hi all,

I'm trying to implement the Sendgrid API, but am currently stuck with some customisations.
[image.png]In Xano, I have 'personalizations' for my Sendgrid function set to intake the following data:

'personalizations': [
{
'to': Array of objects with  'name' and 'email',
dynamic_template_data': Object of key/value pairs
]

However, when I try to pass data to this function stack, I can't seem to get the data types formatted correctly. The following data is being passed instead:
'personalizations': [
{
'to': [[]],
'dynamic_template_data': []
}
]

I have my API call configured as such:
'to':[image.png]'dynamic_template_data': [image.png]Could someone point out what I'm doing wrong here?

The portion of Sendgrid's documentation which I'm referring to can be found here: [image.png]
Other
1 reply