...

Liveness API and SDK

Liveness as a standalone step: add it to your website through the Web SDK, in an iOS and Android app, via a link, or with your own interface through the REST API. The result reaches your server by webhook, and Liveness can be deployed in the cloud or inside your perimeter.

Liveness API and SDK: a scenario window with a single Liveness step enabled and a smartphone with a liveness check in an oval
REST API Web, iOS, Android and link
Up to 6 free attempts for each step
Cloud or your perimeter
Data is stored in Russia Russian software registry no. 19972 152‑FZ compliance

Liveness as a separate step: what you connect and what you get

Liveness only, no document

Liveness does not require a document: a scenario can consist of a single step. You configure it in the personal account, while your code only starts the check and receives the result. The step works on its own or together with a document and selfie in one KYC session: you pay only for what you include in the scenario.

  • 01

    A one-step scenario

    The Liveness step is switched on in the scenario editor; the document and selfie can be left out. This is also where you choose the check mode, the mask colour on the screen, the texts and the webhook address.

  • 02

    Key and session

    For each attempt, your server encrypts the client identifier with the scenario secret key, and the widget or SDK opens a session. The token and secret key stay with you.

  • 03

    Capture on the user’s side

    The person brings their face into the oval, and the check runs on the image, pose and video. The widget shows the prompts and retries, so you do not need to design any screens.

  • 04

    Result on your server

    A webhook or a status request returns the step result: passed, failed or no response, with the confidence of each check. The decision about the user is yours.

  • 1 step in the scenario
  • 3 checks inside the step
  • up to 6 free attempts per step

Ways to connect Liveness: Web SDK, mobile SDK, link and REST API

All methods lead to one session, one response and one webhook. Choose by where the user takes the check and how much code the team is ready to write.

  • Web SDK on a website

    A script or React component kyc-widget-nv opens a widget with the oval, prompts and retries. The website is added to the allowed domains and works over HTTPS.

    Widget for a website
  • SDK for iOS and Android

    Libraries for Swift, Kotlin and Java show the same screens inside the app. Camera permissions, release and the choice between SDK and WebView are on a separate page.

    SDK for iOS and Android
  • Widget in WebView

    If the Web SDK already works on your website, the app opens it in an in-app browser: the app needs camera permission, and the page needs to be granted camera access.

    WebView and camera
  • Link, no development

    A direct link to the widget or one-time links from the personal account, up to 1 000 at a time. Suitable for a pilot and for checks without developers.

    • No code
    • Pilot
  • REST API and your own interface

    Your team builds the camera and screens, and the backend works with sessions and results over HTTP. We provide the format for sending a series of frames for Liveness without the widget together with test access.

    REST API
  • Server side and libraries

    Session creation, status, webhook and data deletion are ordinary HTTP methods from any language. Python examples are in the documentation; libraries for Python, Java and C# are available on request.

    Python examples

Connecting Liveness step by step: from the scenario to the first check

The scenario and keys are prepared in the account, and the code is written in the test environment. Frontend and backend work in parallel. The full order is in the guide “Integration testing”.

Step 1

Test scenario

Create a scenario with a single Liveness step or a copy of a working one. There is no separate sandbox: a test scenario works the same way as a live one and is not mixed with client sessions.

Test scenario with a single Liveness step
Step 2

Domain and token

Add the website domain to the allowed ones and issue a separate token for the REST API. Domain changes take effect within two minutes.

Website domain in the allowed list and a separate token for testing
Step 3

Client key

The server encrypts the client identifier with the scenario secret key. The identifier is up to 36 characters, without full name, phone or email, and new for each attempt.

The server passes only the encrypted key to the page
Step 4

Starting the check

A page, app or link opens a session with the scenario identifier and the encrypted key. After that the widget guides the user, and your code waits for the result.

The page starts the Liveness check
Step 5

Webhook and status

Specify the webhook address and test it with a test request. Take the result from the event or by a request to kyc/session/status: the browser callback is only a hint for the interface.

The test webhook reaches your server
Step 6

Three test runs

Pass the check yourself, close the widget halfway through and let the session expire. Make sure the server reads all three outcomes correctly, and only then switch the scenario to the live one.

Three test runs before the live launch

Cloud or your own perimeter: Liveness on-premises, in a private cloud and in a container

  • NeuroVision cloud

    Servers in Russia, nothing to install. Suitable for starting and for a pilot: test access is opened in the cloud.

  • Servers in your data centre

    The Liveness module is installed on your hardware; frames and video never leave your infrastructure. The hardware is selected for your load.

  • Private cloud

    The same installation in your private cloud or at your provider: you configure the network and access, while NeuroVision engineers handle updates and support.

  • Container delivery

    Liveness is delivered in containers: Docker or a virtual machine image. An isolated perimeter without internet is supported; an external network is needed only for updates.

The Liveness algorithm and API are the same everywhere. The installation location determines where the frames are stored and who maintains the servers.
The API methods and scenarios are the same as in the cloud; how to move the integration, we agree during design. The installation procedure, the responsibilities of the parties and the licence are on the page on-premise installation page.

Liveness step response: what comes back and how to read it

The result arrives in the same JSON as for the other session steps. Three things matter for Liveness: the step status, the three checks inside it and the attempt records. All fields are insession status documentation.

  • Step status

    step liveness

    Enable

    What arrives

    • status: success — passed, failed — failed, exception — the check gave no response, idle — not yet performed
    • tries — number of attempts
    • errors — reason code, for example [face] is not alive

    How to use it

    • passed — open the next step
    • failed — offer a retry in the same session
    • no response — request the status later or offer to retry
  • Three checks

    group liveness

    Enable

    What arrives

    • liveness_image — by image
    • liveness_pose — by pose
    • liveness_video — by video
    • each has its own status and confidence; video also has frames — how many frames were checked

    How to use it

    • the platform makes the decision: take the final status
    • confidence use for reports and for reviewing disputed sessions
  • Attempts and materials

    attempts

    Enable

    What arrives

    • n — attempt number
    • result — true, false ornull, if there is no response
    • score — check confidence
    • in the widget result — links faces to frames andvideo

    How to use it

    • the attempt log helps to resolve a complaint such as “it did not let me through”
    • frames and video are deleted by the method kyc/session/erase

Before launch: what to check in your Liveness integration

A short list for the test environment. Most start-up failures come from the environment and result handling, not from the check itself.

  • The domain is allowed. The website is added to “Allowed domains” and opened over HTTPS: otherwise the widget will not start and the browser will not grant access to the camera. Web
  • No iframe. The widget is added to the root document of the page, not to a nested frame. If a frame is unavoidable, it must be allowed to use the camera. Web
  • Computer without a camera. If the scenario does not allow the computer camera, the user will see a QR code and a link to continue on a smartphone. All platforms

  • Decision on the server. Open the service based on the webhook or session status, and treat the browser callback as a hint for the interface. Backend
  • Repeat delivery. An event for a session may arrive more than once, so process it bysessionId and status. Backend
  • The webhook is not repeated. The platform waits for a response for 30 seconds and does not resend the event: if it did not arrive, request kyc/session/status. Backend

  • Retry in the same session. While attempts in the step remain, the user recaptures in the same session; no new key is needed. Attempts
  • Attempts exhausted. The session ends with a refusal. To check the person again, create a new session with a new clientKey. Attempts
  • The window was closed, the session expired. Closing the widget in the browser gives only a close event without a status, and expiry does not arrive by webhook: find out the status expired by a request. Statuses

  • Keys on the server. The API token and the scenario secret key never reach the browser or the app. Security
  • Client identifier. InclientUser and clientKey — your internal number, not personal data. 152‑FZ
  • Deletion on request. Session images and video are deleted by the method kyc/session/erase; the final status is retained. 152‑FZ

Where in the user journey the Liveness step is placed

  • Registration

    A step before creating an account or issuing a bonus filters out bot farms and photos from a screen. If a document is needed, add it to the same KYC session.

  • Starting a shift

    A courier or driver confirms that a live person, not a recording, takes the check. Who exactly that is, your process decides: matching with a document or a check by an employee.

  • Withdrawals and large transactions

    An additional step on top of the password and SMS code before a withdrawal or a limit increase.

  • Changing a device or phone

    Before a new device is linked, the person passes Liveness, and the access decision is made by your system. For access reset there is a separate scenario.

  • Contract signing

    A step before an electronic signature confirms the presence of a live person. How this is built into the process is described on the page contract signing.

  • Rental and access to property

    Car sharing, rental, parcel lockers: a check in the app before access to a car or a locker is opened.

The step is connected once and reused wherever you need to make sure there is a live person behind the screen. Which steps exactly to use and what to combine them with is decided by your process.

How much Liveness via API and SDK costs

Payment is per check or per KYC session. The price matrix has no separate charge for the Web SDK, the SDK for iOS and Android or the REST API; anti-fraud checks and widget design are included in all packages.

  • Liveness only

    from 13 ₽ per check

    Calculate

    Without a document: 15 ₽ at 10 000 checks a year, 14 ₽ at 50 000, 13 ₽ at 100 000; up to 6 free attempts per step.

  • Document + Liveness

    from 29 ₽ per session

    Get test access

    Document recognition and anti-fraud, selfie or Liveness, and matching the face with the photo in the document in one session.

  • Extended

    on request

    Discuss

    + checks against Russian databases and international screening; a licence for installation in your perimeter is available on request.

Test access — 1 month. Database checks are charged separately — from 5 ₽. Prices — per the price matrix calculator on the publication date.

Liveness pilot: test scenario, part of the users, live launch

Test scenario

A copy of the live scenario with a Liveness step in your account: you check the widget or SDK, the webhook and the three outcomes on fictitious data.

Integration testing

Terms

  • Test access for 1 month
  • A dedicated manager
  • Support under contract
  • Pay only for checks

Liveness API and SDK glossary

Liveness
A check that a live person is in front of the camera, not a photo, screen, mask or substituted video stream. It does not establish identity.
liveness detection
Scenario
A set of check steps, design and webhook address in the personal account. A scenario can consist of a single Liveness step.
scenario
Session
One verification attempt of one person under a flow. It has its own identifier and a final status.
KYC session
Client key
Your attempt identifier, encrypted on the server with the scenario secret key, no longer than 36 characters.
clientKey
Webhook
A request from NeuroVision to your server with the session result. It waits for a response for 30 seconds and is not resent.
webhook
Web SDK
A check widget for a website and mobile browser: added with a script or a React component.
Web SDK
Container delivery
Installation in your perimeter using Docker or virtual machine images, independent of the cloud.
container delivery
Attempt
One pass of the step by the user. While attempts remain, the step is recaptured in the same session.
attempt

Frequently asked questions about Liveness API and SDK

Yes. Liveness is a scenario step: your server creates a session, the user takes the check in the widget or SDK, and the result arrives by webhook or status request. Your own interface on the REST API is also possible: we provide the format for sending a series of frames for Liveness without the widget together with test access.

Web SDK for a website and mobile browser (script and React component), SDK for iOS in Swift and for Android in Kotlin and Java. The widget can also be opened in a WebView, and without development — via a link. All methods work with one scenario and one response.

Yes. A scenario can consist of a single Liveness step. Such a check costs from 13 ₽ per check, and together with a document in one KYC session — from 29 ₽.

Both. The step has a status (success, failed, exception) and three checks with confidence: by image, pose and video. In the attempt records each check has result and score. Make the decision about the user based on the final status.

Yes. The Liveness module is installed in your perimeter, in a private cloud, or delivered in containers (Docker, a virtual machine image). An isolated perimeter without internet is supported. The API methods and scenarios are the same as in the cloud; the licence is available on request.

Not necessarily: the API works over ordinary HTTP from any language, and Python examples are in the documentation. If your team needs a library for Python, Java or C#, we will provide it on request.

While attempts in the step remain, the user recaptures in the same session, and the reason is visible in errors, for example [face] is not alive. After the last attempt the session ends with a refusal: for a new check, create a session with a new client key.

Make the decision on the server based on the webhook or status request. The successCb callback in the browser arrives only on success; for any other outcome, only the widget closing fires, without a status.

There is no separate charge for the SDK and API: you pay for the check. Liveness only — from 13 ₽ (15 ₽ at 10 000 checks a year), “Document + Liveness” — from 29 ₽ per session, test access — 1 month.

No: the step confirms that a live person is in front of the camera, but does not search for or recognise them. The law allows automatic recognition by a stored template through a state system or with employee confirmation, and for repeat verification use Liveness together with a document or your login.

We will give you test access to Liveness and help you choose a connection method

Tell us where the user takes the check — website, app or link — and whether you need your own perimeter. We will open a test scenario for 1 month and select a connection path.

Can't put your request into words? Book a call and our team will contact you at a convenient time

Book a call

The NeuroVision platform is listed in the Russian software registry, entry no. 19972. Rospatent certificate no. 2023661508.

Address: Moscow, Presnenskaya Embankment 12 — Moscow City business centre, Federation Tower. Nearest metro stations: Delovoy Tsentr and Mezhdunarodnaya.