Skip to main content

テーマスターター一覧を取得する

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> ヘッダーが必要です。

ヘッダー​

名前値
Acceptapplication/json
AuthorizationBearer <VERIFIK_JWT>

パラメータ​

名前型必須説明
themestringいいえ任意のテーマフィルタ: "premium_dark"、"light_cards"、"editorial"、"dashboard"、または "smart_enroll_v2"("light_cards" のエイリアス。正規名の "light_cards" の使用を推奨します)。

リクエスト​

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

レスポンス​

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

注記​

  • "smart_enroll_v2" は "light_cards" のエイリアスとして受け付けられますが、正規のテーマ ID である "light_cards" でフィルタすることを推奨します。
  • ここで返されるスターター項目は参照用に type: "System" を持ちます。レポートテンプレートを作成する 経由でカスタマイズしたコピーを保存する際は、name とデザインフィールド(sections、reportTheme、sampleData、カラー、および PDF 設定)のみを送信してください。

関連項目​