Skip to content

Instantly share code, notes, and snippets.

@walidvb
Last active February 22, 2018 02:48
Show Gist options
  • Save walidvb/8c7d9c529aaca8091402bbb7e85f00e7 to your computer and use it in GitHub Desktop.
Save walidvb/8c7d9c529aaca8091402bbb7e85f00e7 to your computer and use it in GitHub Desktop.
Sample batched events sent by sendgrid webhook
[
{
"timestamp":1519267261,
"event":"processed",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"2FeCcG5VRWpck6mKqRgnDg==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"response":"400 try again later",
"attempt":"5",
"event":"deferred",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"qK1MxfAaE_ukyyNsjxTpkw==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"response":"250 OK",
"event":"delivered",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"hqFbp3HH9WxIM0R2-x2M1Q==",
"category":"cat facts",
"email":"example@test.com"
},
{
"ip":"255.255.255.255",
"timestamp":1519267261,
"useragent":"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"event":"open",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"2es5sv1VuM-YGzCmOSWwSw==",
"category":"cat facts",
"email":"example@test.com"
},
{
"ip":"255.255.255.255",
"timestamp":1519267261,
"useragent":"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"event":"click",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"url":"http://www.sendgrid.com/",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"qi1NlSKntA0Yc74-Q_OqeA==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"status":"5.0.0",
"event":"bounce",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"reason":"500 unknown recipient",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"XeYXz6IY6_DlO1x_zER_Tg==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"status:"5.0.0",
"event":"dropped",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"reason":"Bounced Address",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"7ke7OkCkNAwCAIyiOvhs1A==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"event":"spamreport",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"aUA3chApWUtiOeGc587gGA==",
"category":"cat facts",
"email":"example@test.com"
},
{
"timestamp":1519267261,
"event":"unsubscribe",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"5vPVVbDfy-sAtp4Sf0w9zw==",
"category":"cat facts",
"email":"example@test.com"
},
{
"ip":"255.255.255.255",
"timestamp":1519267261,
"useragent":"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"asm_group_id":10,
"event":"group_unsubscribe",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"url":"http://www.sendgrid.com/",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"We0Q7_jSY4b4X8nvAP-P2g==",
"category":"cat facts",
"email":"example@test.com"
},
{
"ip":"255.255.255.255",
"timestamp":1519267261,
"useragent":"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"asm_group_id":10,
"event":"group_resubscribe",
"sg_message_id":"14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0",
"url":"http://www.sendgrid.com/",
"smtp-id":"<14c5d75ce93.dfd.64b469@ismtpd-555>",
"sg_event_id":"0zOxpQFYt1kMJDUZXyLPgQ==",
"category":"cat facts",
"email":"example@test.com"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment