Perform Identity Check

Learn how to perform Identity Check through the API.

Overview

This guide shows you how to run an Identity check using the ComplyCube API.

circle-check

Integration steps

Identity Check API Guide
1

Create a client

The first step in creating any check is to add a client from your backend server. A client can represent either a person or a company.

The response will contain an id (the Client ID). It is required for the next step.

Example request for creating a client

Example response

2

Create a live photo

Upload a BASE64-encoded selfie image of the customer. The image must be in JPG or PNG and between 34 KB and 4 MB in size.

Below is a sample BASE64-encoded selfie image. Download it, and copy its content. Then paste into the data attribute when making the request.

The response will contain an id (the Live Photo ID). It is required later.

Sample - BASE64 encoded selfie

Example request for uploading the live photo

Example response

3

Create a document

Create a document by providing the Client ID and document type (e.g. passport, national ID).

The response will contain an id (the Document ID). It is required for the next step.

Example request for creating a document

curl -X POST https://api.complycube.com/v1/documents \
     -H 'Authorization: <YOUR_API_KEY>' \
     -H 'Content-Type: application/json' \
     -d '{
          "clientId":"5eb04fcd0f3e360008035eb1",
          "type": "passport",
          "issuingCountry": "GB"
        }'

Example response

{
    "id": "5ebd40714f23960008c81527",
    "type": "passport",
    "issuingCountry": "GB",
    "createdAt": "2025-01-04T17:25:21.116Z",
    "updatedAt": "2025-01-04T17:25:21.116Z"
}
4

Upload front side of ID

Upload a BASE64-encoded image of the front of the ID document. Depending on the document type and issuing country, both sides may be required.

Images must be in JPG, PNG, or PDF format and between 34 KB and 4 MB in size.

Below is a sample BASE64-encoded file. Download it, copy its contents, and paste them into the data attribute when making the request.

Sample - BASE64 encoded front-side of passport

Example request for uploading the front-side image of a document

Example response

5

Create a check

Create a check by specifying the Client ID, Live Photo ID, Document ID, and the check type.

The response will contain an id (the Check ID). It is required for the next step.

Example request for creating a check

Example response

The response will contain an id (the Check ID). It is required for the next step.

6

Retrieve results

ComplyCube will then run the check. You can retrieve its outcome and detailed breakdown via the API, or review the results in the Portal.

If you have set up webhooks, you’ll also receive a notification once the check is complete.

Example request for retrieving the check outcome

Example response