SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site,, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Can I Prevent Specific Phone Number Types from Being Verified?

Verification Services in Verify V2 can be configured to validate phone numbers prior to attempting a verification. Enabling this option also gives you the option of skipping landline phone numbers, and only attempting to verify SMS-capable phone numbers. This guide will explain how to control these options.

Create a new Verification Service that Blocks Landlines

Landline phone number blocking can be enabled when a new Verification Service is created. The Lookup and Landline Validation options will just need to be enabled in Console, or included with positive values in your API request.

For examples, please see the Create a Verify V2 Service section of Getting Started with Verify V2.

Update an existing Verification Service to Block Landlines via Console

  1. Access the Verify Services page in Console.
  2. Click the desired Service to modify.
  3. Go to the SMS tab
  4. Set Carrier information and Landline validation to On
  5. Click Save.

Update an existing Verification Service to Block Landlines via the REST API

Verify V2 Services can also be updated via the REST API. Here’s an example cURL script:

curl -X POST \
--data-urlencode "LookupEnabled=true" \
--data-urlencode "SkipSmsToLandlines=true" \

This example will update the existing verification service with Service SID VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX to enable the Lookup and Landline Validation options. To make this script work for you, make the following updates, and then paste it into a terminal window:

For more details, including code samples using our Helper Libraries, please see Update a Service (Twilio Docs).

Have more questions? Submit a request
Powered by Zendesk