Skip to main content

리포트 템플릿 조회

ObjectId({id})로 단일 Smart Report 템플릿을 조회합니다. sections, reportTheme, sampleData, 페이지 레이아웃 설정 및 채워진(populate) batchConfiguration·client 참조를 포함한 전체 템플릿 사양을 반환합니다.

헤드리스 및 AI 워크플로에서는 append 또는 edit 모드로 템플릿 레이아웃 생성을 호출하기 전에 현재 sections 배열을 불러오거나, 템플릿 HTML 미리보기용으로 저장된 sampleData를 가져오거나, PUT 업데이트를 실행하기 전에 템플릿을 검사할 때 이 엔드포인트를 사용하세요. 보안 및 페이로드 크기 효율성을 위해 이 엔드포인트에서는 security.password와 thumbnail.image가 제외됩니다.

엔드포인트​

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

Smart-Agent 프록시(https://ai.verifik.co)도 동일한 /v2/... 경로를 제공하며 본인의 Authorization: Bearer <VERIFIK_JWT> 헤더가 필요합니다.

헤더​

이름값
Acceptapplication/json
AuthorizationBearer <VERIFIK_JWT>

매개변수​

이름타입필수설명
idstring예Smart Report 템플릿 ObjectId.

요청​

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

응답​

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

참고 사항​

  • 템플릿이 존재하지 않거나 다른 클라이언트에 속한 경우, 이 엔드포인트는 404 대신 { "data": null }과 함께 HTTP 200을 반환합니다.
  • security.password 및 thumbnail.image는 반환된 문서에서 제외됩니다. 템플릿 썸네일을 렌더링하거나 확인하려면 리포트 템플릿 목록 조회를 사용하세요.

관련 문서​