Skip to main content

Delete a report template

Delete a custom Smart Report template owned by the authenticated client. The deleted template document is returned in { "data": ... }.

In headless workflows and automated test pipelines, use this endpoint to clean up temporary templates or retire deprecated report designs. Built-in "System" templates cannot be deleted and return 403 (system_template_readonly). Deleting a template does not spend credits and does not remove previously generated SmartBatch reports.

Endpoint​

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

The Smart-Agent proxy (https://ai.verifik.co) exposes the same /v2/... paths and requires your own Authorization: Bearer <VERIFIK_JWT> header.

Headers​

NameValue
Acceptapplication/json
AuthorizationBearer <VERIFIK_JWT>

Parameters​

NameTypeRequiredDescription
idstringYesSmart Report template ObjectId.

Request​

const fetch = require("node-fetch");

async function run() {
const id = "67c1f94b2d8a1c0012a4b301";
const res = await fetch(
`https://api.verifik.co/v2/smart-report-templates/${id}`,
{
method: "DELETE",
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(await res.json());
}

run();

Response​

{
"data": {
"_id": "67c1f94b2d8a1c0012a4b301",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Driver Onboarding Report v2",
"country": "CO",
"category": "citizen",
"isActive": true
}
}

Notes​

  • Built-in "System" templates cannot be deleted (403 system_template_readonly).
  • Once deleted, subsequent GET, PUT, or DELETE requests targeting the same {id} return { "data": null } (on GET) or 404 not_found (on PUT/DELETE).