Vectors

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 with user/login;
  • the token field in the request body — a permanent API token (UUID) from your account.

Without a token the request returns 401 access denied.


Request Body (JSON)

FieldTypeRequiredDescription
tokenstring—Permanent API token (UUID), if the token header is not sent
embeddingsstring✅Biometric vector (or string of vectors)
list_idsstring✅ID(s) of person lists for search
thresholdstring❌Match threshold
person_databoolean❌Whether to return data of found persons
resultsstring❌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"
}