#List SDRs
https://apiv2.telecomsxchange.com/buyers/smshistoryThis method allows you to pull SMS Detailed records from SMS exchange.
Query parameters
prefixintegeroptionalExample
44sentintegeroptionalExample
1date_fromdatetimeoptionalExample
2020-09-24 17:49:30date_todatetimeoptionalExample
2017-09-24 17:49:30
Body parameters
application/x-www-form-urlencodedshowstringrequired"good" for successfully sunmitted messages, "bad" for failed to submit.
Example
goodprefixintegerrequiredoptional You can specify country code (prefix) or leave empty for all
Example
44sentintegerrequired1 for successfull messages, 0 for failed messages
Example
1date_fromdatetimerequiredOnly show SMS messages that started on this date/time or later, given as an ISO-8601 date/time string, like YYYY-MM-DDTHH:MM:SS (for example 2018-10-05T22:45:32
Example
2015-10-18 19:19:27date_todatetimerequiredOnly show SMS messages that ended on this date/time or earlier, given as an ISO-8601 date/time string, like YYYY-MM-DDTHH:MM:SS (for example 2018-10-06T02:10:03)
Example
2020-10-24 17:49:30
curl --digest \
-u "$TCXC_USERNAME:$TCXC_API_KEY" \
-X POST \
"https://apiv2.telecomsxchange.com/buyers/smshistory" \
-d "show=good" \
-d "prefix=44" \
-d "sent=1" \
-d "date_from=2015-10-18 19:19:27" \
-d "date_to=2020-10-24 17:49:30"| Time | Message | Route | Status | Cost |
|---|---|---|---|---|
| 2019-11-03 · 15:47:12 | 12262403276 → 22961175098 BENIN · Mobile - MTN | NobelGlobe | sent | $0.0137 |
| 2019-11-03 · 15:45:43 | 12262403276 → 22501251280 IVORY COAST · Mobile - Moov | NobelGlobe | sent | $0.0230 |
| 2019-11-03 · 15:45:31 | 12262403276 → 22501159632 IVORY COAST · Mobile - Moov | NobelGlobe | sent | $0.0230 |