For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

/collections

Creates a new collection. A collection must be created before images or specimens (faces) that reference it can be uploaded.

post
Authorizations
AuthorizationstringRequired

JWT signed with HS256 (shared secret auth_jwt_secret) and with a non-expired exp claim; if it includes nbf, it must be currently valid. Only applied if auth_enabled is true and auth_accept_authorization_header is true. The Bearer scheme is case-insensitive.

Body

Body for the POST request to create a collection

collectionIdstring · min: 1Required

An identifier that allows grouping different images or biometric templates in a common space. It can only contain ASCII letters (A-Z, a-z), digits (0-9), underscore (_) and hyphen (-); it cannot be empty and it is case-sensitive. The following are not allowed: spaces, dots, +, :, @, quotes, %, ~, /, or non-ASCII characters (ñ, accents, emoji...): the identifier is used as a path parameter and any other character prevents its use. It must correspond to a collection previously created with POST /collections.

Example: bank01_collection01Pattern: ^[A-Za-z0-9_-]+$
Responses
200

The created collection.

application/json

Data of the created collection

collectionIdstring · min: 1Optional

An identifier that allows grouping different images or biometric templates in a common space. It can only contain ASCII letters (A-Z, a-z), digits (0-9), underscore (_) and hyphen (-); it cannot be empty and it is case-sensitive. The following are not allowed: spaces, dots, +, :, @, quotes, %, ~, /, or non-ASCII characters (ñ, accents, emoji...): the identifier is used as a path parameter and any other character prevents its use. It must correspond to a collection previously created with POST /collections.

Example: bank01_collection01Pattern: ^[A-Za-z0-9_-]+$
post/collections
POST /collections HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "collectionId": "bank01_collection01"
}
{
  "collectionId": "bank01_collection01"
}

Last updated