@theycallmeswift I borrowed pretty heavily from http://sendgrid.com/docs/API_Reference/Webhooks/parse.html here, hope that's alright.