These calls stand alone: they don’t create a workflow session or a reviewable session in the Admin Console. For onboarding, prefer a workflow.
Images: FileInput
Images must be JPEG or PNG, at most 15 MiB. The SDK uploads each one through a presigned URL before it calls the API.
scanDocument
Reads the fields on an ID.
type: .autolets deepidv classify the document. It’s accepted only here, not by the capture views.- Only the front is read. A back image is uploaded and its key returned, but not read separately.
- Returns
DocumentScanResult. Itsconfidenceis 0 to 1.
verifyIdentity
Reads the ID, detects the face on it and in the selfie, and compares them.
IdentityVerifyResult
Errors
Both methods throwDeepIDVError. The common kinds: .validation (image format or size, or a bad type), .insufficientFunds, .rateLimit, .network, .timeout. See Errors.
Getting the images
- Use
SelfieCaptureViewfor the selfie and pass itsFileInputstraight in. - For a full capture flow with retries, use
DeepIDVVerificationView, which callsverifyIdentityfor you.