Skip to main content
Contributor I
November 6, 2023
Solved

Profile subscription for email

  • November 6, 2023
  • 3 replies
  • 566 views

HI!

 

Some time ago I created over 10 000 profiles in Klaviyo and then put them into different lists, I was using Klaviyo API for that. Now I want to iterate over each profile and change their Email from “Never subscribed” to “Subscribed”, based on my own parameters from my own database. I do not want to add existing profiles to other lists, I just want to change the email subscription status. How can I do that, which endpoint should I use?

    This topic has been closed for replies.
    Best answer by KeviSunshine

    Hey @saittam check out the Subscribe Profiles endpoint: https://developers.klaviyo.com/en/reference/subscribe_profiles.

    This is the one Klaviyo recommends for this operation.

    It is recommended that you use the Subscribe Profiles endpoint if you're trying to give a profile consent to receive email marketing, SMS marketing, or both.

     

    Cheers,

    Kevin.

    3 replies

    KeviSunshine
    Expert Problem Solver III
    Expert Problem Solver III
    November 6, 2023

    Hey @saittam check out the Subscribe Profiles endpoint: https://developers.klaviyo.com/en/reference/subscribe_profiles.

    This is the one Klaviyo recommends for this operation.

    It is recommended that you use the Subscribe Profiles endpoint if you're trying to give a profile consent to receive email marketing, SMS marketing, or both.

     

    Cheers,

    Kevin.

    saittamAuthor
    Contributor I
    November 9, 2023

    But in your given endpoint I still need to give the extra parameter “relationships” which then add the profile into specified list, I do not need that. My one and the only goal is just to give a profile consent to receive email marketing.

    Brian Turcotte
    Klaviyo Alum
    November 9, 2023

    Hi @saittam!

    At this time, there isn’t an API endpoint that allows you to only change the consent status - that said, you could just use the endpoint that @KeviSunshine suggested and specify the list that they’re already subscribed to. I’d also recommend ensuring that the list is set to single opt-in before attempting this.

     

    Best,

    Brian