POST
/v1/email/analyze-headers1 credit / callEmail header analyzer
Parse supplied raw email headers, summarize reported SPF/DKIM/DMARC results, reconstruct Received hops and flag common sender-domain mismatches. This does not query DNS or independently verify signatures.
| Parameter | Type | Required | Description |
|---|---|---|---|
| raw | string | Yes | Raw email headers, optionally followed by the message body. |
Request
curl -X POST https://toolsonduty.com/api/v1/email/analyze-headers \
-H "Authorization: ******" \
-H "Content-Type: application/json" \
-d '{"raw":"From: Billing <[email protected]>\nReply-To: [email protected]\nAuthentication-Results: mx.example; spf=pass; dkim=pass; dmarc=pass\nMessage-ID: <[email protected]>"}'Response
{
"ok": true,
"data": {
"authentication": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
},
"route": [],
"signals": [
{
"level": "warning",
"title": "Reply-To domain differs from From"
}
]
}
}