Skip to main content

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?

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


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


Well good to hear!


Reply