Skip to main content
Problem Solver I
October 31, 2023
Solved

Collecting SMS consent with Client Subscription API

  • October 31, 2023
  • 3 replies
  • 435 views

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?

    This topic has been closed for replies.
    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

    3 replies

    Omar
    Partner - Platinum
    2025 Champion
    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

    Helping E-commerce brands maximize Lifetime Value & Profits with Klaviyo, CRO & CVO - Get your free Audit - https://link.polarisgrowth.com/free-audit
    TheSuburbsAuthorAnswer
    Problem Solver I
    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
    2025 Champion
    November 3, 2023

    Well good to hear!

    Helping E-commerce brands maximize Lifetime Value & Profits with Klaviyo, CRO & CVO - Get your free Audit - https://link.polarisgrowth.com/free-audit