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 | 아니요 | 페이지당 최대 항목 수. page 설정 시 기본값은 20입니다. |
sort | string | 아니요 | 정렬 필드 및 방향. page 설정 시 기본값은 "-updatedAt"입니다. |
필터링 및 페이지네이션 참고 사항
- 하위/향후 호환
status매개변수: Joi는"draft","pending","generating","generated","failed","sent"에 대해status를 검증하지만, 기본 목록 쿼리는 현재smartBatch,template,externalRefId,createdByChannel을 기준으로 필터링합니다. - 두 가지
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) 반환합니다.- 유효하지 않은 쿼리 매개변수 값은
409 MissingParameter로 Joi 검증에 실패합니다. - 바로 사용할 수 있는
downloadUrl및htmlUrl필드가 포함된 단일 리포트를 조회하려면 Smart Report 조회를 사용하세요. SmartBatch와SmartReport레코드를 별도로 관리하지 않고 종단 간으로 새 리포트를 실행하려면 Smart Report 실행을 사용하세요.