Bulk Phone Lookup
POST
https://txtria.net/api/bulk-phone-lookup
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
csv_url |
URL pointing to the CSV file
Valid CSV Format Example Download Sample CSV |
Yes | https://mydomain.com/lookup/job1.csv |
notify_url |
TxTRIA will send a post to this URL on completion
Post will contain following information bulk_lookup_completed => 1 batch_key => B8c92b641a48033aa11ba07a9b2ac5a01 bulk_lookup_file => URL to download CSV completed => 2022-01-20 10:30:00 |
Yes | https://mydomain.com/lookup-job/callback |
notify_email | If given, TxTRIA will send an email notification about completion to this address | No | myemail@domain.com |
$url = 'https://txtria.net/api/bulk-phone-lookup';
$data = array(
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca'
'csv_url' => 'https://mydomain.com/lookup/job1.csv',
'notify_url' => 'https://mydomain.com/lookup-job/callback',
'notify_email' => 'myemail@domain.com',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"data": {
"batch_key": "B8c92b641a48033aa11ba07a9b2ac5001",
"total_cost": "0.00195",
"total_numbers": 3
},
"message": "Process initiated successfully!"
}