Skip to main content

Retrieve a Smart Batch

Retrieve a single SmartBatch document by ID for the authenticated client. Before returning the payload, the server merges any externally stored smartbatchrows outputs into rows[].results and runs healIncompleteRows() to reopen rows marked completed that are missing enabled configuration steps.

If the batch does not exist or belongs to a different client account, the endpoint returns 200 with { "data": null }. Reading a batch does not run checks or spend credits.

Endpoint​

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

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

Path Parameters​

NameTypeRequiredDescription
idstringYesSmartBatch ObjectId.

Query Parameters​

NameTypeRequiredDescription
selectstringNoField projection expression (for example "-rows" to exclude row payloads).
columnsstringNoSubset of fields to include on the returned document.
populates[]string[]NoRelated documents to populate: "batchConfiguration" and/or "client".

Request​

import axios from "axios";

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

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

console.log(data);
};

run();

Response​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": {
"_id": "6801a2b3c4d5e6f7a8b9c0d4",
"name": "Colombia Identity Check"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"name": "Colombia Onboarding — November",
"status": "completed",
"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",
"documentNumber": "1032386359"
}
},
"errors": [],
"creditsSpent": 0.04,
"attemptCount": 1,
"processedAt": "2026-11-24T20:01:00.000Z"
}
],
"totalRows": 1,
"completedRows": 1,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T20:00:00.000Z",
"completedAt": "2026-11-24T20:01:00.000Z",
"createdAt": "2026-11-24T19:58:00.000Z",
"updatedAt": "2026-11-24T20:01:00.000Z"
}
}

Notes​

  • External smartbatchrows step results are merged into rows[].results automatically when reading the batch.
  • healIncompleteRows() inspects each completed row against enabled batchConfiguration steps and reopens any row missing step output or errors back to pending.
  • For frequent status polling, prefer Get Smart Batch progress to avoid pulling full row payloads repeatedly.