Skip to main content

列出报告预设

列出你当前账户可用的精选系统 Smart Report 预设。每个预设都包含 systemKey、元数据(country、category、tier)、账户可用性(available)、有序的 presetSteps,以及包含 exampleInput、可直接用于无头执行或 AI 智能体的已解析 inputSchema。

已解析的 inputSchema 会自动排除内部执行参数以及已通过 visitaFlow 链式依赖关系传入的步骤输入,仅保留调用方需要提供的字段。列出预设属于只读发现调用,不消耗积分。该接口同时作为 smart_report_list_presets MCP 工具暴露。

接口​

GET https://api.verifik.co/v2/smart-batch-presets

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

请求头​

名称值
Content-Typeapplication/json
AuthorizationBearer <VERIFIK_JWT>

令牌必须是客户 JWT。缺少凭证或凭证无效将返回 401 Unauthorized。

参数​

所有查询参数均为可选。你可以组合使用它们,按国家/地区、实体类别、级别或关键词筛选预设。

名称类型必填描述
countrystring否国家代码筛选。服务器会自动去除首尾空格并转为大写(例如 CO)。
categorystring否预设类别筛选。允许的值:citizen、company 或 vehicle。
tierstring否预设深度级别筛选。允许的值:essential 或 comprehensive。
searchstring否对 name、description 和 systemKey 执行不区分大小写的正则匹配。
textstring否search 的别名。

请求示例​

const fetch = require("node-fetch");

async function run() {
const params = new URLSearchParams({
country: "CO",
category: "citizen",
tier: "essential",
});

const res = await fetch(`https://api.verifik.co/v2/smart-batch-presets?${params.toString()}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});
console.log(await res.json());
}

run();

响应示例​

{
"data": [
{
"templateId": "67d1b2c3e4f5a60718293a01",
"systemKey": "co.citizen.essential",
"name": "Colombia Citizen Essential",
"description": "Core Colombian identity and registry verification for citizens.",
"country": "CO",
"category": "citizen",
"tier": "essential",
"stepCount": 2,
"available": true,
"presetSteps": [
{
"sequence": 1,
"appFeatureCode": "co-cedula",
"queryMode": "byDocument",
"featureName": "Colombian Cédula Validation"
},
{
"sequence": 2,
"appFeatureCode": "co-procuraduria",
"queryMode": "byDocument",
"featureName": "Colombian Procuraduría Check"
}
],
"inputSchema": {
"stepCount": 2,
"estimatedCreditsPerRow": 0.15,
"requiredFields": [
{
"field": "documentType",
"apiField": "documentType",
"type": "string",
"required": true,
"enum": ["CC", "CE"]
},
{
"field": "documentNumber",
"apiField": "documentNumber",
"type": "string",
"required": true
}
],
"optionalFields": [],
"jsonSchema": {
"type": "object",
"properties": {
"documentType": {
"type": "string",
"enum": ["CC", "CE"]
},
"documentNumber": {
"type": "string"
}
},
"required": ["documentType", "documentNumber"]
},
"exampleInput": {
"documentType": "CC",
"documentNumber": "123456789"
}
}
}
]
}

注意事项​

  • 在筛选之前,country 会被去除首尾空格并转为大写(例如 co 会匹配 CO)。
  • search 和 text 对 name、description 和 systemKey 执行相同的不区分大小写正则表达式匹配。
  • inputSchema.estimatedCreditsPerRow 用于估算该预设所有已启用步骤合计的每行积分消耗。
  • 当 available 为 true 时,表示 presetSteps 中的所有功能在当前环境下均已启用,可以直接通过克隆报告预设进行克隆。
  • 对于 AI 智能体集成,该接口对应于 smart_report_list_presets MCP 工具。

相关文档​