Get Phone History
Get Phone history from your TxTRIA account
POST
https://txtria.net/api/phonehistory
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
number | Phone number you want to fetch records for | Yes | 832324XXXX |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.net/api/phonehistory';
$data = array(
'number' => '562742XXXX',
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca'
);
$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",
"total_unique": 10,
"most_recent_did": "7894654654",
"most_recent_date": "2024-11-18 11:51:44",
"most_recent_msg_id": "d9b9360b2375b4dad86a3291749c9f9e4",
"total_message_count": 300,
"number_history": [
{
"did": "7894654654",
"tid": "GFSDA5423",
"total_message_count": 200,
"created_date": "2011-11-18 11:51:44",
"most_recent_msg_id": "d9b9360b2375b4dad86a3291749c9f9e4",
"most_recent_date": "2024-11-18 11:51:44",
"optin": "yes"
}
]
}