For the complete documentation index, see llms.txt. This page is also available as Markdown.

/faces

Retrieves all the specimens (faces) in the database that match the collectionId. The collectionId is mandatory and must correspond to an existing collection.

get
Autorizações
AuthorizationstringObrigatório

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.

Parâmetros de consulta
collectionIdstring · mín: 1Obrigatório

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_-]+$
Respostas
200

All the specimens (faces) stored in the database with the same collectionId.

application/json

Data fields of several specimens in the database

createAtstringOpcional

Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was created.

Example: 2024-11-20T15:39:32Z
descriptionstring · mín: 1Opcional

Description of the specimen (face) stored in the database.

Example: It's a description of the person
facialTemplateRawstringOpcional

An extended token that contains biometric templates and metadata. Storing it in databases is recommended because it remains valid across engine versions (it can be updated automatically if the extraction technology changes; see updatedTemplateRaw). Like the rest of the tokens, its value changes on every extraction (it carries a timestamp): two extractions of the same image do not give the same text, but they identify the same person. It is encoded in RFC4648 base64.

Example: QTevT1Lv5jr0rNyzS3u6SAscolMU+bHitq...
idstringOpcional

An identifier of a specimen (face) in the database.

Example: 6782225b-1793-4b68-a9de-8fdb3628c7e5
mediaIdstringOpcional

An identifier of an image in the database. Each image is associated with a single specimen (face): the uploaded image becomes associated when the face is created with POST /faces and it is deleted together with it (DELETE /faces/{Id}) or together with its collection (DELETE /collections/{collectionId}).

Example: 9c79c818-b81a-4959-b65a-a2b0c8143528
collectionIdstring · mín: 1Opcional

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_-]+$
updateAtstringOpcional

Date/time value (UTC, 1-second resolution) in "%Y-%m-%dT%H:%M:%SZ" format at which a specimen (face) was updated.

Example: 2025-03-18T12:54:02Z
get/faces
GET /faces?collectionId=bank01_collection01 HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "createAt": "2024-11-20T15:39:32Z",
    "description": "It's a description of the person",
    "facialTemplateRaw": "QTevT1Lv5jr0rNyzS3u6SAscolMU+bHitq...",
    "id": "6782225b-1793-4b68-a9de-8fdb3628c7e5",
    "mediaId": "9c79c818-b81a-4959-b65a-a2b0c8143528",
    "collectionId": "bank01_collection01",
    "updateAt": "2025-03-18T12:54:02Z"
  }
]

Atualizado