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.

Only available for processes that executed biometric capture (any flow that includes Liveness or Identity Verification). Not available for Smart Revalidation flows (idsmart).

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