Create Collection

Create Collection

Create a named collection to group enrolled persons.

menu_bookAPI reference: Create Collectionexpand_more

Official docs: 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

Creates a named collection to group enrolled persons for search and verification in your OpenCV-backed database.

HeaderValue
Content-Typeapplication/json
AuthorizationBearer <token>
ParamReqDescription
nameYesCollection display name
descriptionNoOptional description
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
  }
}
  • This demo uses createCollection from @humanauthn/api-client with your session token.
  • Some environments may attach an id or signature block on responses; the shape above shows the core data payload.
menu_book

Official guides on docs.verifik.co