Once a send message API request goes through, your SMS or MMS will be put into a queue to be sent to its destination. A Message Detail Record (MDR) describes a specific message request and includes those that are active, pending and completed. Opentact stores the most recent version of the MDR.
Copy curl -X GET --header "Content-Type: application/json"
--header "Accept: application/json"
--header "Authorization: Bearer YOUR_API_KEY"
"https://api.opentact.org/messages/834f3d53-8a3c-4aa0-a733-7f2d682a72df"
Copy {
"data": {
"record_type": "message",
"id": "834f3d53-8a3c-4aa0-a733-7f2d682a72df",
"direction": "outbound",
"type": "sms",
"from": "+18445550001",
"to": [
{
"address": "+18665550002",
"status": "delivered",
"updated_at": "2019-01-23T18:10:02.574Z"
}
],
"text": "Hello, World!",
"webhook_url": "https://www.example.com/hooks",
"webhook_failover_url": "https://www.example.com/callbacks",
"use_profile_webhooks": false,
"cost": {
"amount": "1.23",
"currency": "USD"
},
"parts": 1,
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"valid_until": "2019-01-23T18:10:02.574Z",
"errors": [],
"carrier": "Verizon",
"line_type": "Wireless"
}
}