POST /kyc/questionnaire/session/delete
Description
The method permanently deletes one stage-1 questionnaire record (see Two-stage verification: questionnaire → KYC).
The database checks made for the record are deleted with it. KYC sessions that were compared with the questionnaire remain. The operation is written to the log, see kyc/session/erase/log (action: delete, channel: rest).
The user who owns the token must have the permission to view KYC logs.
Request format
- HTTP method:
POST - URL:
/kyc/questionnaire/session/delete - Content type:
application/json
Authorization
Pass the token in one of two ways:
- the
token: <jwt-token>header — a temporary JWT token obtained with theuser/loginmethod; - the
tokenfield in the request body — a permanent API token (UUID) from the personal account.
Without a token the request returns 401 access denied. See Authentication for details.
Request parameters
| Parameter | Type | Passed in | Required | Description |
|---|---|---|---|---|
| token | string (UUID) | body | — | Permanent API token, if there is no token header |
| questionnaireSessionId | string (UUID) | body | ✅ | Questionnaire record ID. It is returned by kyc/questionnaire/sessions |
Request example (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/kyc/questionnaire/session/delete" -H "token: <jwt-token>" -H "Content-Type: application/json" -d '{"questionnaireSessionId": "00000000-0000-0000-0000-000000000000"}' Response examples
Success (200 OK)
{
"status": "ok"
} Record not found (400 Bad Request)
The record does not exist or belongs to another account. These cases are intentionally not distinguished.
{
"status": "error",
"message": "[questionnaire] session not found"
} No permission (400 Bad Request)
{
"status": "error",
"message": "No access"
} Invalid request (400 Bad Request)
The request body does not match the schema, for example questionnaireSessionId is missing.
{
"status": "error",
"message": "invalid schema",
"details": {}
}