curl -X POST "https://api.theary.ai/background-check/v1/batches" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"orders": [
{
"searchTypes": [
{
"searchType": "EMPLOYMENT",
"searchTitle": "Software Engineer"
}
],
"applicant": {
"firstName": "John",
"lastName": "Smith",
"ssn": "123-45-6789",
"email": "[email protected]"
},
"entityName": "Apple",
"jobTitle": "Senior Software Developer",
"employmentDates": {
"startDate": "2020-01-15"
},
"proposedSalary": 100000,
"entityLocation": "San Francisco, CA",
"webhookConfig": {
"enabled": true,
"secret": "webhook-secret-for-hmac-validation",
"retryAttempts": 3,
"closeoutEndpoints": {
"EMPLOYMENT": "https://client.example.com/webhooks/employment-closeout"
},
"fallbackEndpoint": "https://client.example.com/webhooks/search-closeout"
}
},
{
"searchTypes": [
{
"searchType": "EMPLOYMENT",
"searchTitle": "Product Manager"
}
],
"applicant": {
"firstName": "Jane",
"lastName": "Doe",
"ssn": "987-65-4321",
"email": "[email protected]"
},
"entityName": "Google",
"jobTitle": "Product Manager",
"employmentDates": {
"startDate": "2019-03-01"
},
"proposedSalary": 120000,
"entityLocation": "Mountain View, CA"
}
]
}'