Skip to main content

Eliminar un Smart Batch

Elimina un SmartBatch propiedad del cliente autenticado. Si el lote existe y pertenece a tu cuenta de cliente, el servidor lo elimina y devuelve el documento SmartBatch eliminado en data.

Si el ID del lote no existe o pertenece a otro cliente, el endpoint devuelve 404 (not_found). Eliminar un lote no reembolsa los créditos consumidos previamente.

Endpoint​

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

Este endpoint también es accesible a través del proxy de Smart-Agent en https://ai.verifik.co/v2/smart-batches/{id} usando tu propio encabezado Authorization: Bearer <VERIFIK_JWT> por cliente. La ejecución compartida x402 está bloqueada con 403 Forbidden.

Encabezados​

NombreValorDescripción
Content-Typeapplication/jsonFormato de carga útil de la solicitud.
AuthorizationBearer <VERIFIK_JWT>JWT delimitado al cliente (authUser.clientId).

Parámetros​

NombreTipoRequeridoDescripción
idstringSíObjectId de SmartBatch a eliminar.

Solicitud​

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();

Respuesta​

{
"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"
}
}

Notas​

  • Para detener un lote activo conservando su historial de filas y resultados, usa Cancelar un Smart Batch en lugar de eliminarlo.
  • Los lotes pertenecientes a otra cuenta de cliente devuelven 404 (not_found).

Relacionado​