# Overview

By Client is an integration method of Unico IDCloud that offers total flexibility for using identity validation solutions. It allows you to:

* Integrate the platform's capabilities directly into your back-end.
* Control the user experience with a proprietary front-end (see the [Capture Standard](https://devcenter.unico.io/idcloud-v2/by-client-integration/adittional-resources/capture-standard-without-sdk)).
* Or use our SDKs for web and mobile.

Using "by Client", you can freely combine the platform's capabilities according to the needs of your use case.

{% hint style="info" %}
To use the desired capabilities, it is necessary to configure your API Keys with the corresponding permissions.
{% endhint %}

Additionally, "by Client" can be used for reprocessing face databases. In this case, contact your account manager to receive guidance on the necessary procedures.

<figure><img src="https://content.gitbook.com/content/yg2ndDqWoiOMlw88KQMw/blobs/sjuXT4gpOhEvHIQAjpba/image.png" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

### Autenticate <a href="#se-autentique" id="se-autentique"></a>

The first step is authentication. You must have a service account and perform OAuth2 authentication to obtain a valid access token.
{% endstep %}

{% step %}

### Open the Unico SDK <a href="#abra-o-sdk-da-unico" id="abra-o-sdk-da-unico"></a>

Using the Unico SDK, render the capture component so the end-user can capture the Selfie.

{% hint style="info" %}
This step is mandatory if you use Unico's Liveness Detection; otherwise, you can skip this step and request the service directly
{% endhint %}
{% endstep %}

{% step %}

### Create a process <a href="#crie-um-processo" id="crie-um-processo"></a>

Consume the POST endpoint to create a process, sending:

* the user's CPF.
* the encrypted object that is generated when the user captures the selfie via the SDK (*contains the user's selfie and the information for us to perform Liveness Detection*) or the base64 of the user's selfie (*if not using Liveness Detection*).
  {% endstep %}

{% step %}

### Check the process result (*if applicable*) <a href="#consulte-o-resultado-do-processo" id="consulte-o-resultado-do-processo"></a>

The validation is synchronous for almost all capabilities, except for the Risk Score (if there is a derivation to the Risk Score, it will be necessary to use the GET endpoint to obtain the final response).
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If you use the Risk Score, you can use the Webhook to know when your process result is complete.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devcenter.unico.io/unico-idcloud/by-client-integration/getting-started/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
