Skip to main content

Get Selfie

Returns the biometric selfie captured by the user during the Unico-hosted journey. The image is returned as a base64-encoded string with a watermark applied.

Available for any finished process that executed a biometric capture, including Smart Revalidation journeys (idsmart). Not available when the process finished without a biometric capture (a silent authentication, for example), since there is no selfie to return.

Endpoint​

EnvironmentURL
ProductionGET https://api.idcloud.unico.app/client/v1/process/{processId}/selfie
SandboxGET https://api.idcloud.uat.unico.app/client/v1/process/{processId}/selfie

Request​

Headers
HeaderValue
AuthorizationBearer <access_token> (see Authentication)
Path parameters
ParameterTypeRequiredDescription
processIdstring (UUID)yesProcess identifier returned by Create Process.

Example​

curl -X GET https://api.idcloud.unico.app/client/v1/process/$PROCESS_ID/selfie \
-H "Authorization: Bearer $TOKEN"

Responses​

200 OK
{
"fileContents": "/9j/4AAQSkZJR...",
"contentType": "image/jpeg"
}
FieldTypeDescription
fileContentsstring (base64)The captured selfie, base64-encoded. Contains a watermark.
contentTypestringMIME type of the image — image/jpeg or image/png.

Error Codes​

note

The API does not expose specific code or message values for this endpoint.

The processId path parameter is missing or malformed.

What's next​