Smart Batch 목록
인증된 클라이언트 계정에 속한 SmartBatch 레코드 목록을 조회합니다. 결과는 기본적으로 최신순(-createdAt)으로 정렬되며, 목록 응답을 간결하게 유지하기 위해 includeRows=true를 명시적으로 전달하지 않는 한 rows 배열을 제외합니다.
total, limit, page, pages 메타데이터가 포함된 페이지네이션 출력을 활성화하려면 page를 전송하세요. 페이지네이션 필드 없이 일치하는 배치 배열을 포함한 { data }를 받으려면 page를 생략하세요. 배치를 나열해도 검사가 실행되지 않으며 크레딧이 소비되지 않습니다.
엔드포인트
GET https://api.verifik.co/v2/smart-batches
클라이언트별 Authorization: Bearer <VERIFIK_JWT>를 사용하여 Smart-Agent 프록시(https://ai.verifik.co/v2/smart-batches)를 통해서도 호출할 수 있습니다. 공유 x402 실행은 403 Forbidden으로 차단됩니다.
헤더
| 이름 | 값 | 설명 |
|---|---|---|
Content-Type | application/json | 요청 페이로드 형식. |
Authorization | Bearer <VERIFIK_JWT> | 클라이언트 범위 JWT (authUser.clientId). |
매개변수
| 이름 | 타입 | 필수 | 설명 |
|---|---|---|---|
batchConfiguration | string | 아니요 | BatchConfiguration ObjectId로 배치를 필터링합니다. |
status | string | 아니요 | 배치 상태로 필터링합니다: "draft", "pending", "processing", "paused", "completed", "failed" 또는 "cancelled". |
page | number | 아니요 | 페이지 번호 (>= 1). 페이지네이션을 활성화하고 응답에 total, limit, page, pages를 추가합니다. |
limit | number | 아니요 | 응답당 최대 항목 수 (1 ~ 200). |
perPage | number | 아니요 | page가 설정된 경우의 페이지 크기 (1 ~ 200). 기본값은 20입니다. |
includeRows | boolean | 아니요 | 반환되는 각 배치에 rows를 포함하려면 true로 설정합니다. 생략하거나 false인 경우 rows가 제외됩니다. |
search | string | 아니요 | 배치 name에 대한 대소문자 구분 없는 정규식 검색. |
sort | string | 아니요 | 정렬 필드 및 방향. 기본값은 "-createdAt"입니다. |
sortBy | string | 아니요 | sortOrder와 함께 사용할 때의 정렬 필드 이름. |
sortOrder | string | 아니요 | sortBy의 정렬 방향: "asc" 또는 "desc". |
알 수 없는 쿼리 매개변수는 Joi 검증에 의해 409 MissingParameter로 거부됩니다.
요청
- Node.js
- PHP
- Python
- Go
- cURL
import axios from "axios";
const run = async () => {
const { data } = await axios.get("https://api.verifik.co/v2/smart-batches", {
params: {
status: "processing",
page: 1,
perPage: 20,
search: "Colombia",
sort: "-createdAt",
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});
console.log(data);
};
run();
<?php
$query = http_build_query([
"status" => "processing",
"page" => 1,
"perPage" => 20,
"search" => "Colombia",
"sort" => "-createdAt",
]);
$ch = curl_init("https://api.verifik.co/v2/smart-batches?" . $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-batches"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
params = {
"status": "processing",
"page": 1,
"perPage": 20,
"search": "Colombia",
"sort": "-createdAt",
}
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("status", "processing")
params.Set("page", "1")
params.Set("perPage", "20")
params.Set("search", "Colombia")
params.Set("sort", "-createdAt")
req, _ := http.NewRequest("GET", "https://api.verifik.co/v2/smart-batches?"+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?status=processing&page=1&perPage=20&search=Colombia&sort=-createdAt" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
응답
- 200 OK (page 포함)
- 200 OK (page 미포함)
- 401
- 403
- 409
- 422
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": {
"_id": "6801a2b3c4d5e6f7a8b9c0d4",
"name": "Colombia Identity Check"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"name": "Colombia Onboarding — November",
"status": "processing",
"executor": "browser",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.4,
"totalRows": 25,
"completedRows": 10,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T19:50:00.000Z",
"createdAt": "2026-11-24T19:48:00.000Z",
"updatedAt": "2026-11-24T19:52:00.000Z"
}
],
"total": 1,
"limit": 20,
"page": 1,
"pages": 1
}
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": {
"_id": "6801a2b3c4d5e6f7a8b9c0d4",
"name": "Colombia Identity Check"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"name": "Colombia Onboarding — November",
"status": "processing",
"executor": "browser",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.4,
"totalRows": 25,
"completedRows": 10,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T19:50:00.000Z",
"createdAt": "2026-11-24T19:48:00.000Z",
"updatedAt": "2026-11-24T19:52:00.000Z"
}
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "Shared x402 execution is forbidden on this endpoint",
"code": "Forbidden"
}
{
"message": "\"status\" must be one of [draft, pending, processing, paused, completed, failed, cancelled]",
"code": "MissingParameter"
}
{
"message": "UnprocessableEntity",
"code": "UnprocessableEntity"
}
참고
- 결과는 인증된 클라이언트(JWT의
clientId) 범위로 제한됩니다. includeRows를 생략하거나false로 두면 목록 응답 크기를 작게 유지할 수 있습니다. 단일 배치의 전체rows를 가져오려면 Smart Batch 조회를 사용하세요.- 유효하지 않은 쿼리 값이나 알 수 없는 쿼리 키는 Joi 검증에 의해
409 MissingParameter로 실패합니다. page가 제공되면(>= 1),perPage의 기본값은20이며1부터200까지 지원합니다.