Download KYC logs archive

POST /kyc/download


Description

The method downloads an archive with KYC session logs prepared for your filter.

How it works:

  1. Request the session list with the kyc/sessions/filter method and the "zip": true parameter. The results field of the response contains the archive name archiveName and the number of sessions in it, totalSessions.
  2. Pass archiveName to the kyc/download method 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 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
archiveNamestring✅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"
}