보고서 프리셋 복제
선별된 시스템 Smart Report 프리셋을 클라이언트 계정으로 복제합니다. 이 작업은 즉시 실행하거나 추가로 사용자 지정할 수 있는 BatchConfiguration과 연결된 SmartReportTemplate을 모두 반환합니다.
이 엔드포인트는 클라이언트 계정에 대해 **멱등성(idempotent)**을 가집니다. {systemKey}에서 복제된 활성 클라이언트 템플릿이 이미 존재하면 서버는 해당 구성과 템플릿을 재사용하고(필요한 경우 단계 순서를 다시 매핑) reused: true를 반환합니다. 그렇지 않으면 새 BatchConfiguration(inputFormat: "csv", outputFormat: "csv", mergeStrategy: "sequential")과 preferredReportTemplate로 연결된 새 클라이언트 SmartReportTemplate(clonedFromSystemKey가 {systemKey}로 설정됨)을 생성하고 reused: false를 반환합니다. 이 엔드포인트는 smart_report_clone_preset MCP 도구로도 노출됩니다.
엔드포인트
POST https://api.verifik.co/v2/smart-batch-presets/{systemKey}/clone
클라이언트별 Authorization: Bearer <VERIFIK_JWT> 헤더를 사용하여 Smart-Agent 프록시(https://ai.verifik.co/v2/smart-batch-presets/{systemKey}/clone)에서도 호출할 수 있습니다. 공유 x402 실행은 403 Forbidden으로 차단됩니다.
헤더
| 이름 | 값 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
토큰은 클라이언트 JWT여야 합니다. 자격 증명이 누락되었거나 유효하지 않으면 401 Unauthorized가 반환됩니다.
매개변수
| 이름 | 타입 | 필수 | 설명 |
|---|---|---|---|
systemKey | string | 예 | 보고서 프리셋 목록의 프리셋 키. 앞뒤 공백이 제거되며 최대 120자이고 /^[a-z0-9][a-z0-9._-]{1,118}$/i 패턴과 일치해야 합니다. |
본문
이 엔드포인트에는 요청 본문이 필요하지 않습니다.
요청
- Node.js
- PHP
- Python
- Go
- cURL
const fetch = require("node-fetch");
async function run() {
const systemKey = "co.citizen.essential";
const res = await fetch(`https://api.verifik.co/v2/smart-batch-presets/${encodeURIComponent(systemKey)}/clone`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});
console.log(await res.json());
}
run();
<?php
$systemKey = "co.citizen.essential";
$ch = curl_init("https://api.verifik.co/v2/smart-batch-presets/" . rawurlencode($systemKey) . "/clone");
curl_setopt($ch, CURLOPT_POST, true);
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
system_key = "co.citizen.essential"
url = f"https://api.verifik.co/v2/smart-batch-presets/{system_key}/clone"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
r = requests.post(url, headers=headers)
print(r.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
systemKey := "co.citizen.essential"
endpoint := fmt.Sprintf("https://api.verifik.co/v2/smart-batch-presets/%s/clone", url.PathEscape(systemKey))
req, _ := http.NewRequest("POST", endpoint, 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 -sS -X POST "https://api.verifik.co/v2/smart-batch-presets/co.citizen.essential/clone" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
응답
- 200 생성됨
- 200 재사용됨
- 401
- 403
- 404
- 409
- 409 (단계 없음)
- 500
{
"data": {
"batchConfiguration": {
"_id": "67d1b4a0e4f5a60718293b12",
"name": "Colombia Citizen Essential",
"description": "Core Colombian identity and registry verification for citizens.",
"country": "CO",
"executor": "browser",
"inputFormat": "csv",
"outputFormat": "csv",
"mergeStrategy": "sequential",
"preferredReportTemplate": "67d1b4a1e4f5a60718293b15",
"isActive": true,
"steps": [
{
"_id": "67d1b4a0e4f5a60718293b13",
"appFeature": {
"_id": "65f0a1b2c3d4e5f607182901",
"name": "Colombian Cédula Validation",
"code": "co-cedula",
"price": 0.05
},
"sequence": 1,
"enabled": true,
"parameterDefaults": {},
"queryMode": "byDocument",
"inputFieldMapping": {},
"outputFieldsToKeep": [],
"maxRetries": 3,
"retryDelayBaseSeconds": 4,
"timeoutSeconds": 30
}
],
"createdAt": "2026-10-15T14:20:00.000Z",
"updatedAt": "2026-10-15T14:20:00.000Z"
},
"template": {
"_id": "67d1b4a1e4f5a60718293b15",
"name": "Colombia Citizen Essential",
"clonedFromSystemKey": "co.citizen.essential",
"batchConfiguration": "67d1b4a0e4f5a60718293b12",
"isActive": true,
"createdAt": "2026-10-15T14:20:00.000Z",
"updatedAt": "2026-10-15T14:20:00.000Z"
},
"reused": false
}
}
{
"data": {
"batchConfiguration": {
"_id": "67d1b4a0e4f5a60718293b12",
"name": "Colombia Citizen Essential",
"country": "CO",
"executor": "browser",
"inputFormat": "csv",
"outputFormat": "csv",
"mergeStrategy": "sequential",
"preferredReportTemplate": "67d1b4a1e4f5a60718293b15",
"isActive": true,
"steps": []
},
"template": {
"_id": "67d1b4a1e4f5a60718293b15",
"name": "Colombia Citizen Essential",
"clonedFromSystemKey": "co.citizen.essential",
"batchConfiguration": "67d1b4a0e4f5a60718293b12",
"isActive": true
},
"reused": true
}
}
{
"message": "unauthorized",
"code": "Unauthorized"
}
{
"message": "Access forbidden",
"code": "Forbidden"
}
{
"message": "preset_not_found",
"code": "NotFound"
}
{
"message": "\"systemKey\" with value \"bad!key\" fails to match the required pattern: /^[a-z0-9][a-z0-9._-]{1,118}$/i",
"code": "MissingParameter"
}
{
"message": "preset_has_no_steps",
"code": "Conflict"
}
{
"message": "Internal Server Error",
"code": "InternalServerError"
}
참고
- 프리셋을 복제해도 조회가 실행되지 않으며 크레딧이 소비되지 않습니다.
- 동일한
{systemKey}로 이 엔드포인트를 반복 호출하는 것은 클라이언트 계정에 대해 안전하고 멱등적입니다. 기존에 복제된 구성과 템플릿이reused: true와 함께 반환됩니다. {systemKey}가 Joi 경로 검증을 통과하지 못하면(예:120자를 초과하거나 지원되지 않는 문자를 포함한 경우)409 MissingParameter가 반환됩니다. 일치하는 프리셋에 구성된 단계가 없으면preset_has_no_steps와 함께409가 반환됩니다.- 계정에서 필요한 프리셋 기능을 사용할 수 없는 경우
500 InternalServerError가 발생할 수 있습니다. - 복제한 후에는 행을 제출하기 전에
batchConfiguration._id를 사용하여 구성 입력 스키마 조회를 호출하거나smart_report_clone_presetMCP 도구를 사용하세요.