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": "reply@inbound.vernekar.xyz",
  "dkim-filter": "OpenDKIM Filter v2.11.0 smtpout3.netcore.co.in 0A443DA8A2E",
  "dkim-signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=netcore.co.in;\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 <sachin.vernekar@netcore.co.in>",
  "in-reply-to": "<wipeqr16014042069820780@vernekar.xyz>",
  "message-id": "<47dce462-3b13-e2d8-4d4c-4ee3f2450c21@netcore.co.in>",
  "mime-version": "1.0",
  "rcpt": "reply@inbound.vernekar.xyz",
  "received": "from [192.168.80.1] (unknown [59.163.11.66])\n\t(Authenticated sender: sachin.vernekar)\n\tby tower.netcore.co.in (Postfix) with ESMTPA id 5E9F3842265\n\tfor <reply@inbound.vernekar.xyz>; Wed, 30 Sep 2020 15:45:49 +0530 (IST)",
  "references": "<wipeqr16014042069820780@vernekar.xyz>",
  "sender": "sachin.vernekar@netcore.co.in",
  "subject": "=?UTF-8?Q?Re=3a_Testing=c2=ad_tret?=",
  "to": "reply@inbound.vernekar.xyz",
  "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101\n Thunderbird/68.11.0",
 }