The Pronto LRN API will allow you to scrub your lists prior to sending SMS or MMS messages. It will allow you to determine if a number is a wireless number or not, capable of receiving a message or not and who the carrier is.
It is a POST requiring the following headers:
Content-Type: application/json
X-Account-Id: your Pronto account ID, the same one that you use when sending messages
Authorization: Bearer {your_api_key} (the same API key used for sending messages)
The JSON body/request payload is:
{
"tn": "5097341345"
}
And the response payload:
{
"number": "5097341345",
"lrn": "15096190000",
"enhanced": {
"carrier": "Charter IP Enabled Services",
"carrier_type": "IPES",
"city": "Kennewick",
"zip_code": "99336",
"county": "Benton",
"timezone": "-0800",
"state": "WA",
"rate_center": "KENNEWICK",
"lata": "676",
"ocn": "792K"
},
"messaging": {
"enabled": false,
"provider": "Charter Fiberlink, LLC",
"country": "United States",
"country_code": "US",
"reference_id": null
}
}
The key things to attention to are "carrier_type" (WIRELESS, WRSL, PCS and PCSR indicate a mobile number) and "messaging.enabled" which indicates if a number if capable of receiving text messages.