API Reference

SMS Magic Inputs

This section contains a list of magic numbers you can use to send an SMS 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 numbers you should use as 'From' numbers are the magic numbers listed here.


ValueDescription
+15005550001This represents a valid phone number.
+15005550007This phone number is not owned by your account or is not SMS-capable.
+15005550008This number has an SMS message queue that is full.
+15005550006This number passes all validation.
All othersThis phone number is not owned by your account or is not SMS-capable.

To

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

ValueDescription
+15005550001This phone number is invalid.
+15005550002Twilio cannot route to this number.
+15005550003Your account doesn't have the international permissions necessary to SMS this number.
+15005550004This number is blocked for your account.
+15005550009This number is incapable of receiving SMS messages.
All OthersAny other phone number is validated normally.