Skip to main content
Problem Solver III
June 29, 2022
Solved

What's the current method for removing email consent via PI?

  • June 29, 2022
  • 12 replies
  • 633 views

I could only find older answers to this, or ones relating to sms not email.

When customers use their account pages on our site to unsubscribe, I need to synchronise this with their Klaviyo profile.

I have tried doing this with /identify, /profile and even the /exclusions endpoint. None of them actually work. Although the requests go through fine, the profile consent status stays the same.

I have tried setting $consent to an empty array, to false, to null, to ‘None’ and all sorts of variations. I have tried sending ‘email_consent’ => false, ‘$email_consent’ => false, to ‘None’, to null and all sorts of variations on that, too.

Each time the custom ‘updated’ property of the profile is set to the timestamp of the request, so I know it got through, and they’re showing as HTTP 200, returning a 1, all good. But no changes to the profile’s $consent.

How do I actually go about doing this via API please?

This topic has been closed for replies.
Best answer by stephen.trumble

Hey @dartacus 

Thank you for reaching out for help with this! Thank you @chrisB for jumping in to help! Love to see the collaboration. 

quick question are you using the List API docs to build this? Typically if you set $consent:false it will remove email consent on the customers profile.

12 replies

Problem Solver I
October 13, 2022

Im using https://a.klaviyo.com/api/identify  

I tried  "$consent": "false" is not working. Could any one help

Thanks

Problem Solver II
October 13, 2022

@Aaron can you add to this one?