Skip to main content

Background Check

Background Check - Submit

POST /background-check/submit

Start a background check

Parameters

NameInTypeRequiredDescription
typequerystringtrueBackground check type
x-api-keyheaderstringtrueAPI Authentication Key
bodybodyBackgroundCheckSubmitRequestfalseJSON object with candidate details

Enumerated Values

ParameterValue
typeglobalcheck

Body parameter

{
"first_name": "John",
"last_name": "Doe",
"middle_name": "Smith",
"country": "US",
"state": "CA",
"city": "Los Angeles",
"email": "user@example.com",
"phone": "+14155555555",
"year_of_birth": 1985
}

Example responses

A analysis object

{
"id": "98efb578c68591e90f8a05d0d52224a7c70df4fbd3faabc92bb011ab28ac5e7d",
"start_date": "2023-07-30T18:25:56.536Z",
"status": "PENDING",
"type": "globalcheck"
}

500 Response

{
"error": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA analysis objectBackgroundCheckSubmitResponse
500Internal Server ErrorAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

input_body = {
"first_name": "John",
"last_name": "Doe",
"middle_name": "Smith",
"country": "US",
"state": "CA",
"city": "Los Angeles",
"email": "user@example.com",
"phone": "+14155555555",
"year_of_birth": 1985
}

headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': 'string'
}

params = {
'type': 'globalcheck'
}

r = requests.post('https://data.autohost.ai/v1/background-check/submit', json=input_body, headers=headers, params=params)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';
const inputBody = {
"first_name": "John",
"last_name": "Doe",
"middle_name": "Smith",
"country": "US",
"state": "CA",
"city": "Los Angeles",
"email": "user@example.com",
"phone": "+14155555555",
"year_of_birth": 1985
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/background-check/submit', {
method: 'post',
body: JSON.stringify(inputBody),
headers,
});
const responseJson = await response.json();
console.log(responseJson);

Background Check - Results

GET /background-check/results/{id}

Get background check results

Parameters

NameInTypeRequiredDescription
idpathstringtrueBackground check report ID
x-api-keyheaderstringtrueAPI Authentication Key

Example responses

A verification status object

{
"id": "98efb578c68591e90f8a05d0d52224a7c70df4fbd3faabc92bb011ab28ac5e7d",
"start_date": "2023-07-30T18:25:56.536Z",
"stop_date": "2023-07-30T18:29:56.536Z",
"status": "FINISHED",
"risk_status": "CLEARED",
"type": "globalcheck",
"pdf": "https://www.example.com/report.pdf",
"report_items": [
{
"name": "Social Accounts",
"status": "FINISHED",
"items": [
{
"title": "Found 10 registered accounts",
"description": "List of registered accounts:\\n- Apple\\n- Booking\\n- Facebook\\n- Github\\n- Google\\n- Instagram\\n- Spotify\\n- Telegram\\n- Whatsapp\\n- Yahoo",
"tags": [
"social"
]
}
]
},
{
"name": "Phone Verification",
"status": "FINISHED",
"items": [
{
"title": "Phone number is valid",
"subtitle": "054-000-0000",
"description": "- Country: Israel\\n- Carrier: HOT Telecom\\n- Line Type: mobile",
"tags": [
"phone"
]
}
]
},
{
"name": "Avatars",
"status": "FINISHED",
"items": [
{
"title": "Found 7 profile pictures",
"subtitle": "Review to see if any of these are the same person",
"images": [
"https://www.example.com/avatar1.jpg",
"https://www.example.com/avatar2.jpg"
],
"tags": [
"avatar"
]
}
]
}
]
}

500 Response

{
"error": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA verification status objectBackgroundCheckResultsResponse
500Internal Server ErrorAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/background-check/results/{id}', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/background-check/results/{id}', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Schemas

BackgroundCheckSubmitRequest

{
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"country": "st",
"state": "string",
"city": "string",
"gender": "M",
"phone": "string",
"email": "user@example.com",
"year_of_birth": 1900,
"date_of_birth": "2019-08-24"
}

Properties

NameTypeRequiredRestrictionsDescription
first_namestringfalsenoneFirst name
last_namestringfalsenoneLast name
middle_namestringfalsenoneMiddle name (optional)
countrystringfalsenoneISO 3166-1 alpha-2 country code
statestringfalsenoneISO 3166-2 state code (e.g. US-NY)
citystringfalsenoneCity
genderstringfalsenoneGender type (optional)
phonestringfalsenoneE.164 phone number (e.g. +15555555555)
emailstring(email)falsenoneEmail address
year_of_birthintegerfalsenoneYear of birth (e.g. 1990)
date_of_birthstring(date)falsenoneISO 8601 date (e.g. 1990-01-01)

Enumerated Values

PropertyValue
genderM
genderF
genderX

BackgroundCheckSubmitResponse

{
"id": "string",
"status": "PENDING",
"start_date": "2019-08-24T14:15:22Z",
"type": "globalcheck"
}

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenoneBackground check report ID
statusstringfalsenoneBackground check report status
start_datestring(date-time)falsenoneBackground check report start date
typestringfalsenoneBackground check report type

Enumerated Values

PropertyValue
statusPENDING
statusREVIEW
statusFINISHED
statusFAILED
typeglobalcheck

ErrorResponse

{
"error": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
errorstringfalsenonenone

BackgroundCheckResultsResponse

{
"id": "string",
"status": "PENDING",
"risk_status": "CLEARED",
"type": "globalcheck",
"start_date": "2019-08-24T14:15:22Z",
"stop_date": "2019-08-24T14:15:22Z",
"pdf": "http://example.com",
"report_items": [
{
"name": "string",
"status": "FINISHED",
"items": [
{
"title": "string",
"subtitle": "string",
"description": "string",
"tags": [
"string"
],
"image": "http://example.com",
"images": [
"http://example.com"
],
"link": "http://example.com"
}
]
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenoneBackground check report ID
statusstringfalsenoneBackground check report status
risk_statusstringfalsenoneBackground check risk status
typestringfalsenoneBackground check report type
start_datestring(date-time)falsenoneDate when the background check was started
stop_datestring(date-time)falsenoneDate when the background check was finished
pdfstring(uri)falsenoneURL to the PDF report
report_items[object]falsenoneList of report sections
» namestringfalsenoneName of the report section
» statusstringfalsenonenone
» items[object]falsenoneList of report section items
»» titlestringfalsenoneName of the report item
»» subtitlestringfalsenoneSubtitle of the report item
»» descriptionstringfalsenoneDescription of the report item
»» tags[string]falsenoneList of tags
»» imagestring(uri)falsenoneURL to an image
»» images[string]falsenoneList of images
»» linkstring(uri)falsenoneURL for more information

Enumerated Values

PropertyValue
statusPENDING
statusREVIEW
statusFINISHED
statusFAILED
risk_statusCLEARED
risk_statusREVIEW
typeglobalcheck
statusFINISHED
statusFAILED
statusPENDING
statusNO_RESULTS