Skip to main content

I am creating a call via = https://a.klaviyo.com/api/profiles?additional-fieldssprofile]=subscriptions

With the body as follows -- the profile is being created but not subscribed. What am I doing wrong? How can I subscribe the user to a specific list too with this call?

data: {
type: "profile",
attributes: {
email: email,
properties: {
signup_date: created_at,
}
},
subscriptions: {
email: {
marketing: {
can_receive_email_marketing: true,
consent: "SUBSCRIBED",
consent_timestamp: created_at
}
}
}
},

 

Hi ​@searchwithjack ! Thanks for reaching out to the Community, we’re happy to have you! 

The best endpoint to use for subscribing a profile would be our ‘Bulk Subscribe Profiles’ endpoint: https://developers.klaviyo.com/en/reference/bulk_subscribe_profiles

The will subscribe the profile AND add them to the list that you specify. 

I hope this helps, and let me know if you have any further questions! 


Reply