コレクションの作成

コレクションの作成

登録者をグループ化するための名前付きコレクションを作成します。

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-Typeapplication/json
AuthorizationBearer <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 の公式ガイド