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.
400 Bad Request

The processId path parameter is missing or malformed.

401 Unauthorized

Bearer token missing, expired, or invalid. See Authentication.

403 Forbidden

Insufficient permissions to access the selfie for this process.

404 Not Found

Process not found, or the selfie is not available for this process (e.g. Smart Revalidation flow).

Error Codes

note

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

No specific code or message values are documented for this status.

What's next