Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

63107: phone_number must be a valid E.164 formatted phone number

Twilio Messaging DocumentationMessaging

Description

description page anchor

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.

Possible causes

possible-causes page anchor
  • The phone_number value does not start with + and a country code.
  • The phone_number value includes spaces, parentheses, hyphens, or other punctuation.
  • The phone_number value 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_number as E.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.

Additional resources

additional-resources page anchor