I’m using the Identify API to update customer information including $consent. But I want to update the consent or sometimes remove it.
Updating $consent: [“”] or $consent: null doesn’t change the Consent Status on my customer profile.
Also sending $consent: [“sms”] shows as consent status subscribed on my email channel section instead of sms channel section. It doesn’t matter what value I send to the $consent array it always subscribes to email. Is this right?
Best answer by Dov
Thank you for sharing your question with the Klaviyo Community.
First, I recommend ensuring that you have met all of the SMS setup requirements before you attempt to update the subscription status via the API. I also recommend double-checking that your API request for $consent matches the formatting used in our sample code. Also, since collecting SMS consent utilizes the List V2 API’s Subscribe endpoint, by default, a confirmation message will be sent out, only after consent is confirmed via SMS, will the SMS portion under the Channels section of the profile update. If the value under $consent is [“sms”] this will apply to the SMS consent portion of the profile, rather than the email consent status.