Email header analyzer API
Reads the header section of one message (up to 64 KiB): the Received chain with hosts, IP addresses and the delay of each hop, the Authentication-Results and ARC verdicts with domains and alignment, the DKIM-Signature tags, and the Return-Path, From and Message-ID domains. Nothing is looked up or verified; addresses are masked and the Subject and body are not read.
Free in the browser, no code or account needed: Email header analyzer.
POST https://api.lookproof.dev/v1/mail/header-parse
Updated 2026-10-09
Examples use the Base (eip155:8453) network.
Input
A JSON body with content-type: application/json.
| Name | Type | Required | Limits | Description |
|---|---|---|---|---|
headers | string | Yes | 1–65536 characters | The header section of one email (at most 65536 characters), as the mail client shows it under Show original or View source. The body and Subject are never read; addresses come back masked as …@domain. |
Example request
curl -i -X POST https://api.lookproof.dev/v1/mail/header-parse \
-H 'content-type: application/json' \
-d '{"headers": "Received: by 2001:db8:4::1 with SMTP id q5csp1; Wed, 18 Nov 2026 10:02:17 -0800\nARC-Seal: i=1; a=rsa-sha256; cv=none; d=example.org; s=arc1; b=AbCd\nReturn-Path: <[email protected]>\nReceived: from out-25.mailer.example.net (out-25.mailer.example.net. [198.51.100.25])\n by mx.example.org with ESMTPS id m3si8; Wed, 18 Nov 2026 10:02:16 -0800\nAuthentication-Results: mx.example.org; dkim=pass [email protected] header.s=s1;\n spf=pass [email protected]; dmarc=pass header.from=example.com\nReceived: from app-3.example.net (app-3.example.net [192.0.2.17])\n by out-25.mailer.example.net with ESMTPSA id 4Fq2; Wed, 18 Nov 2026 18:01:58 +0000\nDKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s1; h=from:to:subject:date; b=EfGh\nFrom: Example News <[email protected]>\nSubject: Your November update\nMessage-ID: <[email protected]>\n"}'import asyncio
import os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact import register_exact_evm_client
async def main() -> None:
signer = EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"]))
client = register_exact_evm_client(x402Client(), signer, networks="eip155:8453")
async with x402HttpxClient(client) as http:
response = await http.post('https://api.lookproof.dev/v1/mail/header-parse', json={'headers': 'Received: by 2001:db8:4::1 with SMTP id q5csp1; Wed, 18 Nov 2026 10:02:17 -0800\nARC-Seal: i=1; a=rsa-sha256; cv=none; d=example.org; s=arc1; b=AbCd\nReturn-Path: <[email protected]>\nReceived: from out-25.mailer.example.net (out-25.mailer.example.net. [198.51.100.25])\n by mx.example.org with ESMTPS id m3si8; Wed, 18 Nov 2026 10:02:16 -0800\nAuthentication-Results: mx.example.org; dkim=pass [email protected] header.s=s1;\n spf=pass [email protected]; dmarc=pass header.from=example.com\nReceived: from app-3.example.net (app-3.example.net [192.0.2.17])\n by out-25.mailer.example.net with ESMTPSA id 4Fq2; Wed, 18 Nov 2026 18:01:58 +0000\nDKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s1; h=from:to:subject:date; b=EfGh\nFrom: Example News <[email protected]>\nSubject: Your November update\nMessage-ID: <[email protected]>\n'})
response.raise_for_status()
print(response.json())
asyncio.run(main())
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
const response = await fetchWithPayment("https://api.lookproof.dev/v1/mail/header-parse", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"headers": "Received: by 2001:db8:4::1 with SMTP id q5csp1; Wed, 18 Nov 2026 10:02:17 -0800\nARC-Seal: i=1; a=rsa-sha256; cv=none; d=example.org; s=arc1; b=AbCd\nReturn-Path: <[email protected]>\nReceived: from out-25.mailer.example.net (out-25.mailer.example.net. [198.51.100.25])\n by mx.example.org with ESMTPS id m3si8; Wed, 18 Nov 2026 10:02:16 -0800\nAuthentication-Results: mx.example.org; dkim=pass [email protected] header.s=s1;\n spf=pass [email protected]; dmarc=pass header.from=example.com\nReceived: from app-3.example.net (app-3.example.net [192.0.2.17])\n by out-25.mailer.example.net with ESMTPSA id 4Fq2; Wed, 18 Nov 2026 18:01:58 +0000\nDKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s1; h=from:to:subject:date; b=EfGh\nFrom: Example News <[email protected]>\nSubject: Your November update\nMessage-ID: <[email protected]>\n"}),
});
console.log(await response.json());
curl: an unpaid request returns 402 with the price (PAYMENT-REQUIRED). The Python and JavaScript clients pay it and send the request again. Only ordinary wallets (EOA) can pay; smart-contract wallets get a 402 without charge. See payments. With an API key instead, add -H "Authorization: Bearer lp_live_..." to the curl request; see authentication.
Example response
{
"checked_at": "2026-10-24T12:00:00Z",
"data": {
"arc": [
{
"cv": "none",
"domain": "example.org",
"instance": 1
}
],
"authentication_results": [
{
"authserv_id": "mx.example.org",
"instance": null,
"results": [
{
"aligned": true,
"domain": "example.com",
"method": "dkim",
"result": "pass",
"selector": "s1"
},
{
"aligned": false,
"domain": "mailer.example.net",
"method": "spf",
"result": "pass",
"selector": null
},
{
"aligned": null,
"domain": "example.com",
"method": "dmarc",
"result": "pass",
"selector": null
}
],
"source": "authentication-results"
}
],
"dkim": "pass",
"dkim_aligned": true,
"dkim_signatures": [
{
"algorithm": "rsa-sha256",
"aligned": true,
"domain": "example.com",
"identity": null,
"selector": "s1",
"signed_fields": [
"from",
"to",
"subject",
"date"
]
}
],
"dmarc": "pass",
"field_count": 10,
"from_address": "…@example.com",
"from_domain": "example.com",
"hops": [
{
"by_host": "out-25.mailer.example.net",
"delay_seconds": null,
"from_host": "app-3.example.net",
"from_ip": "192.0.2.17",
"from_name": "app-3.example.net",
"index": 1,
"protocol": "ESMTPSA",
"time": "2026-11-18T18:01:58Z"
},
{
"by_host": "mx.example.org",
"delay_seconds": 18,
"from_host": "out-25.mailer.example.net",
"from_ip": "198.51.100.25",
"from_name": "out-25.mailer.example.net",
"index": 2,
"protocol": "ESMTPS",
"time": "2026-11-18T18:02:16Z"
},
{
"by_host": "2001:db8:4::1",
"delay_seconds": 1,
"from_host": null,
"from_ip": null,
"from_name": null,
"index": 3,
"protocol": "SMTP",
"time": "2026-11-18T18:02:17Z"
}
],
"message_id_domain": "mailer.example.net",
"notes": [
"Nothing is looked up or verified: the verdicts are the ones the receiving servers wrote, and DKIM signatures are not checked. The topmost Authentication-Results field is the final receiver's; a sender can add false ones further down.",
"Addresses are shown with the local part replaced by …. The Subject, the other header fields and the body are not read, logged or stored.",
"Alignment compares registrable domains from the Public Suffix List. A DMARC receiver (RFC 9989) finds the organizational domain with a DNS tree walk, which can differ."
],
"return_path": "…@mailer.example.net",
"return_path_domain": "mailer.example.net",
"spf": "pass",
"spf_aligned": false,
"total_delay_seconds": 19
},
"endpoint": "mail.header_parse",
"findings": [
{
"code": "HEADERS_MESSAGE_ID_MISMATCH",
"evidence": {
"count": 1,
"items": [
{
"from_domain": "example.com",
"message_id": "mailer.example.net"
}
]
},
"explanation": "The domain part of the Message-ID usually names the system that created the message, such as a sending service or a mail server, so it often differs from the From domain. It plays no part in SPF, DKIM or DMARC.",
"message": "The Message-ID domain differs from the From domain.",
"recommendation": null,
"severity": "info"
},
{
"code": "HEADERS_RETURN_PATH_MISMATCH",
"evidence": {
"count": 1,
"items": [
{
"from_domain": "example.com",
"return_path": "mailer.example.net"
}
]
},
"explanation": "The Return-Path is the envelope sender that SPF checks. When its organizational domain differs from the From domain, SPF cannot count for DMARC, and the message relies on an aligned DKIM signature alone.",
"message": "The Return-Path domain is not aligned with the From domain.",
"recommendation": "If the service allows it, use a custom return-path (bounce) domain under the From domain.",
"severity": "info"
}
],
"meta": {
"cache_hit": false,
"duration_ms": 42,
"fresh_until": "2026-10-24T12:05:00Z",
"observed_at": "2026-10-24T12:00:00Z",
"resolver": null,
"source": "offline"
},
"request_id": "req_aaaaaaaaaaaaaaaaaaaaaaaaaa",
"schema_version": "1.0",
"status": "info"
}
Response fields
| Field | Meaning |
|---|---|
request_id | Unique id of this request. Quote it when you contact support. |
endpoint | The endpoint id, for example mail.spf. |
schema_version | Version of the response format, currently 1.0. |
checked_at | When the check ran (ISO 8601, UTC). |
status | ok, info, warning or error from the worst finding, or unknown when the check was incomplete. unknown is not an error in the domain. |
data | The check's own data. Its fields are listed below. |
findings | What was found: code, severity, message, explanation and evidence. |
meta | Duration, cache use, resolver and how long the result stays fresh. |
Fields in data
| Field | Type |
|---|---|
field_count | integer |
hops | array of ReceivedHop |
total_delay_seconds | integer or null |
from_address | string or null |
from_domain | string or null |
return_path | string or null |
return_path_domain | string or null |
message_id_domain | string or null |
spf | one of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null |
dkim | one of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null |
dmarc | one of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null |
spf_aligned | boolean or null |
dkim_aligned | boolean or null |
authentication_results | array of AuthResultsSet |
arc | array of ArcSeal |
dkim_signatures | array of DkimSignatureInfo |
notes | array of string |
Status codes
| Status | Code | Meaning | Do you pay? |
|---|---|---|---|
| 200 | none | The result is delivered, also when it has negative findings. | Yes: charged once per payment; redelivery of the same payment is free |
| 402 | none | Payment is required, or the attached payment was refused. The body states the price. | No |
| 400 | bad_request | The request is malformed. | No |
| 409 | payment_in_progress, payment_bound_to_other_request | This payment is already being processed, or it is bound to a different request. No new payment is taken. | No |
| 413 | payload_too_large | The body is larger than 64 KB. | No |
| 422 | invalid_input | The input failed validation, with or without a payment; no payment terms are given and nothing is charged. A request with no input at all (the bare URL) gets a 402 whose error field names the missing input. | No |
| 429 | rate_limited | Too many requests from this IP address or payer. | No |
| 503 | busy, unavailable, payments_unavailable, check_failed, deadline_exceeded | The service is busy or temporarily unavailable, or the check could not be completed (check_failed) or ran out of time (deadline_exceeded) on our side. Nothing is charged; retry after Retry-After. | No |
Errors use the common error body. See errors.
Findings this endpoint can return
Email headers (17)
- Info
HEADERS_ARC_FAILAn ARC seal reports a broken chain (cv=fail). - Info
HEADERS_CLOCK_SKEWA hop is timestamped before the hop that came ahead of it. - Warning
HEADERS_DKIM_FAILThe receiving server reported that no DKIM signature verified. - Warning
HEADERS_DKIM_SHA1A DKIM signature uses rsa-sha1. - Error
HEADERS_DMARC_FAILThe receiving server reported that DMARC failed. - Warning
HEADERS_FROM_MISSINGThe headers have no From address. - Warning
HEADERS_FROM_MULTIPLEThe headers have more than one From field or From address. - Warning
HEADERS_HOP_DELAYA hop in the Received chain took more than five minutes. - Info
HEADERS_MESSAGE_ID_MISMATCHThe Message-ID domain differs from the From domain. - Info
HEADERS_MESSAGE_ID_MISSINGThe headers have no Message-ID field. - Warning
HEADERS_NOT_ALIGNEDNo passing SPF or DKIM result is aligned with the From domain. - Warning
HEADERS_NOT_FOUNDThe text holds no email header fields. - Info
HEADERS_NO_AUTH_RESULTSThe headers have no Authentication-Results field. - Info
HEADERS_NO_DKIM_SIGNATUREThe message has no DKIM signature. - Info
HEADERS_NO_RECEIVEDThe headers have no Received fields. - Info
HEADERS_RETURN_PATH_MISMATCHThe Return-Path domain is not aligned with the From domain. - Warning
HEADERS_SPF_FAILThe receiving server reported that SPF failed.
- CAA record check API
- DNS resolver comparison API
- DNSSEC check API
- HTTPS record check API
- IDN converter API
- DNS lookup API
- Name server check API
- DNS provider lookup API
- SOA record check API
- DNS TTL check API
- Domain verification records API
- Wildcard DNS check API
- Zone file checker API
- Domain health check API
- RDAP domain lookup API
- Set-Cookie parser API
- CSP header parser API
- HSTS header parser API
- Security headers check API
- CIDR calculator API
- IP in CIDR check API
- IP address info API
- IP range to CIDR API
- Subnet calculator API
- BIMI record check API
- BIMI record parser API
- Mail configuration check API
- Bulk mail configuration check API
- DKIM record check API
- DKIM selector finder API
- DMARC check API
- DMARC record parser API
- MTA-STS and TLS-RPT check API
- MTA-STS policy parser API
- MX lookup API
- Mail provider detection API
- Reverse DNS check for mail servers API
- SPF check API
- SPF flattening check API
- SPF record parser API
- Email spoofing check API
- TLS-RPT check API
- TLS-RPT record parser API
- Site health check API
- TLS certificate check API
- CSR decoder API
- PEM certificate decoder API
- Post-quantum TLS check API
- Free retry of failed bulk items API