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

$0.002 per request

Examples use the Base (eip155:8453) network.

Input

A JSON body with content-type: application/json.

NameTypeRequiredLimitsDescription
headersstringYes1–65536 charactersThe 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

FieldMeaning
request_idUnique id of this request. Quote it when you contact support.
endpointThe endpoint id, for example mail.spf.
schema_versionVersion of the response format, currently 1.0.
checked_atWhen the check ran (ISO 8601, UTC).
statusok, info, warning or error from the worst finding, or unknown when the check was incomplete. unknown is not an error in the domain.
dataThe check's own data. Its fields are listed below.
findingsWhat was found: code, severity, message, explanation and evidence.
metaDuration, cache use, resolver and how long the result stays fresh.

Fields in data

FieldType
field_countinteger
hopsarray of ReceivedHop
total_delay_secondsinteger or null
from_addressstring or null
from_domainstring or null
return_pathstring or null
return_path_domainstring or null
message_id_domainstring or null
spfone of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null
dkimone of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null
dmarcone of pass, fail, softfail, neutral, none, temperror, permerror, policy, other or null
spf_alignedboolean or null
dkim_alignedboolean or null
authentication_resultsarray of AuthResultsSet
arcarray of ArcSeal
dkim_signaturesarray of DkimSignatureInfo
notesarray of string

Status codes

StatusCodeMeaningDo you pay?
200noneThe result is delivered, also when it has negative findings.Yes: charged once per payment; redelivery of the same payment is free
402nonePayment is required, or the attached payment was refused. The body states the price.No
400bad_requestThe request is malformed.No
409payment_in_progress, payment_bound_to_other_requestThis payment is already being processed, or it is bound to a different request. No new payment is taken.No
413payload_too_largeThe body is larger than 64 KB.No
422invalid_inputThe 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
429rate_limitedToo many requests from this IP address or payer.No
503busy, unavailable, payments_unavailable, check_failed, deadline_exceededThe 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)