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-Type | application/json | 요청 페이로드 형식. |
Authorization | Bearer <VERIFIK_JWT> | 클라이언트 범위 JWT (authUser.clientId). |
경로 매개변수
| 이름 | 타입 | 필수 | 설명 |
|---|---|---|---|
id | string | 예 | SmartBatch ObjectId. |
쿼리 매개변수
| 이름 | 타입 | 필수 | 설명 |
|---|---|---|---|
select | string | 아니요 | 필드 프로젝션 표현식(예: 행 페이로드를 제외하려면 "-rows"). |
columns | string | 아니요 | 반환된 문서에 포함할 필드의 하위 집합. |
populates[] | string[] | 아니요 | 채울 관련 문서: "batchConfiguration" 및/또는 "client". |
요청
- Node.js
- PHP
- Python
- Go
- cURL
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();
<?php
$batchId = "6801a2b3c4d5e6f7a8b9c0d3";
$query = "populates%5B%5D=batchConfiguration&populates%5B%5D=client";
$ch = curl_init("https://api.verifik.co/v2/smart-batches/" . $batchId . "?" . $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
batch_id = "6801a2b3c4d5e6f7a8b9c0d3"
url = f"https://api.verifik.co/v2/smart-batches/{batch_id}"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
params = [
("populates[]", "batchConfiguration"),
("populates[]", "client"),
]
response = requests.get(url, params=params, headers=headers)
print(response.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
batchID := "6801a2b3c4d5e6f7a8b9c0d3"
params := url.Values{}
params.Add("populates[]", "batchConfiguration")
params.Add("populates[]", "client")
req, _ := http.NewRequest("GET", "https://api.verifik.co/v2/smart-batches/"+batchID+"?"+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-batches/6801a2b3c4d5e6f7a8b9c0d3?populates%5B%5D=batchConfiguration&populates%5B%5D=client" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
응답
- 200 OK
- 200 OK (찾을 수 없음)
- 401
- 403
- 409
- 422
{
"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"
}
}
{
"data": null
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "Shared x402 execution is forbidden on this endpoint",
"code": "Forbidden"
}
{
"message": "\"id\" is required",
"code": "MissingParameter"
}
{
"message": "UnprocessableEntity",
"code": "UnprocessableEntity"
}
참고
- 배치를 읽을 때 외부
smartbatchrows단계 결과가 자동으로rows[].results에 병합됩니다. healIncompleteRows()는 활성화된batchConfiguration단계를 기준으로 각completed행을 검사하여, 단계 출력이나 오류가 누락된 행을 다시pending상태로 되돌립니다.- 빈번한 상태 폴링을 위해서는 전체 행 페이로드를 반복해서 가져오지 않도록 Smart Batch 진행률 조회를 사용하는 것이 좋습니다.