POST /persons
Description
The method returns a list of persons from the user’s specified list (default or indicated). JWT token is required in the header for access.
Request format
- HTTP method:
POST - URL:
/persons - Content type:
application/json - Authorization: required
Query Parameters
| Parameter | Type | Passed In | Required | Description |
|---|---|---|---|---|
| token | string | Header | ✅ | User’s JWT token |
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | ✅ | User’s JWT token |
| list_id | string | ✅ | Person list ID |
| limit | integer | ❌ | Maximum number of records to return |
| cursor | string | ❌ | Cursor for pagination |
| thumbs | bool | ❌ | Return image thumbnails |
| embeddings | bool | ❌ | Return embeddings |
Example Request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/persons"
-H "Content-Type: application/json"
-H "Authorization: Bearer jwt.temporary.token"
-d '{
"token": "jwt.temporary.token",
"list_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 10,
"cursor": "",
"thumbs": true,
"embeddings": true
}' Example Answers
Success (200 OK)
{
"status": "ok"
} Error (400 Bad Request)
{
"message": "invalid schema",
"status": "error"
} Error (401 Unauthorized)
{
"message": "access denied",
"status": "error"
} Error (404 Not Found)
{
"message": "item with this id does not found",
"status": "error"
}