Menu

Expand
Rate this page:

Error 21211

ERROR - 21211

Invalid 'To' Phone Number

You attempted to initiate an outbound phone call, but the Called phone number you supplied was not a valid phone number or was incorrectly formatted. Twilio accepts phone numbers in E164 format: [+] [country code] [subscriber number including area code].

This error will also occur if you attempt to place a call or send a message from a Twilio phone number to itself (i.e. putting the same Twilio number in the To and From parameters).

Possible Causes

  • The formatting of the 'To' number you supplied was invalid.
  • You attempted to send a message or place a call from a Twilio number to itself.

Possible Solutions

  • Ensure you have formatted your phone numbers in E164 format: [+] [country code] [subscriber number including area code]
  • Ensure you have used the correct country calling code for the phone number you are calling.
  • Ensure you are not attempting to call or message from a Twilio number to itself.
Rate this page:

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more