Skip to main content

Append rows to a Smart Batch

Append new input rows to an existing SmartBatch without overwriting existing rows or stored results. Both wrapped rows ({ rowIndex?, inputData }) and flat rows ({ rowIndex?, ...inputFields }) are accepted, and the server assigns sequential row indexes starting at maxExisting + 1.

Appending rows is forbidden while the batch is "processing" (400 batch_append_not_allowed_while_processing). If the batch was previously "completed" or "failed", appending rows resets status to "pending" and clears completedAt so the new rows can run.

Endpoint​

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

This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batches/{id}/rows/append 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 append rows to.

Body​

NameTypeRequiredDescription
rowsobject[]YesNon-empty array (min 1) of wrapped ({ rowIndex?, inputData }) or flat ({ rowIndex?, ...inputFields }) input rows. Server assigns sequential rowIndex = maxExisting + 1.

Unknown body keys or empty rows arrays are rejected by Joi validation with 409 MissingParameter.

Request​

import axios from "axios";

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

const { data } = await axios.post(
`https://api.verifik.co/v2/smart-batches/${batchId}/rows/append`,
{
rows: [
{
inputData: {
documentType: "CC",
documentNumber: "1020304050",
},
},
{
documentType: "CC",
documentNumber: "1098765432",
},
],
},
{
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": "pending",
"executor": "browser",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.04,
"rows": [
{
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1032386359"
},
"status": "completed",
"results": {
"1": {
"fullName": "JANE DOE"
}
},
"errors": []
},
{
"rowIndex": 1,
"inputData": {
"documentType": "CC",
"documentNumber": "1020304050"
},
"status": "pending",
"results": {},
"errors": []
},
{
"rowIndex": 2,
"inputData": {
"documentType": "CC",
"documentNumber": "1098765432"
},
"status": "pending",
"results": {},
"errors": []
}
],
"totalRows": 3,
"completedRows": 1,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:28:00.000Z"
}
}

Notes​

  • Appending rows does not run checks or spend credits; start the batch afterward with Start a Smart Batch.
  • Any client-provided rowIndex is ignored in favor of sequential server-assigned numbering starting at maxExisting + 1.
  • If the batch was "completed" or "failed", its status resets to "pending" and completedAt is cleared.