Skip to main content

Retry Smart Batch row steps

Clear and re-queue only specific sequences on a single row (rowIndex) of a SmartBatch, leaving every other step's stored output and every other row untouched. Both rowIndex and sequences are required.

The server rejects the request with 409 Conflict if the batch, target row, underlying FeatureRunner run, or run item is currently processing (batch_is_processing, row_is_processing, run_is_processing, item_is_processing).

Endpoint​

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

This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batches/{id}/retry-steps 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
rowIndexintegerYes0-based index (>= 0) of the row to partially retry.
sequencesinteger[]YesStep sequence numbers (>= 0, minimum 1, maximum 200 items) to clear and re-execute on that row.

Unknown body keys or missing required fields 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-steps`,
{
rowIndex: 2,
sequences: [2, 3],
},
{
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": 9,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:22:00.000Z"
},
"retried": 2
}
}

Notes​

  • Stored results and errors are cleared only for the specified sequences on rowIndex; outcomes for all other step sequences remain intact.
  • Possible 409 Conflict reasons are batch_is_processing, row_is_processing, run_is_processing, and item_is_processing.
  • Passing invalid or empty step sequence references returns 400 BadRequest (retry_steps_invalid).
  • To retry entire failed or partial rows across the batch, use Retry failed Smart Batch rows.