Skip to main content
Solved

Collecting SMS consent with Client Subscription API


Forum|alt.badge.img+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?

Best answer by TheSuburbs

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Omar
Partner - Platinum
Forum|alt.badge.img+46
  • 2025 Champion
  • 494 replies
  • October 31, 2023

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


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 6 replies
  • Answer
  • November 1, 2023

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


Omar
Partner - Platinum
Forum|alt.badge.img+46
  • 2025 Champion
  • 494 replies
  • November 3, 2023

Well good to hear!