Change KYC session status

POST /kyc/session/status/change


Description

The method manually changes the status of a KYC session. A token is required, see Authorization.


Request format

  • HTTP method: POST
  • URL: /kyc/session/status/change
  • 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
sessionIdstring✅KYC session identifier
statusstring✅New session status: idle, processing, success, failed, exception, expired or suspicious

Example Request (cURL)

curl -X POST "https://api.neuro-vision.ru/v1/kyc/session/status/change" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"sessionId": "00000000-0000-0000-0000-000000000000", "status": "success"}'

Example Answers

Success (200 OK)

{
  "status": "ok",
  "message": "Session [00000000-0000-0000-0000-000000000000] status changed to 'success'"
}

Error (400 Bad Request)

The body does not match the schema, for example the status is not in the list.

{
  "message": "invalid schema",
  "status": "error"
}

Error (401 Unauthorized)

{
  "message": "access denied",
  "status": "error"
}