Skip to main content
$data = [
"data" =>
[
"type" => "profile",
"attributes" => [
"email" => "ajay.makwana+8554@gmail.com",
"first_name" => "Ajaymak",
"phone_number" => "+14168902222"
]
]
];

This is the phone number I’m trying to enter and latest API version 2022-10-17.  But Still kit show me an error. Please help with me that.

{
"errors": r
{
"id": "06b72c92-4b68-4680-b3cb-456f499468da",
"status": 400,
"code": "invalid",
"title": "Invalid input.",
"detail": "Invalid or unsupported phone number",
"source": {
"pointer": "/data/attributes/phone_number"
},
"meta": {

}
}
]
}

 

Hi @Fanbasis and welcome to the Community!

 

There are a few reasons why this error message could occur. Firstly, the number has to be real/valid and in E.164 format, although the number in your example appears to meet these requirements. In the future, you can check if a number is valid using this third-party tool.

 

On the other end, this error can also occur if you don’t have SMS set up in your Klaviyo account, which you can enable/verify from Account > Settings > SMS

You can find more directions on how to set up SMS through this article here.

 

I hope this helps, and thanks for using the Community!

 

- Brian


Reply