Session database checks

POST /kyc/session/databases


Description

The method returns the results of database checks of a KYC session. The checks run asynchronously after the user has completed the session steps; while they run, the session is in the processing status.

There are two ways to get the results:

  • poll this method until checksStatus becomes complete;
  • receive the DATABASE_CHECKS_COMPLETE webhook with the same results (see Webhooks).

The method works without a configured webhook address as well. The response is never encrypted.

The method also accepts a stage-1 questionnaire record: pass its questionnaireSessionId in the sessionId field.


Request format

  • HTTP method: POST
  • URL: /kyc/session/databases
  • Content type: application/json

Authorization

Pass the token in one of two ways:

  • the token: <jwt-token> header — a temporary JWT token obtained with the user/login method;
  • the token field 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

ParameterTypePassed inRequiredDescription
tokenstring (UUID)body—Permanent API token, if there is no token header
sessionIdstring (UUID)body✅ or clientKeyKYC session ID or questionnaire questionnaireSessionId
clientKeystringbody✅ or sessionIdClient key, up to 36 characters. Finds the latest regular session with this key; a questionnaire cannot be found by clientKey

Pass sessionId or clientKey.


Request example (cURL)

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

Response fields

FieldTypeDescription
sessionIdstringSession ID
pdErasedbooleanWhether the session personal data were erased
pdErasedAtstring \null
checksStatusstringpending — checks are still running; complete — the session is finished and no checks are in progress
pendingnumberHow many checks have not finished yet
resultsarrayCheck results, see below
responseTimestringResponse time
typestringquestionnaire — only for a questionnaire record
questionnaireSessionIdstringOnly for a questionnaire record

Check result

FieldTypeDescription
checkerstringCheck ID. The same value comes in the webhook
statusstringidle, processing, success, failed, exception
outcomestring \null
notPerformedReasonstring \null
missingInputsarrayWhich data were missing for the check, see below
spentnumber \null
resultobject \null

Read outcome first, then passed. A skipped check comes with the success status and passed: null — this means "not checked", not "clean".

notPerformedReason: missingInput, unusableInput, identityUnresolved, ageBelowDocumentAge, providerUnavailable, providerError, unknown.

missingInputs: passportRf, identityDocument, driverLicense, snils, inn, address, phone, email, photo, fullName, middleName, birthDate, gender, consent.


How to poll

  • Request once every 5–10 seconds.
  • Stop when checksStatus = complete.
  • If the user abandoned the session, complete will not come: stop polling after the session lifetime is over.

Response examples

Success (200 OK)

{
  "sessionId": "00000000-0000-0000-0000-000000000000",
  "pdErased": false,
  "pdErasedAt": null,
  "checksStatus": "pending",
  "pending": 1,
  "results": [
    {
      "checker": "insolvencyStatus",
      "status": "success",
      "outcome": "performed",
      "notPerformedReason": null,
      "missingInputs": [],
      "spent": 1230,
      "result": { "passed": true }
    },
    {
      "checker": "snilsVerification",
      "status": "success",
      "outcome": "skipped",
      "notPerformedReason": "missingInput",
      "missingInputs": ["snils"],
      "spent": null,
      "result": { "passed": null, "error": "snils is required" }
    },
    {
      "checker": "debtBurden",
      "status": "exception",
      "outcome": "unavailable",
      "notPerformedReason": "providerUnavailable",
      "missingInputs": [],
      "spent": null,
      "result": { "passed": null, "error": "service error" }
    },
    {
      "checker": "regulatoryRestrictions",
      "status": "idle",
      "outcome": null,
      "notPerformedReason": null,
      "missingInputs": [],
      "spent": null,
      "result": null
    }
  ],
  "responseTime": "2026-01-01T10:00:00.000Z"
}

Session not found (200 OK)

{
  "status": "error",
  "message": "session not found"
}

Error (400 Bad Request)

{
  "status": "error",
  "message": "sessionId or clientKey is required"
}

If the request body does not match the schema, invalid schema comes with details.

Error (500 Internal Server Error)

{
  "status": "error",
  "message": "internal error"
}