2026 黑色星期五 首年享五折优惠 活动截至 11月30日

面向开发者的 Deliverlens

您的首次 API 检查。

创建密钥、选择服务,并把邮件测试接入应用。

1. 创建密钥并验证

登录并打开 API 密钥。为密钥命名,选择权限与过期时间或永不过期。密钥只显示一次,请立即复制。

从服务器通过 Authorization: Bearer 标头发送密钥。不要把密钥放入浏览器代码、网址或 Git。

TerminalDeliverlens
export DELIVERLENS_API_KEY='YOUR_API_KEY'
权限允许操作
services:read列出服务并读取自有服务结果。
services:run发起邮件、DNS 或黑名单检查。
tests:create创建邮件测试地址。
tests:read读取邮件测试结果。
analytics:read读取 API 使用分析。

每个已验证用户都可创建密钥并读取自有结果。通过 API 或 MCP 发起检查需要有效付费订阅和服务额度。

2. 检查可用性与额度

提交检查前先读取账户服务。响应包含可用性、套餐权限、剩余额度和重置时间。

TerminalDeliverlens
curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/services' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY"

需要 services:read。服务必须可用、包含在套餐中且仍有额度。

3. 发起检查

此示例检查 fintrate.com。每项新检查生成一个 64 位十六进制 request_id;相同重试应复用该值。

TerminalDeliverlens
REQUEST_ID="$(openssl rand -hex 32)"

curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/services/spf-checker/runs' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY" \
  --data "{\"target\":\"fintrate.com\",\"request_id\":\"$REQUEST_ID\"}"

需要 services:run。保存 data.id。202 表示已排队,不代表通过;DKIM 还需要选择器。

4. 读取结果

将 CHECK_RUN_ID 替换为返回的 ID。以适当间隔轮询,直到任务结束。

TerminalDeliverlens
curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/service-runs/CHECK_RUN_ID' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY"

需要 services:read。先读取 data.status,再从 data.result 查看结果、证据与限制。

测试完整邮件

创建测试,把邮件发送到返回的地址,再获取报告。请使用常用发送平台,以保留真实身份验证标头。

TerminalDeliverlens
MESSAGE_REQUEST_ID="$(openssl rand -hex 32)"

curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/tests' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY" \
  --data "{\"request_id\":\"$MESSAGE_REQUEST_ID\"}"

curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/tests/TEST_ID' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY"

创建需要 tests:create,读取需要 tests:read。系统采用第一封收到的邮件。

观测收件箱投递位置

先列出已配置的种子提供商,再使用实际发件地址和准确主题创建专用投递位置运行。

TerminalDeliverlens
curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/inbox-placement/providers' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY"

PLACEMENT_REQUEST_ID="$(openssl rand -hex 32)"
curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/inbox-placement/runs' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY" \
  --data "{\"from_email\":\"[email protected]\",\"subject\":\"Placement $PLACEMENT_REQUEST_ID\",\"request_id\":\"$PLACEMENT_REQUEST_ID\"}"

向 data.instructions.send_to 中的每个私有地址发送同一封邮件,然后以适当间隔读取自有运行。

TerminalDeliverlens
curl --fail-with-body 'https://api.deliverlens.com/api/v1/account/inbox-placement/runs/PLACEMENT_RUN_ID' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $DELIVERLENS_API_KEY"

需要 services:read、services:run、有效的付费诊断额度以及至少一个已配置种子提供商。种子结果只代表该邮箱和时间,不保证送达。

端点参考

这些端点来自当前 API 合同。展开操作可查看字段和所需权限;OpenAPI 提供机器可读结构。

GET/api/v1/account/servicesAPI 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/services。

权限: services:read

GET/api/v1/account/service-runs/{checkRun}API 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/service-runs/{checkRun}。

权限: services:read

POST/api/v1/account/testsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/tests。

权限: tests:create

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "request_id"
    ],
    "additionalProperties": false
}
GET/api/v1/account/tests/{test}API 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/tests/{test}。

权限: tests:read

GET/api/v1/account/inbox-placement/providersAPI 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/inbox-placement/providers。

权限: services:read

POST/api/v1/account/inbox-placement/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/inbox-placement/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "from_email": {
            "type": "string",
            "format": "email",
            "maxLength": 254,
            "description": "The exact From address that will send the test message."
        },
        "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The exact subject of the message that will be sent to every seed address."
        },
        "campaign": {
            "type": "string",
            "maxLength": 120,
            "description": "Optional private label for this run."
        },
        "providers": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "uniqueItems": true,
            "items": {
                "type": "string"
            },
            "description": "Optional provider keys returned by list_inbox_placement_providers. Omit to use every configured provider."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "from_email",
        "subject",
        "request_id"
    ],
    "additionalProperties": false
}
GET/api/v1/account/inbox-placement/runs/{checkRun}API 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/inbox-placement/runs/{checkRun}。

权限: services:read

POST/api/v1/account/services/email-verifier/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/email-verifier/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "Email address to check, with a public DNS domain."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/spf-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/spf-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        },
        "sending_ip": {
            "type": "string",
            "maxLength": 45,
            "description": "Optional public sending IP for an SPF evaluation."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/dkim-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/dkim-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        },
        "selector": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Published selector. DKIM requires the selector from a signed message; BIMI defaults to default."
        }
    },
    "required": [
        "request_id",
        "target",
        "selector"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/dmarc-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/dmarc-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/bimi-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/bimi-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        },
        "selector": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Published selector. DKIM requires the selector from a signed message; BIMI defaults to default."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/domain-blacklist-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/domain-blacklist-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/email-blacklist-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/email-blacklist-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "Email address to check, with a public DNS domain."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/ip-blacklist-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/ip-blacklist-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public IPv4 or IPv6 address."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/mta-sts-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/mta-sts-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/tls-rpt-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/tls-rpt-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/domain-age-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/domain-age-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/ip-abuse-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/ip-abuse-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public IPv4 or IPv6 address."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/reverse-dns-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/reverse-dns-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public IPv4 or IPv6 address."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/link-health-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/link-health-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "description": "An authorized public HTTP/HTTPS URL with a DNS hostname, a standard port and no embedded credentials. URL malware checks share it with VirusTotal and its community dataset."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/url-malware-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/url-malware-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "description": "An authorized public HTTP/HTTPS URL with a DNS hostname, a standard port and no embedded credentials. URL malware checks share it with VirusTotal and its community dataset."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/sender-geoip-lookup/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/sender-geoip-lookup/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public IPv4 or IPv6 address."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/basic-bimi-management/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/basic-bimi-management/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/tls-rpt-report-analysis/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/tls-rpt-report-analysis/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/smtp-tls-checker/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/smtp-tls-checker/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
POST/api/v1/account/services/hosted-mta-sts/runsAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/services/hosted-mta-sts/runs。

权限: services:run

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "A public DNS domain, for example fintrate.com. Do not include a URL or path."
        }
    },
    "required": [
        "request_id",
        "target"
    ],
    "additionalProperties": false
}
GET/api/v1/account/delivery-centerAPI 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/delivery-center。

权限: monitoring:read

POST/api/v1/account/delivery-centerAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "domain": {
            "type": "string",
            "maxLength": 235
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "domain",
        "request_id"
    ],
    "additionalProperties": false
}
GET/api/v1/account/delivery-center/{domain}API 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/delivery-center/{domain}。

权限: monitoring:read

PATCH/api/v1/account/delivery-center/{domain}API 操作

当前 Deliverlens API 合同定义了 PATCH /api/v1/account/delivery-center/{domain}。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "sending_ips": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "dkim_selector": {
            "type": "string",
            "maxLength": 128
        },
        "flow_address": {
            "type": "string",
            "maxLength": 254
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}
POST/api/v1/account/delivery-center/{domain}/verifyAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center/{domain}/verify。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}
POST/api/v1/account/delivery-center/{domain}/runAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center/{domain}/run。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}
GET/api/v1/account/delivery-center/{domain}/dns-providerAPI 操作

当前 Deliverlens API 合同定义了 GET /api/v1/account/delivery-center/{domain}/dns-provider。

权限: monitoring:read

POST/api/v1/account/delivery-center/{domain}/dns-providerAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center/{domain}/dns-provider。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}
POST/api/v1/account/delivery-center/{domain}/dns-connectAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center/{domain}/dns-connect。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "operation": {
            "type": "string",
            "enum": [
                "ownership",
                "dmarc",
                "tls"
            ]
        }
    },
    "required": [
        "id",
        "request_id",
        "operation"
    ],
    "additionalProperties": false
}
PATCH/api/v1/account/delivery-center/{domain}/notificationsAPI 操作

当前 Deliverlens API 合同定义了 PATCH /api/v1/account/delivery-center/{domain}/notifications。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "revision": {
            "type": "integer",
            "minimum": 1
        },
        "email_enabled": {
            "type": "boolean"
        },
        "webhook_enabled": {
            "type": "boolean"
        },
        "categories": {
            "type": "array",
            "maxItems": 10,
            "items": {
                "type": "string",
                "enum": [
                    "monitoring",
                    "dmarc",
                    "tls",
                    "mail_flow",
                    "complaint",
                    "abuse",
                    "bimi",
                    "new_sender",
                    "volume",
                    "alignment_rate"
                ]
            }
        },
        "cooldown_minutes": {
            "type": "integer",
            "enum": [
                15,
                60,
                360,
                1440
            ]
        },
        "summary_frequency": {
            "type": "string",
            "enum": [
                "off",
                "weekly",
                "monthly"
            ]
        },
        "new_sender_min_messages": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
        },
        "minimum_messages": {
            "type": "integer",
            "minimum": 10,
            "maximum": 1000000
        },
        "volume_increase_percent": {
            "type": "integer",
            "minimum": 25,
            "maximum": 1000
        },
        "volume_decrease_percent": {
            "type": "integer",
            "minimum": 25,
            "maximum": 100
        },
        "alignment_failure_percent": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100
        },
        "webhook_url": {
            "type": "string",
            "maxLength": 2048
        },
        "webhook_secret": {
            "type": "string",
            "minLength": 32,
            "maxLength": 128
        },
        "webhook_consent": {
            "type": "boolean"
        }
    },
    "required": [
        "id",
        "request_id",
        "revision",
        "email_enabled",
        "categories",
        "cooldown_minutes",
        "summary_frequency",
        "webhook_enabled"
    ],
    "additionalProperties": false
}
PATCH/api/v1/account/delivery-center/{domain}/hostingAPI 操作

当前 Deliverlens API 合同定义了 PATCH /api/v1/account/delivery-center/{domain}/hosting。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        },
        "bimi_enabled": {
            "type": "boolean"
        },
        "mta_sts_enabled": {
            "type": "boolean"
        },
        "logo_svg": {
            "type": "string",
            "maxLength": 131072
        },
        "certificate_pem": {
            "type": "string",
            "maxLength": 131072
        },
        "policy_mode": {
            "type": "string",
            "enum": [
                "testing",
                "enforce",
                "none"
            ]
        },
        "policy_max_age": {
            "type": "integer",
            "minimum": 0,
            "maximum": 604800
        },
        "mx_patterns": {
            "type": "array",
            "maxItems": 20,
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}
POST/api/v1/account/delivery-center/{domain}/hosting/verifyAPI 操作

当前 Deliverlens API 合同定义了 POST /api/v1/account/delivery-center/{domain}/hosting/verify。

权限: monitoring:write

JSON 结构Deliverlens
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID returned by the corresponding creation tool for this account."
        },
        "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A new random 64-character lowercase hexadecimal idempotency identifier. Reuse it only when retrying the same operation."
        }
    },
    "required": [
        "id",
        "request_id"
    ],
    "additionalProperties": false
}

限制、重试与密钥期限

  • 套餐定义每分钟、每天、每月、并发及各服务限制,所有密钥和 MCP 连接共享。
  • 收到 429 后请退避,并遵守 Retry-After。
  • 中断后使用原始 request_id 和相同输入重试。
  • 轮询时应保持间隔;超时或服务不可用不代表检查通过。
  • 即将过期的密钥会收到通知;永不过期的密钥在撤销前持续有效。

清晰处理错误

状态处理方法
401提供有效且处于活动状态的密钥。
403检查密钥权限与付费诊断访问。
404检查资源 ID、所有权或服务名称。
409使用相同输入重试原始请求标识。
410报告已过期,请发起新检查。
422修正响应中指出的无效字段。
429等待相关请求或使用额度重置。
503服务暂时不可用,请使用同一标识重试。

集成需要帮助?

请提供端点、响应状态与请求时间,不要包含密钥或私密邮件内容。

联系我们

选择浏览器可以记住的内容,以及是否允许 Google Analytics 衡量网站使用情况。广告存储与个性化保持关闭。

如果浏览器支持存储,你的选择会保留在此浏览器中。拒绝偏好设置会删除已保存的主题,但仍可在当前页面切换外观。你可以随时撤回分析同意。