Get a list of all person lists

POST /person/lists


Description

The method returns all of the user’s person lists. A JWT token is required in the header for access.


Request format

  • HTTP method: POST
  • URL: /person/lists
  • Content type: application/json
  • Authorization: required

Query Parameters

ParameterTypeWhere passedRequiredDescription
tokenstringHeaderUser’s JWT token

Example Request (cURL)

curl -X POST "https://api.neuro-vision.ru/v1/person/lists" 
  -H "Content-Type: application/json" 
  -H "Authorization: Bearer jwt.temporary.token"

Example Answers

Success (200 OK)
[
  {
    "id": "75e55780-8943-11ea-9773-e96daa282099",
    "name": "Friends",
    "persons": 27
  }
]
Error (401 Unauthorized)
{
  "message": "access denied",
  "status": "error"
}