Skip to main content

Smart Report を取得する

ID を指定して単一の SmartReport を取得します。レスポンスでは template、smartBatch、および client が展開(populate)され、すぐに使用できる downloadUrl(/v2/smart-reports/{id}/download)および htmlUrl(/v2/smart-reports/{id}/html)パスが付与されます。

このエンドポイントは、POST /v2/smart-reports/run が "async" モードで実行された場合や 90 秒の同期期限を超過して 202 Accepted にフォールバックした際に返されるポーリング先(pollUrl)でもあります。レポート ID が存在しない、または別のクライアントに属している場合、このエンドポイントは { "data": null } とともに HTTP 200 OK を返します。

エンドポイント​

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"
}
}

Webhook と MCP 統合​

  • ポーリングと Webhook の使い分け: 非同期実行の場合、data.status が確定("generated"、"sent"、または "failed")するまで GET /v2/smart-reports/{id} をポーリングするか、Webhook イベント(smart_batch_report_generated、smart_batch_report_generation_failed、smart_batch_report_sent、smart_batch_report_delivery_failed)を購読できます。詳細は SmartReports Webhook を参照してください。
  • MCP 相当ツール: AI エージェントは smart_report_get MCP ツールを使用してレポートレコードを取得できます。詳細は MCP と AI エージェント を参照してください。

注記​

  • レポートが存在しない場合や別のクライアントに属している場合は、404 ではなく { "data": null } とともに 200 OK が返されます。
  • downloadUrl および htmlUrl は、https://api.verifik.co(または https://ai.verifik.co)に連結してそのまま利用できる相対 API パスです。

関連項目​