Skip to main content
Get SelfieGET

Retrieve the selfie captured during a Human Token process.

Markdown

Returns the biometric selfie captured by the user during a Human Token process. The image is returned as a base64-encoded string.

Available for any finished process that executed a biometric capture — all five Human Token flows (api+humantoken, api+liveness+humantoken, api+liveness+humantoken+revalidation, humantoken, humantoken+revalidation). Not available when the process finished without a biometric capture, since there is no selfie to return.

warning

The selfie is available for 24 hours after the process finishes. After that, the image is permanently deleted and this endpoint returns 404.

Endpoint​

EnvironmentURL
ProductionGET https://humantoken.unico.app/client/v1/process/{processId}/selfie

Request​

Headers
HeaderValue
x-unico-accesskey<your_access_key> (see Authentication)
Path parameters
ParameterTypeRequiredDescription
processIdstring (UUID)yesProcess identifier returned by Create Process.

Example​

curl -X GET https://humantoken.unico.app/client/v1/process/$PROCESS_ID/selfie \
-H "x-unico-accesskey: $UNICO_ACCESS_KEY"

Responses​

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

Error Codes​

The processId path parameter is missing or malformed.

What's next​