Skip to main content

Retry failed Smart Batch rows

Re-enqueue rows in "failed" or "partial" status on a SmartBatch without affecting rows that already completed. Optionally pass rowIndexes to retry only a specific subset of rows; omit rowIndexes to retry every "failed" and "partial" row in the batch.

The request fails with 409 Conflict (batch_is_processing) if the batch is currently in "processing" status. Returning retried: 0 indicates no eligible failed or partial rows matched.

Endpoint​

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

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

Body​

NameTypeRequiredDescription
rowIndexesinteger[]NoSpecific 0-based row indexes (>= 0, maximum 10000 items) to retry. Omit to retry all "failed" and "partial" rows.

Unknown body keys 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}/retry-failed`,
{
rowIndexes: [2, 5],
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

Response​

{
"data": {
"batch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — November",
"status": "processing",
"executor": "featureRunner",
"source": "smart_batch",
"headlessRun": true,
"creditsSpent": 0.4,
"totalRows": 10,
"completedRows": 8,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:20:00.000Z"
},
"retried": 2
}
}

Notes​

  • Send {} (or omit rowIndexes) to retry all "failed" and "partial" rows at once.
  • When rowIndexes is supplied, rows in "completed" or "pending" status are ignored even if their index is included.
  • To re-run only specific step sequences on a single row while preserving results from other steps, use Retry Smart Batch row steps.