Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Error 21606

Product: Programmable SMS

Error - 21606

The 'From' phone number provided is not a valid, message-capable Twilio phone number.

You can only send SMS messages from a phone number or short code provided by or ported to Twilio, and that phone number must be SMS-capable.

Visit the phone numbers page of your account portal to view a list of phone numbers that you own and to determine whether they are SMS-capable.

Due to anti-spam regulations, the number a user sees when you send an SMS using your application must be the same Twilio number associated with that account. This differs from voice calls, where it is possible to display a verified caller ID other than your Twilio number.

Possible solutions

  • Check that you are using a Twilio phone number with SMS capabilities. You can see your purchased phone numbers and their capabilities in the Twilio console.
  • If sending the message globally, verify that your From phone number is capable of sending messages and you have enabled geographic permissions for your account.
  • If you are sending messages with test credentials, verify that you are using one of the available test credential "magic phone numbers"

Sending global SMS

Only certain countries and phone numbers are currently able to send global SMS messages. You may have received this error while trying to send from a number which is not capable of sending Global SMS messages. For more information, including an up to date list of countries that can send messages globally, please see our FAQ page on Global SMS.

Test Credentials

If you received this error while trying to authenticate with your Test Credentials, you probably tried to send a message with a From number from your live account.

The only number that can be used to send successful messages with your Test Credentials is +15005550006.

For more information, read our documentation on the From number for sending SMS with your test credentials and check out this blog post on using Twilio's test credentials with magic numbers.

Rate this page: