Last post Jul 06, 2020 09:49 AM by Sean Fang
Jul 03, 2020 01:57 PM|amithashenoy|LINK
How to read Event hook response from sendgrid ?
Below is what mentioned on sendgrid. [but when i give end poit shown code cant see anything happening]
"SendGrid's Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email" This is what mentioned on site.
below is my api
public void EmailEvents([FromBody]SendGridEventObject eventList)
using (StreamWriter file = System.IO.File.CreateText(@"D:\EmailResponseStatus.txt"))
JsonSerializer serializer = new JsonSerializer();
if (eventList != null && eventList.Count() > 0)
foreach (var evnt in eventList)
I have given this url on sendgrid and try to run integration test it says A sample event notification will be sent to your endpoint shortly, but i dont see anything happening,when i have set debug point as well.
When i use the url as they have mentioned in below link https://sendgrid.com/docs/for-developers/tracking-events/getting-started-event-webhook/
i can see the response, can any one tell me what i am doing wrong here in my Api endpoint ? i want this response to be read and send it to other service.
Really Appreciate your help,Thanks in advance.
Jul 06, 2020 09:49 AM|Sean Fang|LINK
I can see that there is no error in your api codes. If you have already set the call back URL in the
SendGrid UI, you could check below verifications.
If you still could not receive the response, I suggest you narrow the problem scope following below steps:
Hope this can help you.