{
"from": "[email protected]",
"to": "[email protected]",
"subject": "Hello",
"date": "Thu, 25 Sep 2026 15:15:15 +0000",
"messageId": null,
"returnPath": null,
"receivedChain": [
{
"hop": 1,
"raw": "from mail-out.example.net (mail-out.example.net [203.0.113.5]) by mx.example.org with ESMTPS; Thu, 25 Sep 2026 15:15:20 +0000",
"from": "mail-out.example.net",
"by": "mx.example.org",
"timestamp": "Thu, 25 Sep 2026 15:15:20 +0000",
"timestampMs": 1790349320000
},
{
"hop": 2,
"raw": "from sender-pc (unknown [198.51.100.7]) by mail-out.example.net with ESMTP; Thu, 25 Sep 2026 15:15:15 +0000",
"from": "sender-pc",
"by": "mail-out.example.net",
"timestamp": "Thu, 25 Sep 2026 15:15:15 +0000",
"timestampMs": 1790349315000
}
],
"hopCount": 2,
"transitTimeSeconds": 5,
"authenticationResults": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass",
"raw": "mx.example.org; spf=pass smtp.mailfrom=example.net; dkim=pass header.d=example.net; dmarc=pass header.from=example.net",
"malformed": false
},
"issues": []
}
curl --location --request POST 'https://zylalabs.com/api/14075/email+header+analyzer+api/34535/analyze+email+headers' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"rawHeaders":"Received: from mail-out.example.net (mail-out.example.net [203.0.113.5]) by mx.example.org with ESMTPS; Thu, 25 Sep 2026 15:15:20 +0000\nReceived: from sender-pc (unknown [198.51.100.7]) by mail-out.example.net with ESMTP; Thu, 25 Sep 2026 15:15:15 +0000\nAuthentication-Results: mx.example.org; spf=pass smtp.mailfrom=example.net; dkim=pass header.d=example.net; dmarc=pass header.from=example.net\nFrom: [email protected]\nTo: [email protected]\nSubject: Hello\nDate: Thu, 25 Sep 2026 15:15:15 +0000\n"}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 电子邮件标题分析器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
粘贴电子邮件的原始头部文本,然后获取传递路径(每跳的接收链,包括来自、通过、时间戳和总传输时间)以及SPF、DKIM和DMARC
API返回的结构化JSON数据包括邮件的收件路径(接收链) SPF DKIM和从Authentication-Results头部提取的DMARC结果
响应中的关键字段包括“发件人”“收件人”“主题”“日期”“接收链”“跳数”和“传输时间(秒)”这些字段提供了关于电子邮件旅程和身份验证结果的详细信息
响应数据以JSON格式组织,主对象包含发件人和收件人详细信息字段、接收到的节点列表以及认证结果,使解析和分析变得简单
该API提供有关电子邮件投递路径的信息,包括每个跳转的发件人和收件人 时间戳 总过境时间以及SPF DKIM和DMARC检查的结果
用户可以通过在POST请求体中提供原始电子邮件头文本来定制他们的请求。该API处理此输入以返回有关电子邮件投递和验证的特定细节
典型用例包括调查垃圾邮件和网络钓鱼尝试 调试邮件投递延迟以及验证用户发送的邮件的SPF DKIM和DMARC配置
通过根据RFC标准解析原始邮件头来保持数据准确性 但是API依赖于提供的Authentication-Results头的完整性 因此结果的可信度仅与该头部同样高
用户可以期待在接收到的链中看到一个跳数列表,每个跳数都有“来自”、“由”和“时间戳”字段。跳数的数量和其细节可能会根据电子邮件在不同服务器之间的路由而有所不同