Skip to main content

Create a batch configuration

Create a custom BatchConfiguration on your authenticated client account. Define the target country, ordered verification steps referencing catalog AppFeature IDs, optional input/output formats, retry parameters, a visitaFlow visual graph, and completion notifications.

Creating a configuration does not execute any checks and does not consume credits. Note that this endpoint returns HTTP 200 (not 201) with the saved configuration in data. Schema validation is handled directly by Mongoose, so invalid or missing fields return 422 UnprocessableEntity.

Endpoint​

POST https://api.verifik.co/v2/batch-configurations

Also reachable via the Smart-Agent proxy at https://ai.verifik.co/v2/batch-configurations using your own per-client Authorization: Bearer <VERIFIK_JWT> header. Shared x402 execution is blocked with 403 Forbidden.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <VERIFIK_JWT>

The token must be a client JWT. Missing or invalid credentials return 401 Unauthorized.

Body​

NameTypeRequiredDescription
namestringYesDisplay name for the configuration. Trimmed, maximum 150 characters.
countrystringYesCountry scope for the configuration. Trimmed and uppercased by the server (for example, CO).
stepsobject[]YesOrdered array of verification step objects (see steps[] fields below).
descriptionstringNoOptional summary of the workflow. Maximum 800 characters.
executorstringNoExecution target: queue, featureRunner, or browser. Defaults to featureRunner (persisted as browser, while the headless runner executes via FeatureRunner).
inputFormatstringNoDefault input format: csv, jsonl, or xlsx. Defaults to csv.
outputFormatstringNoDefault output format: csv, jsonl, or xlsx. Defaults to csv.
mergeStrategystringNoStep execution strategy: sequential, parallel-independent, or parallel-with-fallback. Defaults to sequential.
notificationobjectNoCompletion notification settings (webhookUrl and emailOnCompletion). See notification fields below.
scheduleExpressionstringNoOptional schedule expression for automated runs.
preferredReportTemplatestringNoSmartReportTemplate ObjectId linked as the default report template for batches under this configuration.
visitaFlowobjectNoVisual node graph defining step chaining. Any {{results.N.field}} placeholders are excluded from manual inputs in the derived input schema.
isActivebooleanNoWhether the configuration is active. Defaults to true.

steps[] object fields​

NameTypeRequiredDescription
appFeaturestringYesAppFeature ObjectId to execute for this step.
sequencenumberYes1-based step execution order (>= 1).
enabledbooleanNoWhether this step runs during batch execution. Defaults to true.
parameterDefaultsobjectNoStatic parameter values or {{results.N.field}} expressions pinned to this step. Defaults to {}.
queryModestringNoOptional dependency group selector when the feature supports multiple lookup modes.
inputFieldMappingobjectNoMaps input column names to API parameter names (inputColumn -> apiParam). Defaults to {}.
outputFieldsToKeepstring[]NoSubset of output fields to retain in tabular results. Defaults to [].
maxRetriesnumberNoMaximum retry attempts on transient step failure (>= 0). Defaults to 3.
retryDelayBaseSecondsnumberNoBase backoff delay in seconds (>= 1). Defaults to 4.
timeoutSecondsnumberNoStep execution timeout in seconds (>= 5). Defaults to 30.

notification object fields​

NameTypeRequiredDescription
webhookUrlstringNoHTTPS endpoint to notify on batch completion. Supplying webhookUrl automatically syncs an active Verifik Webhook for your client.
emailOnCompletionstring[]NoList of recipient email addresses to notify when a batch finishes.

Request​

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

async function run() {
const res = await fetch("https://api.verifik.co/v2/batch-configurations", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
body: JSON.stringify({
name: "Colombia KYC Workflow",
description: "Validate citizen ID and run background checks",
country: "CO",
inputFormat: "csv",
outputFormat: "csv",
mergeStrategy: "sequential",
steps: [
{
appFeature: "65f0a1b2c3d4e5f607182901",
sequence: 1,
enabled: true,
parameterDefaults: {
documentType: "CC"
},
maxRetries: 3,
retryDelayBaseSeconds: 4,
timeoutSeconds: 30
}
],
notification: {
webhookUrl: "https://example.com/webhooks/smart-reports",
emailOnCompletion: ["ops@example.com"]
}
}),
});
console.log(await res.json());
}

run();

Response​

{
"data": {
"_id": "67d1c100e4f5a60718293c01",
"name": "Colombia KYC Workflow",
"description": "Validate citizen ID and run background checks",
"country": "CO",
"executor": "browser",
"inputFormat": "csv",
"outputFormat": "csv",
"mergeStrategy": "sequential",
"steps": [
{
"_id": "67d1c100e4f5a60718293c02",
"appFeature": "65f0a1b2c3d4e5f607182901",
"sequence": 1,
"enabled": true,
"parameterDefaults": {
"documentType": "CC"
},
"inputFieldMapping": {},
"outputFieldsToKeep": [],
"maxRetries": 3,
"retryDelayBaseSeconds": 4,
"timeoutSeconds": 30
}
],
"notification": {
"webhookUrl": "https://example.com/webhooks/smart-reports",
"emailOnCompletion": ["ops@example.com"]
},
"isActive": true,
"createdAt": "2026-10-15T15:00:00.000Z",
"updatedAt": "2026-10-15T15:00:00.000Z"
}
}

Notes​

  • Success returns HTTP 200 (not 201) with the created document in data.
  • This endpoint has no Joi middleware; Mongoose schema validation enforces required fields and numeric constraints, returning 422 UnprocessableEntity on failure.
  • When executor is "featureRunner" (the default), the server persists "browser" on the configuration document while the headless runner continues executing via FeatureRunner.
  • Setting notification.webhookUrl automatically creates or synchronizes an active Verifik Webhook for your client.
  • Next, call Retrieve configuration input schema to inspect the derived fields and exampleInput before running a report.