Skip to main content

Pause a Smart Batch

Pause an active SmartBatch (and any attached FeatureRunner run) without losing results already written for completed rows. Workers stop claiming remaining rows until you resume the batch.

Queue and browser batches must be in "processing" or "pending" status (400 batch_not_pausable otherwise). Batches backed by a FeatureRunner run require the run to be in "queued" or "processing" status (400 run_not_pausable otherwise). Pausing does not spend credits.

Endpoint​

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

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

Request​

import axios from "axios";

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

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

console.log(data);
};

run();

Response​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — November",
"status": "paused",
"executor": "queue",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.4,
"rows": [],
"totalRows": 25,
"completedRows": 10,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T20:10:00.000Z",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:14:00.000Z"
}
}

Notes​

  • To pause a batch programmatically, always use this endpoint rather than PUT /v2/smart-batches/{id} (which does not accept "paused").
  • A FeatureRunner-backed batch returns 400 BadRequest with run_not_pausable if its run is not in "queued" or "processing" status.
  • Continue execution later using Resume a Smart Batch, or terminate permanently with Cancel a Smart Batch.