This feature is currently in the GA maturity stage.
Customers using the below products will now have access to the Global Safe List API.
Note : Global Safe List API supports only the SMS and Verify CALL channels.
Global Safe List API allows you to maintain a list of phone numbers and phone number 1k prefixes that will never be blocked by Verify Fraud Guard, Verify Geo Permissions, Programmable Messaging SMS Pumping Protection or any other internal fraud & risk check solution.
The Global Safe List API supports 1k prefix safelisting for phone numbers with a total length at-least 10 characters, including the +
sign and country code. For instance, if a phone number is +18001234567
, its 1k prefix would be represented as +18001234xxx
, where xxx
replaces the last three digits.
While we are always adapting our fraud detection systems to keep false positives extremely low, Global Safe List API adds another layer of protection by letting you mark legitimate phone numbers and phone number 1k prefixes as safe to ensure they are never erroneously blocked.
This API contains three endpoints:
Alternatively, you can add a previously blocked phone number to the Global Safe List via Twilio Console on the Verify Logs Blocked Verifications tab. See Viewing Logs With Twilio Console for more information.
Global Safe List API provides a built-in rate limit of 500 requests per minute. If you reach this limit, you will start receiving HTTP 429 "Too Many Requests" responses.
Global Safe List API has a timeout value of 15 seconds. However, its 99th percentile is within 1 second.
These properties are returned in the JSON response output.
The unique string that we created to identify the SafeList resource.
^GN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The phone number in SafeList.
POST https://accounts.twilio.com/v1/SafeList/Numbers
Adds a single phone number or a phone number 1k prefix to the Safe List based on the given phone_number
parameter.
The Phone number 1k prefix format should follow the regex pattern : ^\+[1-9]\d{%d,11}xxx$
. For example : If a phone number is +18001234567
, the 1k prefix is +18001234xxx
. The 1k prefix of a phone number of length at-least 10 is allowed.
Phone numbers must be in E.164 format.
If attempting to add a number or phone number 1k prefix that already exists in the Safe List, HTTP 400 with Error Code 60411 will be returned. Phone numbers or phone number 1k prefixes will remain in the Safe List indefinitely until they are explicitly removed.
application/x-www-form-urlencoded
The phone number to be added in SafeList. Phone numbers must be in E.164 format.
GET https://accounts.twilio.com/v1/SafeList/Numbers
Checks if a single phone number or a phone number 1k prefix is in the Safe List based on the given phone_number
parameter. Phone numbers must be in E.164 format.
If the given phone number or phone number 1k prefix is not in the Safe List, HTTP 404 will be returned.
The phone number to be fetched from SafeList. Phone numbers must be in E.164 format.
DELETE https://accounts.twilio.com/v1/SafeList/Numbers
Removes a phone number or a phone number 1k prefix from the Safe List. Phone number must be in E.164 format.
If the given phone number or phone number 1k prefix is not in the Safe List, HTTP 404 will be returned.
The phone number to be removed from SafeList. Phone numbers must be in E.164 format.