# 63107: phone\_number must be a valid E.164 formatted phone number

Log Type: APPLICATION

Log Level: ERROR

## Description

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

* 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`.

### Possible solutions

* 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

* [Messages resource](/docs/messaging/api/message-resource)
* [What is E.164?](/docs/glossary/what-e164)
* [Formatting and Validation with Lookup](/docs/lookup/v2-api/formatting-validation)
