컬렉션 만들기

컬렉션 만들기

등록된 사람을 그룹화하기 위해 명명된 컬렉션을 만듭니다.

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 공식 가이드