Debugging SendGrid’s Parsing Incoming Messages

SendGrid has a nice feature available to it’s Silver Level Subscribers and above (currently $79/month) that let’s you have incoming message to a domain parsed and forwarded through a web service.  This is great if it works but if it does not debugging is tricky because the web service is running on your production server.


Here are some steps to debug the service.

Go to the URL: and then use the URL given to you as the email forwarding URL inside of the SendGrid Control panel.



Then, send an email to your domain you want to parse ( in my case).

Head back to the page and look at the request.

Copy the headers into the fiddler compose request page, then the body into the data area.  You can now post this to your real web server running locally to see what happens.


For some details on what the web service might look like in ASP.NET WebAPI check out this post:  I’d do a little more error checking than done here and also remove some extra code.  Otherwise, it works great.


About Peter Kellner

Peter is a software professional specializing in mobile and web technologies. He has also been a Microsoft MVP since 2007. In addition, he’s a multi-course video author at Pluralsight. To read more about Peter Kellner and his experience click here. For information about how Peter Kellner might be able to help you with your project click here.

Follow me:


  1. You can also use an online JSON viewer like Super simple but it works.


  1. […] Debugging SendGrid’s Parsing Incoming Messages (Peter Kellner) […]


Get every new post delivered to your Inbox

Join other followers: