Skip to content

Automated document verification ​

This guide shows how to run Automated Document Verification (ADV) through the EyeDP API. ADV emails the applicant a session link. They capture a government-issued identity document and complete a liveness check. Results then appear as a case check.

You choose which documents they can present with the Allowed Documents setting: passports, driving licences, national IDs and residence permits. Passports and driving licences are allowed unless you change it. A national ID or residence permit is saved to the case as an Other document.

The document's issuing country starts as the country of the case's address, or your Default Issuing Country if the address has none.

When the check finishes, EyeDP sends an automated-doc-verification/completed webhook. Use the checkId from that payload to fetch the result. If the check doesn't produce a result, automated-doc-verification/could-not-run or automated-doc-verification/error is sent instead (see step 5).

Case requirements ​

The case must already satisfy these before you start a session:

PropertyNotes
CaseTypeHas to be Person. Entity cases aren't supported.
EmailAddressesAt least one is required. The session link is emailed to the one added most recently: the last one, if several are sent together.
GivenNames or FullnameOptional. The email greets the person by their given names, or their full name. A case with neither is greeted as "there", as in "Hi there,".

ADV must also be enabled on your client, and the case must not already have a pending, active, or successful ADV session.

Steps ​

  1. Authenticate with client credentials. See API basics.

  2. Create a case that meets the case requirements above: a person case with at least one email address. A name is optional, and the email greets them by it.

  3. Start an ADV session with POST /api/cases/{caseId}/automateddocverification. Send liveness as none, active, or passive. A 201 Created response means the session has been created and the email will be sent. The email is sent from EyeDP, or from your Sender Email Address if you've set one up, in which case it uses your own Email Template if you've uploaded one.

  4. The applicant opens the emailed link (or QR code) and completes document capture and liveness. While the session is in progress you can copy the session URL from the Portal status card if you need to share it again. When they finish, they're sent to your Success URL if you've set one, or to your Error URL if they can't finish the session. Neither tells you the result: wait for it in step 5.

  5. Wait for the check to finish. Register a webhook for automated-doc-verification/completed and use the checkId from the payload. Also register for automated-doc-verification/could-not-run, sent if the session expires before the customer finishes it (start a new session), and automated-doc-verification/error. If you are not using webhooks, poll Get case checks until a check with checkName automated-doc-verification appears.

  6. Fetch the result with GET /api/cases/{caseId}/checks/{checkId}. The advResponse includes authenticity, liveness, and face-match reports, plus image URLs. See API results for the response shape.

If the session fails, request a new session on the same case and repeat from step 3.