Previously we were using the POST /api/v2/list/{list_id}/ subscribe endpoint which created the profile via the passed in email in Klaviyo with email: subscribed set and returned their id in the response. We were then storing this ID and if the user then wanted to add SMS we were using the PUT api/v1/person/${id}?phone_number=${phone}&api_key=${apiKey} to add their phone number.
Because the v1/v2 are now deprecated we are looking to update these endpoints. I tried using the POST /api/profile-subscription- bulk-create-jobs/ endpoint which add the email and email subscribed to Klaviyo but a status of 202 or 204 is returned with no data which I’m assuming is due to if people are doing a bulk upload? So the ID is no longer available.
Would this now have to be done using 3 endpoints? create profile, update profile w/ email, update profile w/ phone number.
I also need to ensure that the user is set to email subscribed when being added to Klaviyo.
Thanks