63107: phone_number must be a valid E.164 formatted phone number
MESSAGING
ERROR
You provided a phone_number value that Twilio could not parse as a valid E.164 phone number. Use a leading +, include the country code, and limit the number to a maximum of 15 digits.
- The
phone_numbervalue does not start with+and a country code. - The
phone_numbervalue includes spaces, parentheses, hyphens, or other punctuation. - The
phone_numbervalue is too short, too long, or uses an invalid country code. - You passed a locally formatted number without converting it to
E.164.
- Reformat
phone_numberasE.164, for example+14155552671. - Remove formatting characters so the value contains only the leading
+, country code, and subscriber number. - If you collect numbers in local format, collect the country and normalize the number before sending the request.
- Validate the number with Twilio Lookup before sending the request. A regular expression alone cannot confirm that a phone number is valid.