Skip to main content

Get configuration batch stats

Retrieve aggregate execution statistics across all SmartBatch records belonging to a specific BatchConfiguration on the authenticated client account. The response returns batch counts, row completion totals, and a per-status breakdown across "draft", "pending", "processing", "completed", "failed", and "cancelled".

Reading configuration stats does not run checks and does not spend credits.

Endpoint​

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

This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batches/stats/{configId} 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
configIdstringYesBatchConfiguration ObjectId to aggregate batch statistics for.

Request​

import axios from "axios";

const run = async () => {
const configId = "6801a2b3c4d5e6f7a8b9c0d4";

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

console.log(data);
};

run();

Response​

{
"data": {
"totalBatches": 4,
"totalRows": 120,
"completedRows": 95,
"failedRows": 5,
"partialRows": 4,
"pendingRows": 16,
"statusBreakdown": {
"draft": 0,
"pending": 1,
"processing": 1,
"completed": 2,
"failed": 0,
"cancelled": 0
}
}
}

Notes​

  • Statistics are scoped to the authenticated client (clientId on your JWT).
  • pendingRows is calculated as totalRows - completedRows - failedRows - partialRows.
  • To inspect individual batches belonging to this configuration, pass batchConfiguration to List Smart Batches.