curl -X POST "https://api.theary.ai/background-check/v1/orders" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"searchTypes": [
{
"searchType": "EMPLOYMENT"
},
{
"searchType": "EDUCATION"
}
],
"applicant": {
"firstName": "John",
"lastName": "Smith",
"ssn": "123-45-6789",
"birthday": "1990-05-15",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"signedReleaseFileUrl": "https://example.com/signed-release.pdf",
"addresses": [
{
"addressType": "home",
"addressLine1": "456 Oak Avenue",
"addressLine2": null,
"addressCity": "Los Angeles",
"addressState": "CA",
"addressZipCode": "90210",
"addressCountry": "US",
"startDate": "2021-01-01",
"endDate": null
}
],
"applicantAlias": [
{
"firstName": "Jonathan",
"lastName": "Smith",
"middleName": "Michael",
"suffix": "Jr."
}
]
},
"businessContext": {
"entityName": "Apple",
"appliedJobTitle": "Senior Software Engineer",
"worksiteCity": "San Francisco",
"worksiteState": "CA",
"proposedSalary": 100000,
"positionLevel": "STANDARD",
"securityClearanceRequired": false,
"industrySector": "TECHNOLOGY"
},
"history": {
"employment": [
{
"employerName": "Tech Corp",
"position": "Software Engineer",
"employerEmail": "[email protected]",
"employerPhone": "+1-555-123-4567",
"startDate": "2020-01-15",
"endDate": "2023-06-30"
}
],
"education": [
{
"institutionName": "University of California",
"qualification": "Bachelor of Science in Computer Science",
"fieldOfStudy": "Computer Science",
"graduationDate": "2018-05-15",
"institutionContactEmail": "[email protected]",
"institutionContactPhone": "+1-510-642-6000"
}
]
},
"webhookConfig": {
"enabled": true,
"secret": "webhook-secret-for-hmac-validation",
"retryAttempts": 3,
"closeoutEndpoints": {
"EMPLOYMENT": "https://client.example.com/webhooks/employment-closeout",
"EDUCATION": "https://client.example.com/webhooks/education-closeout"
},
"fallbackEndpoint": "https://client.example.com/webhooks/search-closeout"
}
}'