send email via sendgrid with attachment

I can send an email with sendgrid through xano with api, but i struggle with attachments in the email.

when a webhook is received from xano, i will received 2 piece of information, and ID1 and ID2.

with ID1 and ID2 i will be able to generate a link as www.example.com/ID1/ID2/key to download a pdf.

the issue i have is that i struggle to find a way to send sendgrid a API call to ask sendgrid to download the pdf file from http://www.example.com/ID1/ID2/key and send it as an attachment in an email.

Can someone please help me if this is possible, and if so, how should i start. I am sorry that i cannot post an attempt as i plainly dont know what to do.

And i ve done some research and all i see is node js which is way beyond my understanding.

Thanks a million

1 reply