Smart Report 一覧を取得する
認証済みクライアントに属する SmartReport レコードを一覧取得します。結果には template、smartBatch、および client が展開(populate)され、smartBatch、template、externalRefId、createdByChannel によるフィルタリングと、任意のページネーションおよびソートが可能です。
page を渡すと、レスポンスにページネーションメタデータ(total、limit、page、pages)が含まれます。page を省略すると、ページネーションメタデータなしで一致したリストが { data: [...] } の形式で返されます。
エンドポイント
GET https://api.verifik.co/v2/smart-reports
このエンドポイントは、お客様自身のクライアント別 Authorization: Bearer <VERIFIK_JWT> を使用して Smart-Agent プロキシ経由の https://ai.verifik.co/v2/smart-reports からも利用できます。共有 x402 による実行は 403 Forbidden でブロックされます。
ヘッダー
| 名前 | 値 | 説明 |
|---|---|---|
Content-Type | application/json | リクエストペイロードの形式。 |
Authorization | Bearer <VERIFIK_JWT> | クライアント単位の JWT(authUser.clientId)。 |
パラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
smartBatch | string | いいえ | 特定の SmartBatch ObjectId に紐付くレポートでフィルタします。 |
template | string | いいえ | 特定のテンプレート ObjectId に紐付くレポートでフィルタします。 |
status | string | いいえ | 許可される値: "draft"、"pending"、"generating"、"generated"、"failed"、"sent"。将来の互換性のために Joi 検証で受け付けられますが、現在の一覧フィルタは smartBatch、template、externalRefId、createdByChannel に対して動作します。 |
externalRefId | string | いいえ | 外部の相関識別子でフィルタします。最大 200 文字。 |
createdByChannel | string | いいえ | 発生元チャネルでフィルタします: "portal"、"api"、"mcp"、"x402"、または "webhook"。 |
page | number | いいえ | 取得するページ番号。page を指定すると、total、limit、page、pages を含むページネーション付き出力が有効になります。 |
limit | number | いいえ | 1 ページあたりの最大アイテム数。page 指定時のデフォルトは 20 です。 |
sort | string | いいえ | ソートフィールドと方向。page 指定時のデフォルトは "-updatedAt" です。 |
フィルタリングとページネーションの注記
- 前方互換性のある
statusパラメータ: Joi はstatusを"draft"、"pending"、"generating"、"generated"、"failed"、"sent"に対して検証しますが、実際の一覧クエリは現在smartBatch、template、externalRefId、およびcreatedByChannelでフィルタリングを行います。 - 2 種類の
200レスポンス形式: ダッシュボードや同期ジョブでtotalやpagesが必要な場合はpageを送信し、よりシンプルな{ data: [...] }ペイロードを取得したい場合はpageを省略してください。
リクエスト
- Node.js
- PHP
- Python
- Go
- cURL
import axios from "axios";
const run = async () => {
const { data } = await axios.get("https://api.verifik.co/v2/smart-reports", {
params: {
createdByChannel: "api",
externalRefId: "applicant-42",
page: 1,
limit: 20,
sort: "-updatedAt",
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});
console.log(data);
};
run();
<?php
$query = http_build_query([
"createdByChannel" => "api",
"externalRefId" => "applicant-42",
"page" => 1,
"limit" => 20,
"sort" => "-updatedAt",
]);
$ch = curl_init("https://api.verifik.co/v2/smart-reports?" . $query);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import os
import requests
url = "https://api.verifik.co/v2/smart-reports"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
params = {
"createdByChannel": "api",
"externalRefId": "applicant-42",
"page": 1,
"limit": 20,
"sort": "-updatedAt",
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
params := url.Values{}
params.Set("createdByChannel", "api")
params.Set("externalRefId", "applicant-42")
params.Set("page", "1")
params.Set("limit", "20")
params.Set("sort", "-updatedAt")
req, _ := http.NewRequest("GET", "https://api.verifik.co/v2/smart-reports?"+params.Encode(), nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X GET "https://api.verifik.co/v2/smart-reports?createdByChannel=api&externalRefId=applicant-42&page=1&limit=20&sort=-updatedAt" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
レスポンス
- 200 OK(page 指定あり)
- 200 OK(page 指定なし)
- 401
- 403
- 409
- 422
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"name": "Background Check - Applicant 42",
"status": "generated",
"template": {
"_id": "6801a2b3c4d5e6f7a8b9c0d2"
},
"smartBatch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"externalRefId": "applicant-42",
"createdByChannel": "api",
"rowIndex": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
],
"total": 1,
"limit": 20,
"page": 1,
"pages": 1
}
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"name": "Background Check - Applicant 42",
"status": "generated",
"template": {
"_id": "6801a2b3c4d5e6f7a8b9c0d2"
},
"smartBatch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"externalRefId": "applicant-42",
"createdByChannel": "api",
"rowIndex": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "Shared x402 execution is forbidden on this endpoint",
"code": "Forbidden"
}
{
"message": "\"smartBatch\" must be a valid ObjectId",
"code": "MissingParameter"
}
{
"message": "UnprocessableEntity",
"code": "UnprocessableEntity"
}
注記
GET /v2/smart-reportsは返却される各SmartReportのtemplate、smartBatch、およびclientを展開(populate)します。- 無効なクエリパラメータ値は Joi 検証により
409 MissingParameterで失敗します。 - すぐに利用できる
downloadUrlおよびhtmlUrlフィールド付きで単一のレポートを取得するには、Smart Report を取得する を使用してください。 SmartBatchとSmartReportレコードを個別に管理せずに新しいレポートをエンドツーエンドで実行するには、Smart Report を実行する を使用してください。