Skip to main content

列出 Smart Batch

列出属于已认证客户账户的 SmartBatch 记录。结果默认按最新创建时间降序排列(-createdAt),并且除非显式传入 includeRows=true,否则不会包含 rows 数组,以保持列表响应精简紧凑。

发送 page 可启用包含 total、limit、page 和 pages 元数据的分页输出。若省略 page,则会收到不包含分页字段的 { data } 批次数组响应。列出批次不会执行核验,也不会消耗积分。

接口​

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

也可以通过 Smart-Agent 代理 https://ai.verifik.co/v2/smart-batches 访问,并使用你自己的客户专属 Authorization: Bearer <VERIFIK_JWT>。共享 x402 执行会被拒绝并返回 403 Forbidden。

请求头​

名称值描述
Content-Typeapplication/json请求载荷格式。
AuthorizationBearer <VERIFIK_JWT>客户作用域的 JWT(authUser.clientId)。

参数​

名称类型必填描述
batchConfigurationstring否按 BatchConfiguration ObjectId 筛选批次。
statusstring否按批次状态筛选:"draft"、"pending"、"processing"、"paused"、"completed"、"failed" 或 "cancelled"。
pagenumber否页码(>= 1)。启用分页并在响应中添加 total、limit、page 和 pages。
limitnumber否每次响应的最大条目数(1 到 200)。
perPagenumber否当设置了 page 时的每页大小(1 到 200)。默认为 20。
includeRowsboolean否设为 true 时,在每个返回的批次中包含 rows。省略或设为 false 时将排除 rows。
searchstring否对批次 name 执行不区分大小写的正则搜索。
sortstring否排序字段与方向。默认为 "-createdAt"。
sortBystring否与 sortOrder 配对使用的排序字段名。
sortOrderstring否sortBy 的排序方向:"asc" 或 "desc"。

未知的查询参数将被 Joi 校验拒绝,并返回 409 MissingParameter。

请求示例​

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();

响应示例​

{
"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
}

注意事项​

  • 结果仅限于已认证客户(JWT 中的 clientId)作用域。
  • 省略 includeRows 或将其设为 false 可保持列表响应轻量;如需获取单个批次的完整 rows,请调用查询 Smart Batch。
  • 无效的查询值或未知的查询键将无法通过 Joi 校验,并返回 409 MissingParameter。
  • 当提供 page(>= 1)时,perPage 默认为 20,支持 1 至 200。

相关文档​