In this section, you will find the specific details on creating a process that includes Document Capture as a capability
Your API requests are authenticated using an access token. Any request that does not include a valid access token will return an error.
You can learn more about generating an access token here.
Production: https://api.id.unico.app/processes/v1.
In creating the process, the following fields are required: subject.code
, subject.name
, document.Purpose
, document.files.id
or document.files.data
, and imageBase64
;
In the process response, we return the id
, status
, and document.id
. The capability's response is always asynchronous; therefore, the GetProcess
method must be implemented.
Still need help?
Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.
Endpoint to create a new document process by Client.
Valid access-token.
Valid APIKEY with document capture and reuse capability.
User's CPF.
"12345678909"
User's name.
"Luke Skywalker"
User's email.
"luke@unico.io"
User's phone.
"551972557070"
Information about the document to be captured.
Indicates the purpose of sharing the document. Can receive values: creditprocess, carpurchase, paybypaycheck, onboarding, or fgts.
"creditprocess"
ID of the biometrics process that must have been carried out previously. The ID must be from a completed process with valid biometrics.
"80371b2a-3ac7-432e-866d-57fe37896ac6"
Identifier of the document to be reused. You will find it when using the GetReusableDocuments API. If you do not find a document to be reused, you must capture the document and send the base64 in the data.files parameter.
"80371b2a-3ac7-432e-866d-57fe37896ac6"
Base64 of the user's document if no reusable document is found in the GetReusableDocuments API. The array can contain 1 file (e.g., full CNH) or 2 files (e.g., CNH front and CNH back).
Image of the document encoded in base64.
"/9j/4AAQSkZJR..."
Base64 of the user's selfie.
"/9j/4AAQSkZJR..."
Document process created successfully.
Process ID.
"80371b2a-3ac7-432e-866d-57fe37896ac6"
Process status.
3
ID of the document that was created.
"80371b2a-3ac7-432e-866d-57fe37896ac6"