I am using Lists v2 API to subscribe new emails to a Klaviyo list with double opt-in enabled.
The emails are captured via a custom (non-Klaviyo) form.
The call is in node.js and looks similar to this:
const listUrl = `https://a.klaviyo.com/api/v2/list/${listId}/subscribe`;
const data = {
api_key: this.tokens.privateToken,
profiles: [
{
{ email: profile.email }
},
],
};
const response = await fetch(listUrl, {
method: "post",
body: JSON.stringify(data),
headers: { "Content-Type": "application/json" },
});
I can see the new profiles being added in the “Profiles” section of the dashboard.
However none of the profiles receive the initial email for double opt-in. I also checked the spam folder(s).
Any guidance on where to look for troubleshooting this issue will be appreciated.
Sidenote in case it is related: during my tests I tried to send emails manually via Messages screen to some of those recipients and all of them Soft bounced. I stopped trying after 3-4 attempts.
Best answer by David To
View original