Validation Error on outbound call to Brazil number
# support
h
I am trying to initiate an outbound call but the API is giving me an error with the number format. I checked the number and its fine. It seems like there is an issue in the way VAPI validated the number. This is a number from Brasil The number format is: +55 xx xxxx xxxx
v
To resolve the validation error for your Brazilian number, try disabling strict E.164 validation in your API request by adding
"numberE164CheckEnabled": false
to the
customer
object. For example:
Copy code
json
{
  "customer": {
    "number": "+5511999999999",
    "numberE164CheckEnabled": false
  }
}
This should allow the call to proceed even if the number format is not strictly E.164 compliant. Reference: See the Outbound Calling documentation for more details. Source: - [Outbound Calling Documentation](https://docs.vapi.ai/phone-calling/outbound-calls)
v
Message marked as helpful by @Hassaan! 🎉
c
Hi hassaanz, To address the issue with number validation for Brazilian numbers in your API requests, you should disable strict E.164 validation by adding
"numberE164CheckEnabled": false
to the
customer
object. Here's an example:
Copy code
json
{
  "customer": {
    "number": "+5511999999999",
    "numberE164CheckEnabled": false
  }
}
This adjustment should allow the call to proceed even if the number format isn't strictly compliant with the E.164 standard. For further details, you can refer to the [Outbound Calling Documentation](https://docs.vapi.ai/phone-calling/outbound-calls). Let us know if you need further assistance.