Skip to main content

Retrieve a report template

Retrieve a single Smart Report template by its ObjectId ({id}). This returns the full template specification, including sections, reportTheme, sampleData, page layout settings, and populated batchConfiguration and client references.

In headless and AI workflows, use this endpoint to load the current sections array before calling Generate template layout in append or edit mode, to fetch stored sampleData for Preview template HTML, or to inspect a template prior to running a PUT update. For security and payload size efficiency, security.password and thumbnail.image are deselected on this endpoint.

Endpoint​

GET 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: "GET",
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

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

run();

Response​

{
"data": {
"_id": "67c1f94b2d8a1c0012a4b301",
"name": "Colombia Driver Onboarding Report",
"description": "Themed driver verification report for fleet onboarding",
"client": {
"_id": "507f1f77bcf86cd799439013",
"name": "Acme Mobility"
},
"batchConfiguration": {
"_id": "67c1f8102d8a1c0012a4b210",
"name": "Colombia Driver Onboarding"
},
"country": "CO",
"category": "citizen",
"isActive": true,
"pageSize": "A4",
"layoutVersion": 2,
"orientation": "portrait",
"margins": {
"top": 40,
"right": 40,
"bottom": 40,
"left": 40
},
"pdfEngine": "puppeteer",
"primaryColor": "#4F46E5",
"identityColor": "#111827",
"pageBackgroundColor": "#ffffff",
"reportTheme": {
"id": "light_cards",
"scoreEnabled": true,
"scoreProfile": "cabify_driver",
"scoreScale": "percent"
},
"sections": [
{
"id": "sec-header",
"type": "header",
"order": 0,
"label": "Driver Verification Report"
}
],
"createdAt": "2026-09-10T03:32:00.000Z",
"updatedAt": "2026-09-10T03:35:12.000Z"
}
}

Notes​

  • When the template does not exist or belongs to another client, this endpoint returns HTTP 200 with { "data": null } rather than 404.
  • security.password and thumbnail.image are excluded from the returned document. To render or inspect the template thumbnail, use List report templates.