DLR Status Lookup
Retrieve the Delivery Report (DLR) status for a message sent via TxTRIA. This API is not intended for CRM integration or ongoing DLR tracking. Clients should store DLRs by using the 'DLR URLs' configured in the Manage Phone Number Settings or by implementing the Set SMS DLR URL API for proper delivery tracking.
POST
https://txtria.net/api/dlrlookup
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
tracking_id | Tracking id provided after sending a text message | Yes | 6e3edca8cee7471eeed2dfcbc4ef106d |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.net/api/dlrlookup';
$data = array(
'tracking_id' => '6e3edca8cee7471eeed2dfcbc4ef106d',
'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
{
"id": "d-413f7e59",
"send_status": "Delivered",
"status": "Delivered",
"status_pure": "DELIVRD||001",
"status_mapped": 200,
"status_raw": "0",
"error": 200,
"time": "2023-03-12 21:33:45",
"source": "15557778888",
"destination": "15554443333",
"uuid": "d-417f7e59",
"tracking_id": "6e3edca8cee7471eeed2dfcbc4ef106d"
}