Clone a report preset
Clone a curated system Smart Report preset into your client account. The operation returns both a BatchConfiguration and a linked SmartReportTemplate, ready to run immediately or customize further.
This endpoint is idempotent for client accounts. If an active client template cloned from {systemKey} already exists, the server reuses that configuration and template (remapping step sequences if needed) and returns reused: true. Otherwise, it creates a new BatchConfiguration (with inputFormat: "csv", outputFormat: "csv", mergeStrategy: "sequential") and a new client SmartReportTemplate (clonedFromSystemKey set to {systemKey}) linked via preferredReportTemplate with reused: false. This endpoint is also exposed as the smart_report_clone_preset MCP tool.
Endpoint
POST https://api.verifik.co/v2/smart-batch-presets/{systemKey}/clone
Also reachable via the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batch-presets/{systemKey}/clone using your own per-client Authorization: Bearer <VERIFIK_JWT> header. Shared x402 execution is blocked with 403 Forbidden.
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
The token must be a client JWT. Missing or invalid credentials return 401 Unauthorized.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
systemKey | string | Yes | Preset key from List report presets. Trimmed, max 120 characters, must match /^[a-z0-9][a-z0-9._-]{1,118}$/i. |
Body
No request body is required for this endpoint.
Request
- 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"
Response
- 200 created
- 200 reused
- 401
- 403
- 404
- 409
- 409 no steps
- 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"
}
Notes
- Cloning a preset does not run lookups and does not spend credits.
- Calling this endpoint repeatedly with the same
{systemKey}is safe and idempotent for a client account: the existing cloned configuration and template are returned withreused: true. 409 MissingParameteris returned when{systemKey}fails Joi path validation (for example, exceeding120characters or containing unsupported characters).409withpreset_has_no_stepsis returned if the matched preset has no steps configured.500 InternalServerErrorcan occur if a required preset feature is unavailable in your account.- Once cloned, call Retrieve configuration input schema with
batchConfiguration._idbefore submitting rows, or use thesmart_report_clone_presetMCP tool.