Solved

Collecting SMS consent with Client Subscription API

  • 31 October 2023
  • 3 replies
  • 139 views

Badge +3

I’m trying to build a client side subscription using the new Client API and wondering if its possible to collect SMS consent.

The documentation here doesn’t include any reference to SMS consent:
https://developers.klaviyo.com/en/reference/create_client_subscription

However the API documentation here says it should be included in the attributes object when posting to ‘a.klaviyo.com/api/profile-subscription-bulk-create-jobs’:
https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api#subscribe-a-profile-via-api

"subscriptions":{
"email":[
"MARKETING"
],
"sms":[
"MARKETING"
]
}


But the Create Client Subscription documentation (first link) specifically doesn’t include ‘subscriptions’ as an option in the documentation, so I’m working if this has simply been overlooked or is it not possible?

icon

Best answer by TheSuburbs 1 November 2023, 05:42

View original

3 replies

Userlevel 7
Badge +45

Hi @TheSuburbs,

Please check this and see if this helps:

https://developers.klaviyo.com/en/reference/subscribe_profiles

 

Omar Lovert // Polaris Growth // Klaviyo Master Platinum Partner

We help with e-commerce growth through CRO, Klaviyo and CVO

Badge +3

Thanks Omar, I’m in need to a client  side subscription so I couldn’t use the ‘subscribe profiles API.


However, upon further testing, simply including a phone number with the Client API seems enough to be provide consent, no need for a specific ‘subscriptions’ object in the data

Userlevel 7
Badge +45

Well good to hear!

Reply