Skip to main content

Smart Batch 삭제

인증된 클라이언트가 소유한 SmartBatch를 삭제합니다. 배치가 존재하고 클라이언트 계정에 속해 있는 경우 서버는 배치를 삭제하고 data에 제거된 SmartBatch 문서를 반환합니다.

배치 ID가 존재하지 않거나 다른 클라이언트에 속한 경우 엔드포인트는 404 (not_found)를 반환합니다. 배치를 삭제해도 이전에 사용한 크레딧은 환불되지 않습니다.

엔드포인트​

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

클라이언트별 Authorization: Bearer <VERIFIK_JWT>를 사용하여 Smart-Agent 프록시(https://ai.verifik.co/v2/smart-batches/{id})를 통해서도 호출할 수 있습니다. 공유 x402 실행은 403 Forbidden으로 차단됩니다.

헤더​

이름값설명
Content-Typeapplication/json요청 페이로드 형식.
AuthorizationBearer <VERIFIK_JWT>클라이언트 범위 JWT (authUser.clientId).

매개변수​

이름타입필수설명
idstring예삭제할 SmartBatch ObjectId.

요청​

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

응답​

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

참고​

  • 기록된 행과 출력을 유지하면서 활성 배치를 중지하려면 삭제 대신 Smart Batch 취소를 사용하세요.
  • 다른 클라이언트 계정에 속한 배치는 404 (not_found)를 반환합니다.

관련​