Appearance
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:
| Property | Notes |
|---|---|
| CaseType | Has to be Person. Entity cases aren't supported. |
| EmailAddresses | At 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 Fullname | Optional. 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
Authenticate with client credentials. See API basics.
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.
Start an ADV session with
POST /api/cases/{caseId}/automateddocverification. Sendlivenessasnone,active, orpassive. A201 Createdresponse 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.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.
Wait for the check to finish. Register a webhook for
automated-doc-verification/completedand use thecheckIdfrom the payload. Also register forautomated-doc-verification/could-not-run, sent if the session expires before the customer finishes it (start a new session), andautomated-doc-verification/error. If you are not using webhooks, poll Get case checks until a check withcheckNameautomated-doc-verificationappears.Fetch the result with
GET /api/cases/{caseId}/checks/{checkId}. TheadvResponseincludes 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.

