Creating a Background Check
Use the API to create a check.
Let’s make our first background check to help illustrate the usage of our API. The following requisites must be met in order to proceed:
Truora API-Key: grants access to our services, reach out to our sales team to get a demo API-key if you don’t have one already. Postman: a collaboration tool for API development. Although it is not required to perform the integration, it helps to perform tests along the way.
Follow these steps to perform a background check:
- Create a POST request to
https://api.checks.truora.com/v1/checks
in Postman. - Click the Headers tab. Create a new key named
Truora-API-Key
. - Set the value for
Truora-API-Key
as your Truora API-key. - Create a new key named
Content-Type
. - Set the value for
Content-Type
asapplication/x-www-form-urlencoded
. - Click the Body tab. Tick the
x-www-form-urlencoded
box. - Create a new key named
national_id
. - Set the value for
national_id
as your ID card number (numbers only, CC for Colombia, CURP for Mexico, DNI for Peru and so on). - Create a new key named
country
and set its value to your country, CO for Colombia, MX for Mexico, BR for Brazil. Check the create check section for the complete list. - Create a new key named
type
and set its value toperson
(If you created a Custom Type and want to use it, set the value to its name instead). - For background checks in Brazil, create a new key named
date_of_birth
and set its value to your date of birth. - Create a new key named
user_authorized
and set its value totrue
. This indicates that you have the authorization of the person to be checked and is mandatory in order to comply with data protection laws. - Create a new key named
force_creation
and set its value totrue
. This forces the creation of a check on the person rather than searching for a previous check. - Click Send. The API returns a response in JSON format. Copy the
check_id
from the response. - Create a GET request to
https://api.checks.truora.com/v1/checks/{{check_id}}
. - Replace
{{check_id}}
with thecheck_id
from the response. - Click the Headers tab. Create a new key named
Truora-API-Key
. - Set the value for
Truora-API-Key
as your Truora API-key. - Click Send. The API returns a response in JSON format containing the check result.
- Click Send to refresh the response in case some results are missing, the time it takes for results to be ready varies between countries and depends on the availability of the databases we use.
- Additionally, You can look at the check details by creating a GET request to
https://api.checks.truora.com/v1/checks/{check_id}/details
and replacing{{check_id}}
with thecheck_id
from the response.