Get Selfie
Endpoint to retrieve the selfie from the Unico process.
Process ID.
Selfie obtained successfully.
When the process ID is invalid.
Access-token error.
When the service account does not have permission to obtain the selfie.
When the process could not be found.
GET /client/v1/process/{id}/selfie HTTP/1.1
Host: api.cadastro.uat.unico.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"fileContents": "/9j/4AAQSkZJRgABAQA[...]QkeQUjE",
"contentType": "image/jpeg"
}Important:
The permission to obtain the user's selfie will depend on Unico's internal evaluation. Understand with the person responsible for your project whether you will be able to consume this service;
It is only possible to get the selfie with the watermark;
If you use the Smart Revalidation capability (flow
idsmart), we will not return the user's selfie.
Errors
3
process id is invalid
When the process id is invalid.
7
no permission
When the service account does not have permission to obtain the selfie
5
error getting process: rpc error: code = NotFound desc = process not found
When the process id was not found
No detailed error code will be provided for this situation, only the HTTP status code.
99999
Internal failure! Try again later
When there is some internal error.
Last updated
Was this helpful?