Skip to main content

I am successfully adding new Profiles to Klaviyo via the API. I am getting the Profiles added to a List and also success in having the Email status as “Subscribed”. But I can’t get the same for SMS.

 

I am including this in my request body:
"subscriptions": {
                                "email": {
                                    "marketing": {
                                        "consent": "SUBSCRIBED"
                                    }
                                },
                                "sms": {
                                    "marketing": {
                                        "consent": "SUBSCRIBED"
                                    }
                                }
                            }

 

If double-opt in is the issue, I am getting no email/text for confirming the opt in either.
 

 

I meant to add I am using this endpoint: https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs/


Hi @MaxT,

I left a comment with a working version of the bulk subscription endpoint that was subscribing SMS profiles here: 

 

Beyond double opt-in (as you mentioned), another thing to check is whether you’re testing with a profile that has already unsubscribed from SMS. I don’t know if this is still the case, but at one point in order to re-subscribe a profile to SMS you needed to add them to a list with the name “SMS Subscribers.” I can’t find documentation for this or my old support thread, but this was definitely the case and we still subscribe all SMS people to this list.

Hope that helps.

 

Cheers,

Kevin.


Thank you regarding the SMS subscription status issue. However, now I have a new problem.

 

Previously with all my testing the above code was creating/updating Profiles and successfully marking them as Email “Subscribed” I was using the February 2024 Revision throughout all my testing.

Now today I noticed all of the Profiles are coming into Klaviyo as Email status “Never subscribed”.

The only code I changed is I recently updated to the latest GA revision May 2024. But I see no change log notes related to this.

Please HELP as there are only a few weeks left to this new API deadline! thank you.

 


Hey @MaxT, I just answered what seems like a related question here: 


Please lmk if that unblocks you / solves your problem!


Reply