POST /vector/search
Description
The method compares biometric (photo) vectors with vectors of persons from the specified lists. A token is required, see Authorization.
Request format
- HTTP method:
POST - URL:
/vector/search - Content type:
application/json
Authorization
Pass the token in one of two ways:
- the
token: <jwt-token>header — a temporary JWT token obtained withuser/login; - the
tokenfield in the request body — a permanent API token (UUID) from your account.
Without a token the request returns 401 access denied.
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | — | Permanent API token (UUID), if the token header is not sent |
| embeddings | string | ✅ | Biometric vector (or string of vectors) |
| list_ids | string | ✅ | ID(s) of person lists for search |
| threshold | string | ❌ | Match threshold |
| person_data | boolean | ❌ | Whether to return data of found persons |
| results | string | ❌ | Result format (e.g., “all”, “top”) |
Example Request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/vector/search" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"embeddings": "0.123,0.456,0.789", "list_ids": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "threshold": "0.7", "person_data": true, "results": "top"}' Example Answers
Success (200 OK)
{
"results": [
{
"additionalProp1": {}
}
],
"status": "ok"
} Error (400 Invalid input)
{
"message": "invalid input",
"status": "error"
}