POST /kyc/download
Description
The method downloads an archive with KYC session logs prepared for your filter.
How it works:
- Request the session list with the
kyc/sessions/filtermethod and the"zip": trueparameter. Theresultsfield of the response contains the archive namearchiveNameand the number of sessions in it,totalSessions. - Pass
archiveNameto thekyc/downloadmethod and save the returned file.
The archive is built after kyc/sessions/filter responds. Until it is ready, kyc/download returns 404 — retry in a few seconds.
An archive can be downloaded only once: it is deleted after the download. An archive that was not downloaded is kept for a limited time (about a day) and then deleted. To get the logs again, repeat the kyc/sessions/filter request with "zip": true.
A token with the KYC log export permission is required, see Authorization.
Request format
- HTTP method:
POST - URL:
/kyc/download - 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 |
|---|---|---|---|
| archiveName | string | ✅ | Archive name from the results.archiveName field of the kyc/sessions/filter response |
Example request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/kyc/download" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"archiveName": "<archiveName>"}' -o kyc-logs.zip Example responses
Success (200 OK)
The response body is the archive itself, with the Content-Type: application/zip and Content-Disposition: attachment headers. Save it to a file with the .zip extension.
Error (401 Unauthorized)
The token is missing or invalid.
{
"message": "access denied",
"status": "error"
} Error (404 Not Found)
The archive is still being built, has already been downloaded, or was deleted after the storage period.
{
"error": "File not found"
}