60703: Invalid phone numbers format
MESSAGING
ERROR
This error occurs when the origination or destination phone number in your request is not in E.164 format. Use E.164 formatting for To and From phone numbers in API requests. The Messaging API requires the recipient phone number in To to be in E.164 format.
- The origination or destination number is missing the leading
+sign. - The phone number includes separators such as spaces or dashes instead of a continuous
E.164value. - The number was submitted in a local or national format without the full country code required by
E.164. (help.twilio.com) - The
Tovalue in your Messaging API request is not a recipient phone number inE.164format. - The
Fromvalue is being sent as a phone number, but it is not formatted as a valid Twilio sender inE.164.
- Update the
FromandTovalues so each phone number is inE.164format, for example+14155552671. (help.twilio.com) - Remove spaces, dashes, and other formatting characters from the phone number before sending the request.
- Include the country code for each number. If you are converting a local number to
E.164, remove any domestic dialing prefix such as a leading0when required for that country. (help.twilio.com) - If you are sending a message with the Messaging API, make sure
Tocontains the recipient phone number inE.164format andFromis a valid Twilio sender for your account.