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 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 |
| sessionId | string | ✅ | KYC session identifier |
| status | string | ✅ | 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"
}