Skip to main content

Capture API

Markdown
Methods to start a session
MethodDescription
openCameraSelfie({listener, webAppToken})Opens the selfie camera, passing the process.webAppToken returned by Create Process
openCameraDocument({documentType, listener})Opens the document camera with the desired DocumentType
Capture options / parameters

DocumentType — see Enums.

Result types and fields

ResultCamera — object returned on successful capture (selfie or document).

FieldTypeDescription
base64StringCaptured image in Base64
encryptedStringJWT to be sent to the backend

SuccessResult — object returned by onSuccess in a Unico API integration.

FieldTypeDescription
processIdStringProcess identifier used to query the validation result via the REST API