Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Testing SMS Pumping Risk with Magic Numbers


(warning)

Warning

Please review the Magic Numbers for Lookup and use your testing credentials for the correct Region when testing phone numbers. If you use your production credentials then the phone numbers do not display the correct responses shown below.

Note: Your testing credentials are region specific so make sure you have selected the region you want to test in the top right corner of the Auth Tokens page of your Console(link takes you to an external page) before testing phone numbers.


SMS Pumping Risk Magic Numbers

sms-pumping-risk-magic-numbers page anchor

These phone numbers have simulated information for the following inputs which is for testing the SMS Pumping Risk feature. Testing SMS Pumping Risk Score with Magic Numbers works just like SMS Pumping Risk in production, and only requires you to submit the phone number with your query.

Note: These phone numbers are examples only and do not include real time data.

Below are the Phone Numbers for SMS Pumping Risk Score, along with their Inputs/Outputs:

below-are-the-phone-numbers-for-sms-pumping-risk-score-along-with-their-inputsoutputs page anchor

These phone number examples show different types of SMS Pumping Risk Scores.

Phone NumberCarrierRiskCategoryNumberBlockedNumberBlockedDateNumberBlockedLast3MonthsSMSPumpingRiskScore
+441234567890highfalse"2023-07-20T17:10:17Z"true2
+911234567890lowfalsenullnull2
+621234567890highfalse"2023-07-12T17:03:13Z"true44
+921234567890highfalsenullnull40
+441234567891hightrue"2023-09-06T03:44:21Z"true34
+911234567891hightrue"2023-09-05T01:23:57Z"true36
+621234567891hightrue"2023-09-06T17:06:32Z"true44
+921234567891hightrue"2023-09-05T17:10:13Z"true34

These phone number examples show different types errors when using SMS Pumping Risk.

Phone NumberError Code
+44123456789260003
+44123456789360600
+44123456789460601
+44123456789560606
+44123456789660608
+44123456789760613

SMS Pumping Risk Lookup

sms-pumping-risk-lookup page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.lookups.v2.phoneNumbers('+447772000001')
_10
.fetch({fields: 'sms_pumping_risk'})
_10
.then(phone_number => console.log(phone_number.smsPumpingRisk));

Output

_26
{
_26
"calling_country_code": "1",
_26
"country_code": "US",
_26
"phone_number": "+447772000001",
_26
"national_format": "(415) 992-9960",
_26
"valid": true,
_26
"validation_errors": [],
_26
"caller_name": null,
_26
"sim_swap": null,
_26
"call_forwarding": null,
_26
"line_status": null,
_26
"line_type_intelligence": null,
_26
"identity_match": null,
_26
"reassigned_number": null,
_26
"sms_pumping_risk": {
_26
"carrier_risk_category": "moderate",
_26
"number_blocked": false,
_26
"number_blocked_date": null,
_26
"number_blocked_last_3_months": null,
_26
"sms_pumping_risk_score": 61,
_26
"error_code": null
_26
},
_26
"phone_number_quality_score": null,
_26
"pre_fill": null,
_26
"url": "https://lookups.twilio.com/v2/PhoneNumbers/+14159929960"
_26
}


Rate this page: