Skip to main content

Delete a Smart Batch

Delete a SmartBatch owned by the authenticated client. If the batch exists and belongs to your client account, the server deletes it and returns the removed SmartBatch document in data.

If the batch ID does not exist or belongs to another client, the endpoint returns 404 (not_found). Deleting a batch does not refund previously spent credits.

Endpoint​

DELETE 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).

Parameters​

NameTypeRequiredDescription
idstringYesSmartBatch ObjectId to delete.

Request​

import axios from "axios";

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

const { data } = await axios.delete(`https://api.verifik.co/v2/smart-batches/${batchId}`, {
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": "draft",
"executor": "browser",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0,
"rows": [],
"totalRows": 1,
"completedRows": 0,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T19:58:00.000Z",
"updatedAt": "2026-11-24T19:58:00.000Z"
}
}

Notes​

  • To stop an active batch while retaining its historical rows and outputs, use Cancel a Smart Batch instead of deleting it.
  • Batches belonging to another client account return 404 (not_found).