Skip to main content

获取 Smart Report

按 ID 获取单个 SmartReport。响应会填充 template、smartBatch 与 client 引用,并附带可直接使用的 downloadUrl(/v2/smart-reports/{id}/download)和 htmlUrl(/v2/smart-reports/{id}/html)路径。

当 POST /v2/smart-reports/run 以 "async" 模式执行或超过 90 秒同步截止时间回退为 202 Accepted 时,此端点也是返回的轮询目标(pollUrl)。如果报告 ID 不存在或属于其他客户,该端点会返回 HTTP 200 OK 与 { "data": null }。

端点​

GET https://api.verifik.co/v2/smart-reports/{id}

使用你自己的每客户 Authorization: Bearer <VERIFIK_JWT>,也可通过 Smart-Agent 代理地址 https://ai.verifik.co/v2/smart-reports/{id} 访问此端点。共享 x402 执行会被拦截并返回 403 Forbidden。

请求头​

名称值说明
Content-Typeapplication/json请求体负载格式。
AuthorizationBearer <VERIFIK_JWT>客户作用域 JWT(authUser.clientId)。

参数​

名称类型必填说明
idstring是由 POST /v2/smart-reports/run、POST /v2/smart-reports 或 GET /v2/smart-reports 返回的 SmartReport ObjectId。

请求示例​

import axios from "axios";

const run = async () => {
const id = "6801a2b3c4d5e6f7a8b9c0d1";
const { data } = await axios.get(`https://api.verifik.co/v2/smart-reports/${id}`, {
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});

console.log(data);
};

run();

响应示例​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"name": "Background Check - Applicant 42",
"status": "generated",
"template": {
"_id": "6801a2b3c4d5e6f7a8b9c0d2"
},
"smartBatch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"pdfEngine": "puppeteer",
"pdfSize": 148320,
"generationDurationMs": 1840,
"generatedAt": "2026-11-24T20:00:04.000Z",
"externalRefId": "applicant-42",
"rowIndex": 0,
"createdByChannel": "api",
"downloadUrl": "/v2/smart-reports/6801a2b3c4d5e6f7a8b9c0d1/download",
"htmlUrl": "/v2/smart-reports/6801a2b3c4d5e6f7a8b9c0d1/html",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
}

Webhooks 与 MCP 集成​

  • 轮询与 Webhooks 对比:对于异步运行,你既可以轮询 GET /v2/smart-reports/{id} 直至 data.status 稳定("generated"、"sent" 或 "failed"),也可以订阅 Webhook 事件(smart_batch_report_generated、smart_batch_report_generation_failed、smart_batch_report_sent、smart_batch_report_delivery_failed)。详见 SmartReports Webhooks。
  • MCP 等效工具:AI 智能体可使用 smart_report_get MCP 工具获取报告记录。详见 MCP 与 AI 智能体。

注意事项​

  • 不存在或属于其他客户的报告会返回 200 OK 及 { "data": null },而不是 404。
  • downloadUrl 与 htmlUrl 是相对 API 路径,可直接拼接到 https://api.verifik.co(或 https://ai.verifik.co)后使用。

相关页面​