Skip to main content

Smart Batch 조회

인증된 클라이언트에 대해 ID로 단일 SmartBatch 문서를 조회합니다. 페이로드를 반환하기 전에 서버는 외부에 저장된 smartbatchrows 출력을 rows[].results에 병합하고, healIncompleteRows()를 실행하여 활성화된 구성 단계가 누락된 채 completed로 표시된 행을 다시 엽니다.

배치가 존재하지 않거나 다른 클라이언트 계정에 속한 경우 엔드포인트는 { "data": null }과 함께 200을 반환합니다. 배치를 읽어도 검사가 실행되거나 크레딧이 소비되지 않습니다.

엔드포인트​

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

클라이언트별 Authorization: Bearer <VERIFIK_JWT>를 사용하여 Smart-Agent 프록시(https://ai.verifik.co/v2/smart-batches/{id})를 통해서도 호출할 수 있습니다. 공유 x402 실행은 403 Forbidden으로 차단됩니다.

헤더​

이름값설명
Content-Typeapplication/json요청 페이로드 형식.
AuthorizationBearer <VERIFIK_JWT>클라이언트 범위 JWT (authUser.clientId).

경로 매개변수​

이름타입필수설명
idstring예SmartBatch ObjectId.

쿼리 매개변수​

이름타입필수설명
selectstring아니요필드 프로젝션 표현식(예: 행 페이로드를 제외하려면 "-rows").
columnsstring아니요반환된 문서에 포함할 필드의 하위 집합.
populates[]string[]아니요채울 관련 문서: "batchConfiguration" 및/또는 "client".

요청​

import axios from "axios";

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

const { data } = await axios.get(`https://api.verifik.co/v2/smart-batches/${batchId}`, {
params: {
"populates[]": ["batchConfiguration", "client"],
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});

console.log(data);
};

run();

응답​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": {
"_id": "6801a2b3c4d5e6f7a8b9c0d4",
"name": "Colombia Identity Check"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"name": "Colombia Onboarding — November",
"status": "completed",
"executor": "browser",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.04,
"rows": [
{
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1032386359"
},
"status": "completed",
"results": {
"1": {
"fullName": "JANE DOE",
"documentNumber": "1032386359"
}
},
"errors": [],
"creditsSpent": 0.04,
"attemptCount": 1,
"processedAt": "2026-11-24T20:01:00.000Z"
}
],
"totalRows": 1,
"completedRows": 1,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T20:00:00.000Z",
"completedAt": "2026-11-24T20:01:00.000Z",
"createdAt": "2026-11-24T19:58:00.000Z",
"updatedAt": "2026-11-24T20:01:00.000Z"
}
}

참고​

  • 배치를 읽을 때 외부 smartbatchrows 단계 결과가 자동으로 rows[].results에 병합됩니다.
  • healIncompleteRows()는 활성화된 batchConfiguration 단계를 기준으로 각 completed 행을 검사하여, 단계 출력이나 오류가 누락된 행을 다시 pending 상태로 되돌립니다.
  • 빈번한 상태 폴링을 위해서는 전체 행 페이로드를 반복해서 가져오지 않도록 Smart Batch 진행률 조회를 사용하는 것이 좋습니다.

관련​