Skip to main content

Start a Smart Batch

Start execution on an existing SmartBatch. The batch must currently be in "draft", "pending", or "cancelled" status; any other status fails with 400 BadRequest (batch_not_in_startable_state).

Before starting, the server validates that every enabled step in the linked BatchConfiguration is granted to your client account (409 endpoints_not_in_account if any feature is missing), sets status: "processing" and startedAt, and returns the updated SmartBatch.

Endpoint​

POST https://api.verifik.co/v2/smart-batches/{id}/start

This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batches/{id}/start using your own per-client Authorization: Bearer <VERIFIK_JWT>. Shared x402 execution is blocked with 403 Forbidden.

Headers​

NameValueDescription
Content-Typeapplication/jsonRequest payload format.
AuthorizationBearer <VERIFIK_JWT>Client-scoped JWT (authUser.clientId).

Parameters​

NameTypeRequiredDescription
idstringYesSmartBatch ObjectId to start.

Request​

import axios from "axios";

const run = async () => {
const batchId = "6801a2b3c4d5e6f7a8b9c0d3";

const { data } = await axios.post(
`https://api.verifik.co/v2/smart-batches/${batchId}/start`,
{},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

Response​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — November",
"status": "processing",
"executor": "queue",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0,
"rows": [
{
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1032386359"
},
"status": "pending",
"results": {},
"errors": []
}
],
"totalRows": 1,
"completedRows": 0,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T20:10:00.000Z",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:10:00.000Z"
}
}

Notes​

  • Only batches in "draft", "pending", or "cancelled" status can be started; paused batches must use Resume a Smart Batch.
  • Restarting a "cancelled" batch clears completedAt and resets any "processing" rows back to "pending".
  • Check projected credit charges beforehand using Estimate Smart Batch cost and monitor execution with Get Smart Batch progress.