테마 스타터 목록 조회
Verifik의 기본 제공 테마 적용 스타터 템플릿을 조회하며, 선택적으로 theme별 필터링을 지원합니다. 각 스타터에는 사전 구성된 sections, reportTheme, sampleData, 페이지 레이아웃 속성 및 색상이 포함되어 있어 섹션 트리를 처음부터 조립하지 않고도 프로덕션 수준의 리포트 디자인을 빠르게 시작할 수 있습니다.
헤드리스 온보딩 흐름 및 AI 에이전트에서는 이 엔드포인트를 호출해 엄선된 시각적 시작점을 선택하고, 템플릿 HTML 미리보기로 즉시 미리보기를 확인한 뒤, 브랜드 색상이나 로고를 사용자 지정하여 리포트 템플릿 생성을 통해 편집 가능한 자체 템플릿으로 저장할 수 있습니다.
엔드포인트
GET https://api.verifik.co/v2/smart-report-templates/theme-starters
Smart-Agent 프록시(https://ai.verifik.co)도 동일한 /v2/... 경로를 제공하며 본인의 Authorization: Bearer <VERIFIK_JWT> 헤더가 필요합니다.
헤더
| 이름 | 값 |
|---|---|
| Accept | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
매개변수
| 이름 | 타입 | 필수 | 설명 |
|---|---|---|---|
theme | string | 아니요 | 선택적 테마 필터: "premium_dark", "light_cards", "editorial", "dashboard" 또는 "smart_enroll_v2"("light_cards"의 별칭이며, 표준 값인 "light_cards" 사용이 권장됩니다). |
요청
- Node.js
- PHP
- Python
- Go
- cURL
const fetch = require("node-fetch");
async function run() {
const res = await fetch(
"https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards",
{
method: "GET",
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);
console.log(await res.json());
}
run();
<?php
$ch = curl_init("https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Accept: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import os
import requests
url = "https://api.verifik.co/v2/smart-report-templates/theme-starters"
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
r = requests.get(url, headers=headers, params={"theme": "light_cards"})
print(r.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
url := "https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Accept", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X GET "https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
응답
- 200
- 401
- 409
{
"data": [
{
"name": "Light Cards KYC Starter",
"description": "Clean card-based background verification report with score gauge",
"type": "System",
"systemKey": "starter_light_cards_kyc",
"country": "CO",
"category": "citizen",
"tier": "comprehensive",
"pageSize": "A4",
"orientation": "portrait",
"pdfEngine": "puppeteer",
"primaryColor": "#4F46E5",
"pageBackgroundColor": "#ffffff",
"sections": [
{
"id": "sec-cover",
"type": "coverPage",
"order": 0,
"label": "Verification Summary"
},
{
"id": "sec-score",
"type": "scoreGauge",
"order": 1,
"label": "Verification Score"
}
],
"reportTheme": {
"id": "light_cards",
"scoreEnabled": true,
"scoreProfile": "kyc",
"scoreScale": "percent"
},
"sampleData": {
"batchName": "KYC Sample",
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1020304050"
},
"results": {}
}
}
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "\"theme\" must be one of [premium_dark, light_cards, editorial, dashboard, smart_enroll_v2]",
"code": "MissingParameter"
}
참고 사항
"smart_enroll_v2"는"light_cards"의 별칭으로 허용되지만, 표준 테마 ID인"light_cards"로 필터링하는 것이 권장됩니다.- 여기서 반환되는 스타터 항목에는 참조용으로
type: "System"이 포함됩니다. 리포트 템플릿 생성을 통해 사용자 지정 사본을 저장할 때는 본인의name과 디자인 필드(sections,reportTheme,sampleData, 색상 및 PDF 설정)만 전송하세요.