Hi there!
I am using the Bulk Subscribe Profiles API endpoint: https://developers.klaviyo.com/en/reference/bulk_subscribe_profiles
I have noticed that it doesn’t create a profile when subscribing with a person’s email address that doesn’t exist as a Klaviyo profile. The documentation mentions that: If a profile cannot be found matching the given identifier(s), a new profile will be created and then subscribed. I get a 202 status code in my response, but I don't see the person's email address added to my list.
Is there a mistake in my request or is there certain conditions that need to be met to create a profile before subscribing them to a list?
Here is my request:
Request: POST https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs
{
"data": {
"type": "profile-subscription-bulk-create-job",
"attributes": {
"historical_import": false,
"profiles": {
"data": [
{
"attributes": {
"email": "example+123@contact.com",
"subscriptions": {
"email": {
"marketing": {
"consent": "SUBSCRIBED"
}
}
}
},
"type": "profile"
}
]
}
},
"relationships": {
"list": {
"data": {
"type": "list",
"id": "SmXX9X"
}
}
}
}
}
Any insights or examples would be greatly appreciated! Thank you for your help.
Best,
-Amanda