Skip to main content

Create Process

This article explains how to create a proof-of-life transaction using the CreateProcess method via the Unico IDLive REST API.

This method creates a process for authenticating to Unico IDLive. All validation in this flow is done after the user captures the biometric image. Upload the captured image and sent the person's information.

The image is processed after successful upload.

How to use it?

Make a POST request to the /processes/v1 endpoint

With a valid Access token, make a request to the endpoint (POST/processes/v1) sending the following parameters:

{
"subject": {
"Code": "CPF_holder",
"Name": "NAME",
"Email": "EMAIL",
"Phone": "PHONE_NUMBER"
},
"useCase": "USECASE",
"imagebase64": "IMAGE"
}

Parameters:

  • HEADER PARAMETERS
NameTypeMandatory/OptionalDescription
APIKEYStringMandatoryAPI key
AuthorizationStringMandatoryAccess token
Content-TypeStringMandatory"application/json"
  • REQUEST BODY SCHEMA
NameTypeMandatory/OptionalDescription
subject.CodeStringMandatoryValid CPF.
subject.NameStringMandatoryPerson's name
subject.EmailStringOptionalEmail of the person.
subject.PhoneStringOptionalPhone number of the person
useCaseStringOptionalIndicates the use of the operation. Used so that operations can be segmented.
imagebase64StringMandatoryPhoto of the person. The image must be the Json Web Token (.jwt) captured via the Unico SDK. The .jwt must be sent within 10 minutes to prevent the image from expiring. And this .jwt can only be used once.
Important

The subject.Name parameter cannot contain two spaces between the names.

Correct parameter submission:
  "subject.Name": "Ronald Richards"
Wrong parameter submission:
  "subject.Name": "Ronald  Richards"

Request example:

Arquivo JSON
{
"subject": {
"code": "45875596922",
"name": "Roberto Flavio",
},
"imageBase64": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAgSURBVDhPY/wPBAwUACYoTTYYNWDUABAYNWDgDWBgAABrygQclUTopgAAAABJRU5ErkJggg=="
}

Successful request

If the request was executed successfully, the return response is a JSON with the possible scenarios:

  • Liveness Approved
{
"id": "016ba203-ca11-4690-aeb7-3573c9a03935",
"status": 3,
"liveness": 1
}
  • Liveness Reproved
{
"id": "016ba203-ca11-4690-aeb7-3573c9a03935",
"status": 3,
"liveness": 2
}
  • Process with error
{
"id": "016ba203-ca11-4690-aeb7-3573c9a03935",
"status": 5
}

Request error

If an error occurs, the return response is a JSON containing the error code and description:

{
"Error": {
"code": "10700",
"description": "Error description"
}
}

For more information on the errors returned, see the list available in the article [Response Error(/en/docs/IDLive/Integracao/GuiaAPI/responseError#createprocess).

Any concerns?

Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.