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.
| Header | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
| Param | Req | Description |
|---|---|---|
| name | Yes | Collection display name |
| description | No | Optional 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
createCollectionfrom@humanauthn/api-clientwith your session token. - Some environments may attach an
idorsignatureblock on responses; the shape above shows the coredatapayload.
menu_book
Related documentation
Official guides on docs.verifik.co
Object
The Collection Object
Fields and structure of a face recognition collection.
GET
List All Collections
All collections for the authenticated client.
GET
Retrieve a Collection
A single collection by id.
PUT
Update a Collection
Name, description, optional project or people list.
DELETE
Delete a Collection
Remove a collection by id and clean up linked data.