Skip to main content
The server-to-server primitives. Access them via client.document, client.face, and client.identity. Each image parameter accepts a FileInput; the SDK handles presigned upload internally. For the full request/response schemas, follow the REST links per method.

Document

scan(input)

Scan a document image and extract structured OCR data. Returns DocumentScanResult:
Throws ValidationError, AuthenticationError, RateLimitError, NetworkError, TimeoutError, DeepIDVError.
See also: REST Document Scan.

Face

detect(input)

Detect a face in an image. Returns FaceDetectResult:
See also: REST Face Detect.

compare(input)

Compare two face images. Both upload in parallel via batch presign. Returns FaceCompareResult:
See also: REST Face Compare.

estimateAge(input)

Estimate age and gender from a face image. Returns FaceEstimateAgeResult:
See also: REST Face Estimate Age.

Identity

verify(input)

Full identity verification: document scan + face detection + face comparison in one orchestrated call. Both images upload in parallel. Returns IdentityVerificationResult. All confidence and threshold values are reported on a 0–100 scale:
All three sub-results (document, faceDetection, faceMatch) are always present on a 2xx response, even when verified is false. Throws ValidationError, AuthenticationError, RateLimitError, NetworkError, TimeoutError, DeepIDVError.
See also: REST Identity Verify.