21606: 'From' number is not a valid message-capable Twilio number for this account
MESSAGING, IAM
ERROR
You can send SMS messages only from a sender that your account can use for messaging. Valid senders include an SMS-capable Twilio phone number, a Twilio-hosted or ported number after provisioning completes, a supported Alphanumeric Sender ID, or a short code. If you send from a short code, the destination must be in the same country as that short code.
- The
Fromvalue is not a Twilio sender on the account or subaccount that made the API request. - The sender is not SMS-capable, or its porting or hosting process is not complete yet.
- The
Fromphone number is not formatted inE.164. - The sender is a short code and the
Tonumber is in a different country. - The sender is an Alphanumeric Sender ID for a country that does not support it, or for a country that requires preregistration that is not complete.
- You are using test credentials and a live
Fromnumber instead of a supported test number.
- Confirm in Console that the sender belongs to the same account or subaccount whose credentials you used, and that the sender has SMS capability.
- Format the
Fromphone number inE.164, for example+14155552671. - If you use a short code, send only to recipients in the same country as that short code.
- If you use an Alphanumeric Sender ID, send only to supported countries and complete sender registration where required.
- If you recently ported or hosted the number, wait until Twilio finishes provisioning the sender before you send messages from it.
- If you test the Messages API with test credentials, use
+15005550006as theFromnumber.