スコアプロファイル一覧を取得する
Smart Report テンプレート(reportTheme.scoreProfile)に設定できる、または テンプレート HTML をプレビューする(scoreProfile)に渡せる、サポート済みのすべての検証スコアプロファイルを一覧取得します。
ヘッドレス設定 UI や AI エージェントのワークフローでは、スコアリングを有効にする前にこのエンドポイントに照会することで、アプリケーションが scoreProfile 識別子を動的に検証でき、HTML プレビューやレポートレンダリング時の 409(unknown_score_profile)エラーを回避できます。利用可能なプロファイルは、ドライバー、本人確認、法人、フリート、車両、融資、医療、生体認証のワークフローをカバーしています。
cabify_driverkyckybfleetvehicle_purchaseidentity_lookupbackground_checklendinghealthcare_professionalbiometrics
エンドポイント
GET https://api.verifik.co/v2/smart-report-templates/score-profiles
Smart-Agent プロキシ(https://ai.verifik.co)も同じ /v2/... パスを公開しており、お客様自身の Authorization: Bearer <VERIFIK_JWT> ヘッダーが必要です。
ヘッダー
| 名前 | 値 |
|---|---|
| Accept | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
パラメータ
クエリパラメータおよびパスパラメータは不要です。
リクエスト
- 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/score-profiles",
{
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/score-profiles");
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/score-profiles"
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
r = requests.get(url, headers=headers)
print(r.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.verifik.co/v2/smart-report-templates/score-profiles", 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/score-profiles" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
レスポンス
- 200
- 401
{
"data": [
{ "id": "cabify_driver", "name": "Cabify Driver" },
{ "id": "kyc", "name": "KYC" },
{ "id": "kyb", "name": "KYB" },
{ "id": "fleet", "name": "Fleet" },
{ "id": "vehicle_purchase", "name": "Vehicle Purchase" },
{ "id": "identity_lookup", "name": "Identity Lookup" },
{ "id": "background_check", "name": "Background Check" },
{ "id": "lending", "name": "Lending" },
{ "id": "healthcare_professional", "name": "Healthcare Professional" },
{ "id": "biometrics", "name": "Biometrics" }
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
注記
- テンプレートの作成または更新時には返却された
id値をreportTheme.scoreProfileに指定し、テンプレート HTML をプレビューする ではscoreProfileとして指定してください。 - 認識されない
scoreProfileをPOST /v2/smart-report-templates/preview-htmlに送信すると409(unknown_score_profile)が返ります。