API Reference

Phone Call Magic Inputs

This section contains a list of magic numbers you can use to make a phone call using your test credentials.

From

Your test credentials don't have access to any valid 'From' phone numbers on your real account. Therefore, the only phone number you should use as a 'From' number is the magic number listed here.

ValueDescription
+15005550001This represents an invalid phone number.
+15005550006This represents a valid phone number.
All othersThe represents a phone number that is not verified for your account.

To

The following magic numbers can be passed in the 'To' parameter to test for both success and error cases.

ValueDescriptionError Code
+15005550001This represents an invalid phone number21217
+15005550002Twilio cannot route to this number.21214
+15005550003Your account doesn't have the international permissions necessary to SMS this number.21215
+15005550004This number is blocked for your account.No error
All othersAny other phone number is validated normally.21216