Inbound Parsing Webhook

Once you have created an MX record and added your webhook URL in the parse settings, you will have to configure the information we send via the webhook

Structure of Inbound Parsing webhook data

	"body"	-> mail body along with the attachment.
	"content-language" -> language of the body
	"content-type" -> type of the content i.e. multipart/alternative
	"date" -> timestamp of the reply	
	"from"	-> from email address
	"message-id" -> message id of the original email request.
	"to"	-> to email address
	"sender" -> email address used while sending the email to the recipient.
	"subject"	-> subject of mail
	"user-agent" -> device information used for sending mail

Sample Inbound Parsing webhook data

An example of the full JSON that would be POSTed to your webhook URL is:

  "body": "This is a multi-part message in MIME format.\n--------------53DD3C920558F3EFD7FC290E\nContent-Type: text/plain; charset=utf-8; format=flowed\nContent-Transfer-Encoding: quoted-printable\n\nH\n\nOn 30/09/20 3:24 pm, Testing wrote:i\n> -----------53DD3C920558F3EFD7FC290E--",
  "content-language": "en-US",
  "content-type": "multipart/alternative;\n boundary=\"------------53DD3C920558F3EFD7FC290E\"",
  "date": "Wed, 30 Sep 2020 15:45:49 +0530",
  "delivered-to": "",
  "dkim-filter": "OpenDKIM Filter v2.11.0 0A443DA8A2E",
  "dkim-signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;;\n\ts=fnc; t=1601460972;\n\tbh=WVodASJQ4Ssqf6DHil5f5XIzwoPOsB4AasQsSStswRU=;\n\th=Subject:To:References:From:Date:In-Reply-To;\n\tb=F7+qZgJ6H3xTev9eoSmA1m3RRP8m+aZl+OX2kU2NskXApsgrR+HtXMBtsAHyRvVD5\n\t DUHmARhg5Y75zb4hynrnBguNugiWtGIvnDp+vlJNAf/o5SgPKnZkqhnISxEWCllm/i\n\t i/i2W/B+PW58t9MlG7tgB25PvjRkgTHXAG2hlEWA=",
  "from": "SACHIN <>",
  "in-reply-to": "<>",
  "message-id": "<>",
  "mime-version": "1.0",
  "rcpt": "",
  "received": "from [] (unknown [])\n\t(Authenticated sender: sachin.vernekar)\n\tby (Postfix) with ESMTPA id 5E9F3842265\n\tfor <>; Wed, 30 Sep 2020 15:45:49 +0530 (IST)",
  "references": "<>",
  "sender": "",
  "subject": "=?UTF-8?Q?Re=3a_Testing=c2=ad_tret?=",
  "to": "",
  "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101\n Thunderbird/68.11.0",