Cannot add SMS consent via API

  • 4 January 2022
  • 2 replies


Hi! I’m trying to set up an API call that would subscribe user and create consents for both e-mail and SMS. My JSON looks like this:

"profiles": [
"email": "m***@z******s.**",
"phone_number": "+38631******",
"sms_consent": true,
"$consent": ["sms"]

and API url is structured like this:


I tried both Single and Double opt-in and it’s not working. Both e-mail and phone number are saved to profile, but only e-mail consent is displayed.

 I think I tried everything, but it’s still not working. Does anyone have an idea what I’m doing wrong?

Thank you!


Best answer by alex.hong 4 January 2022, 19:52

View original

2 replies


It’s very likely that sms consent is not displayed in Klaviyo, because SMS are currently not available in EU. :disappointed_relieved:

Userlevel 5
Badge +30

Hi there @mihamajetic,

Welcome to the Community and thank you for sharing your findings with us!

Since it looks like you are using an international calling code 386, which indicates it may be a Slovenian number, that is why you are currently experiencing the issue you are running into. At this time, Klaviyo SMS is not available everywhere. Currently, you can only collect SMS consent and send text messages in: 

  • *United States
  • Canada
  • UK
  • Australia

*The United States only includes the 50 US states and not Puerto Rico or other territories.

More info regarding this can be found in the related help center article!

Have a good day!