テーマスターター一覧を取得する
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 設定)のみを送信してください。