Skip to main content

Get Smart Batch progress

Fetch a lightweight progress summary for a SmartBatch without transferring the entire rows array. The response includes row counters (totalRows, completedRows, failedRows, partialRows, pendingRows), execution timestamps, creditsSpent, and — when backed by a FeatureRunner run — nested run and ledger spend details.

Server-side FeatureRunner runs also emit a smart_batch_batch_completed webhook event (including runId and creditsSpent) upon completion when batchConfiguration.notification.webhookUrl is configured. Polling this endpoint does not spend credits.

Endpoint​

GET https://api.verifik.co/v2/smart-batches/{id}/progress

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

Request​

import axios from "axios";

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

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

console.log(data);
};

run();

Response​

{
"data": {
"batchId": "6801a2b3c4d5e6f7a8b9c0d3",
"status": "processing",
"serverSide": true,
"totalRows": 25,
"completedRows": 12,
"failedRows": 1,
"partialRows": 2,
"pendingRows": 10,
"startedAt": "2026-11-24T20:10:00.000Z",
"creditsSpent": 1.6,
"run": {
"id": "6801a2b3c4d5e6f7a8b9c0e1",
"status": "processing",
"mergeStrategy": "sequential",
"totalItems": 25,
"completedItems": 12,
"failedItems": 1,
"partialItems": 2,
"startedAt": "2026-11-24T20:10:00.500Z",
"completedAt": null
},
"spend": {
"credits": 1.6,
"calls": 28,
"billableCalls": 24
}
}
}

Notes​

  • run and spend are included when the batch has an associated FeatureRunner run (run is null if the referenced run record is not returned).
  • Server-side FeatureRunner runs emit the smart_batch_batch_completed webhook event (with runId and creditsSpent) when finished if batchConfiguration.notification.webhookUrl is set. See Smart Reports Webhooks.
  • Once the batch reaches a terminal status, use Retrieve a Smart Batch to inspect row-level results and errors.