Skip to content

Instantly share code, notes, and snippets.

@conradev
Last active May 26, 2016 22:05
Show Gist options
  • Save conradev/66a29bef1a113d254dc306acbd5b3bb4 to your computer and use it in GitHub Desktop.
Save conradev/66a29bef1a113d254dc306acbd5b3bb4 to your computer and use it in GitHub Desktop.
Mailgun webhook JSON schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://gist.githubusercontent.com/conradev/66a29bef1a113d254dc306acbd5b3bb4/raw/mailgun-schema.json",
"type": "object",
"properties": {
"domain": { "type": "string" },
"ip": { "type": "string" },
"tag": { "type": "string" },
"event": { "type": "string" },
"city": { "type": "string" },
"device-type": { "type": "string" },
"mailing-list": { "type": "string" },
"client-type": { "type": "string" },
"user-agent": { "type": "string" },
"Message-Id": { "type": "string" },
"campaign-name": { "type": "string" },
"description": { "type": "string" },
"timestamp": { "type": "number" },
"client-name": { "type": "string" },
"client-os": { "type": "string" },
"reason": { "type": "string" },
"campaign-id": { "type": "string" },
"recipient": { "type": "string" },
"notification": { "type": "string" },
"url": { "type": "string" },
"country": { "type": "string" },
"region": { "type": "string" },
"error": { "type": "string" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment