This page explains how long database checks take, how they end, when and how to run them again, what a repeat costs, and how webhooks and requests are retried. The rules are the same for a stand-alone run through kyc/checks/run and for checks inside a KYC session; where they differ, it is said separately.
How long a check takes
Checks run asynchronously: the response to the start comes at once, the result appears later. Some checks take several minutes, so the result cannot be awaited within one HTTP request.
| What | Value |
|---|---|
Response to kyc/checks/run | Immediately, with runId and checksStatus: "pending" |
| Set of checks in a run | Fixed at the start; no checks are added to the run later |
| Time limit of one check | 24 hours from the start. If there is no result by then, the check ends with outcome: "unavailable" |
| Final session webhook while checks are still running | After 10 minutes SESSION_COMPLETE arrives with status processing, checksStatus: "timeout" and isFinal: false; the checks’ result comes later in DATABASE_CHECKS_COMPLETE, followed by one more SESSION_COMPLETE with the final status and isFinal: true, even if the status did not change |
The platform itself brings every check to a final outcome — performed, skipped or unavailable — within about 24 hours of the start. A check that never finished does not hang in the response: the run's checksStatus always ends up complete.
Outcomes and what to do
While a check runs, its status is idle or processing and its outcome is null. The final statuses are success, failed and exception. Decide by outcome, not by status: a skipped check and some checks with a technical error come with status success.
| outcome | Meaning | What to do |
|---|---|---|
performed | The check was performed | Read the verdict in result.passed. No repeat is needed |
skipped | The check was not performed: data were missing or unusable | See notPerformedReason and missingInputs. A repeat with the same data will, as a rule, be skipped again — complete or correct the data first |
unavailable | The check could not be performed because of a technical error on our side | Run the check again later (see below). If the error persists, contact support |
The unavailable outcome is final for that run: the check itself will not change any more, and a result can only be obtained with a new run.
Result fields in detail — on the pages Retrieving the result and Session database checks.
Running a check again
Stand-alone run (kyc/checks/run)
A repeat is a new call of kyc/checks/run. It creates a new run with a new runId; the earlier run and its results do not change and are still read by their own runId.
- Repeat only the checks you need: list them in
checkers. Without thecheckersfield, every check allowed to the group runs. - For
unavailable, repeat the run after a few minutes, not immediately in a loop. - For
skipped, first complete the data inpersonaccording tomissingInputs. - A check from a run started through the API cannot be re-run in the personal account: it answers «Checks started through the API cannot be re-run». A repeat is only a new call of
kyc/checks/run.
Checks inside a KYC session
Session checks start by themselves once the user has passed the scenario steps. A single check can be run again in the personal account: in the session card, in the list of database checks, with the «Re-run check» button next to the check.
- The user's role needs the «Session DB — Update» permission («User management» → «Roles»). Without it the personal account answers «You have no permission to re-run checks».
- Only a finished check can be re-run; while it runs, the personal account answers «The check is still running».
- A check cannot be re-run once the personal data of the session have been erased.
- The check is re-run on the document data of the session; the earlier result of that check is replaced by the new one.
What your server sees after a re-run:
- the session returns to status
processing; no webhook is sent for that; - once the checks are over,
DATABASE_CHECKS_COMPLETEarrives with the full set of results; - if the new result changes the session status (for example, a blocking check is now performed and passed), another
SESSION_COMPLETEfollows.
Codes are described on the page Errors. If a check is marked as blocking in the scenario and ends with unavailable or skipped, the session gets status failed and the code [legal] database check failed. A successful re-run of that check removes the code, and the session status is worked out again.
Billing of repeats
| Outcome | Billed |
|---|---|
performed | Yes |
skipped | No |
unavailable | No |
- A repeated run is a separate run: its checks are billed by the same rules as the first one. Before a re-run the personal account warns: «The run is billed as a separate request».
- A check that ended with
unavailableorskippedis not paid for, so repeating it does not mean paying twice. - Repeating a check with the
performedoutcome is paid again. Re-run a performed check only when you need a fresh result.
Request errors and when to repeat
| Response | What happened | Repeat? |
|---|---|---|
400 (invalid schema, No access, unknown or not allowed checkers, errors of person fields and others) | The request is wrong or the permission is missing | No: the same request gets the same answer. Fix the request |
401 access denied | No token, or the token is not valid | No: renew the token |
404 run not found (kyc/checks/result) | The runId was not found | No: check the runId and the token |
500 internal error | Internal error | Yes, after a few seconds |
Methods that change a KYC session, such as kyc/process: 409 [request] session is busy | Another request is processing the session at this moment; nothing of this request was applied and no attempt was spent | Yes, once the answer to the earlier request to this session has arrived |
| No response (connection dropped, timeout on your side) | Unknown whether the run was created | See below |
Repeating kyc/checks/run without a response. The method has no idempotency key: every accepted call creates a separate run. If the response to kyc/checks/run was lost, a repeated call may create a second run on the same data, and both will be performed. To avoid duplicates, repeat the call once rather than in a loop, and store the runId as soon as you get the response.
Polling kyc/checks/result is a read request: it can be repeated as often as needed, starts nothing and is not billed.
Webhooks: redelivery
For checks inside a session, the result arrives in the SESSION_COMPLETE webhook (if the checks finished within 10 minutes) or in DATABASE_CHECKS_COMPLETE. A stand-alone run through kyc/checks/run sends no webhook: its result is taken by polling.
| What | Value |
|---|---|
| Wait for your server’s response | 30 seconds per attempt |
| When we retry | A network error, a timeout, a 5xx, 408 or 429 response |
| When we do not retry | Any other response, including 4xx and a 3xx redirect |
| Schedule | The first retry after 30 seconds, every next pause one and a half times longer; up to 15 attempts within about 4 h 50 min. Retry-After is ignored |
X-Webhook-Id | The same in every attempt of one delivery |
X-Webhook-Attempt | The attempt number, starting from 1 |
X-Webhook-Resend-Of | Only on a webhook resent manually from the webhook log: the X-Webhook-Id of the original delivery |
- The same webhook may arrive more than once. Store the
X-Webhook-Idof processed webhooks and answer a repeat with 2xx without processing it again. DATABASE_CHECKS_COMPLETEcarries the full set of results every time and arrives again after a check is re-run. Process it idempotently bysessionId.- If all attempts are used up, get the result with kyc/session/databases or send the webhook again with the «Resend webhook» button on the «Callback Logs» tab of the «KYC/AML» section.
Details — on the page Webhooks; a summary of limits — on the page Limits.
Recommended waiting scheme
Stand-alone run:
- Call
kyc/checks/runand store therunId. - Poll
kyc/checks/resultevery 5–10 seconds. If the run takes longer than a few minutes, poll less often, for example once a minute. - Stop polling when
checksStatus=complete. This happens within about 24 hours of the start. - Read every check by its
outcome. Forunavailable— a new run of those checks after a few minutes; forskipped— a new run once the data are completed.
Checks inside a session:
- Wait for
SESSION_COMPLETE. If itschecksStatusiscomplete, the check results are already in thechecksfield. - If
checksStatus: "timeout"arrived, wait forDATABASE_CHECKS_COMPLETE(within about 24 hours of the start of the checks) or poll kyc/session/databases every 5–10 seconds, then less often. - For checks with
unavailable— re-run them with the «Re-run check» button in the session card.
FAQ
Does the platform repeat a check that ended with unavailable by itself?
No. unavailable is the outcome of that run. To get a result, run the check again: through kyc/checks/run or with the «Re-run check» button in the session card.
How long should I wait before treating a check as failed?
You do not need to time it yourself: if there is no result for 24 hours, the check ends with outcome: "unavailable" by itself and checksStatus becomes complete. Treat a check as failed by its outcome, not by elapsed time.
Can I request the result of the same run again?
Yes. kyc/checks/result for the same runId can be called as often as needed: it is a read, it starts nothing and is not billed.
Does repeating kyc/checks/run with the same data return the same runId?
No. Every call creates a new run with a new runId.
Is a repeat of a check that was not performed billed?
No. Checks with the skipped and unavailable outcomes are not billed — neither in the first run nor in a repeated one.
Can a check that ran inside a session be re-run through the API?
No. A session check is re-run in the personal account with the «Re-run check» button. Through the API you can run the same checks separately with kyc/checks/run — that is a new run, not linked to the session.
Neurovision Team