Skip to main content

Smart Batch 行レポートを取得する

SmartBatch の単一行(rowIndex)に対する構造化された行レポートモデルを構成します。このエンドポイントは、該当行に保存されたステップ出力に対して Verifik の組み込みレポートコンポーザー(colombia_vehicle)を実行し、score または scoreProfile が渡された場合には任意で verificationScore を付与します。

バッチの BatchConfiguration が組み込みコンポーザーに一致しない場合、このエンドポイントは 409 Conflict(no_report_composer_for_configuration)を返します。任意のカスタムレポートテンプレートについては、代わりに POST /v2/smart-reports/run、GET /v2/smart-reports/{id}/html、または /generate を使用してください。このエンドポイントを読み取ってもクレジットは消費されません。

エンドポイント​

GET https://api.verifik.co/v2/smart-batches/{id}/rows/{rowIndex}/report

このエンドポイントは、クライアント単位の Authorization: Bearer <VERIFIK_JWT> を使用することで Smart-Agent プロキシ(https://ai.verifik.co/v2/smart-batches/{id}/rows/{rowIndex}/report)経由でもアクセスできます。共有 x402 実行は 403 Forbidden でブロックされます。

ヘッダー​

名前値説明
Content-Typeapplication/jsonリクエストペイロード形式。
AuthorizationBearer <VERIFIK_JWT>クライアントスコープの JWT(authUser.clientId)。

パスパラメータ​

名前型必須説明
idstringはいSmartBatch の ObjectId。
rowIndexnumberはいバッチ内の行の 0 始まりインデックス。

クエリパラメータ​

名前型必須説明
scoreboolean または stringいいえtrue または "1" を渡すと、verificationScore を算出してレスポンスに含めます。
scoreProfilestringいいえスコアリングプロファイル識別子。scoreProfile を指定すると score も有効になります。

リクエスト​

import axios from "axios";

const run = async () => {
const batchId = "6801a2b3c4d5e6f7a8b9c0d3";
const rowIndex = 0;

const { data } = await axios.get(
`https://api.verifik.co/v2/smart-batches/${batchId}/rows/${rowIndex}/report`,
{
params: {
score: true,
scoreProfile: "fleet_standard",
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

レスポンス​

{
"data": {
"reportType": "colombia_vehicle",
"meta": {
"plate": "ABC123",
"documentType": "CC",
"documentNumber": "1032386359",
"vin": "9FB4SRAC2NM123456",
"batchName": "Colombia Fleet Inspection",
"rowIndex": 0,
"generatedAt": "2026-11-24T20:30:00.000Z"
},
"summary": {
"soatVigente": "VIGENTE",
"soatVencimiento": "2027-03-15",
"rtmVigente": "SI",
"rtmVencimiento": "2027-04-01",
"tieneGravamenes": "NO",
"blindado": "NO",
"pazSalvo": "SI",
"comparendoCount": 0,
"sinisterCount": 0
},
"blocks": {
"runt_vehicle_by_plate": {
"featureCode": "colombia_api_vehicle_complete_by_plate",
"title": "RUNT — Vehículo",
"status": "ok",
"sequence": 1,
"sections": [
{
"id": "identity",
"title": "Identificación",
"priority": "high"
}
],
"displayRows": [],
"tables": []
}
},
"blockOrder": [
"runt_vehicle_by_plate"
],
"verificationScore": {
"version": 1,
"profile": "fleet_standard",
"profileLabel": "Fleet Standard",
"score": 0.96,
"score100": 96,
"decision": "approve",
"band": "low_risk",
"coverage": 1,
"coveragePercent": 100
}
}
}

補足​

  • このエンドポイントは組み込みの構成行レポート(colombia_vehicle)のみを提供します。その他の設定では 409 Conflict(no_report_composer_for_configuration)が返されます。
  • 任意の設定でカスタムテンプレート、テーマ付き HTML レンダリング、または PDF ドシエを利用する場合は、POST /v2/smart-reports/run、GET /v2/smart-reports/{id}/html、または /generate を使用してください(Smart Report を実行するを参照)。
  • score=true、score=1、または scoreProfile を指定しない限り、verificationScore は省略されます。

関連​