コレクションの作成
登録者をグループ化するための名前付きコレクションを作成します。
menu_bookAPI リファレンス: コレクションの作成expand_more
公式ドキュメント: docs.verifik.co/resources/create-a-collection
Base URL https://api.verifik.co. Send a JSON body with a display name and an optional description.
POST /v2/face-recognition/collections
Verifik ベースのデータベースでの検索と検証のために登録者をグループ化するための名前付きコレクションを作成します。
| ヘッダ | 価値 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
| パラメータ | 要求 | 説明 |
|---|---|---|
| 名前 | はい | コレクションの表示名 |
| 説明 | いいえ | オプションの説明 |
await fetch("https://api.verifik.co/v2/face-recognition/collections", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${accessToken}`,
},
body: JSON.stringify({
name: "My collection",
description: "Optional notes",
}),
});// 200 OK — example shape
{
"data": {
"_id": "…",
"code": "…",
"name": "My collection",
"description": "Optional notes",
"client": "…",
"createdAt": "…",
"updatedAt": "…",
"__v": 0
}
}- このデモでは、セッション トークンを使用して @humanauthn/api-client からの createCollection を使用します。
- 一部の環境では、応答に ID または署名ブロックが添付される場合があります。上の図形はコア データ ペイロードを示しています。
menu_book
関連ドキュメント
docs.verifik.co の公式ガイド