How to Receive Email Data From SendGrid?

Hi,

I have currently set up SendGrid to send me email data to a URL on a Subdomain of my site,
I can’t seem to wrap my head around the basic code I need so that I can consume this email data that is being sent.

At the moment SendGrid is just getting 403 errors, I am aware that the URL endpoint needs to be accessible, I am pretty sure that it is, I am also aware that I need some code to consume the data then return a success code or something similar.

All I really need is a small snippet of code as a starting point so that SendGrid stops getting 403 errors, e.g consume data, store in a data structure then return success. This should be quite simple but I for some reason the solution escapes me.

Thanks in advance.

Daniel

Hi Daniel,

Have you had a chance to look into exposing a functionality of your site as a service as described in: Velo: Exposing a Site API with HTTP Functions | Help Center | Wix.com

Later, this exposed functionality could be integrated with any 3rd party system, for example Sendgrid

Let me know if it works for you

Thanks
Adi