Skip to main content
Solved

API to subscribe new users to email isn't working with double opt-in


Forum|alt.badge.img+1

Hi,

 

I have integrated via the REST API and I am trying to add my own email to a list.

 

When I do so without double-opt-in enabled the email gets added to list list and the profile is created.

 

I then try to turn on double opt-in, and now the email does not get added to the list.  Further there is NO EMAIL sent to this address. I tried to remove the email and try a new one but no luck. Please help as my 60 days support is over.

 

If I can’t get this resolved in the next 12 hours I will definitely churn.

Best answer by retention

Hi @amk22012, welcome to the community!

So, when the double-opt in is enabled for a List, and you are using the “Create Client Subscription” API call, then the email is only added once the user confirms the double opt-in request.  This is behaving by design for double opt-ins.  You can read about the double opt-in process here:

As you already mentioned, you can decide to use Single Opt-In if that fits your business requirements. 

However, if you just want to create a Profile in Klaviyo, but not Subscribe them to a List, you can also add a Profile to Klaviyo using the “Create or Update Client Profile.” This makes no opinion on their marketing consent status and simply creates a Profile in Klaviyo.

Hope this helps!  

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 944 replies
  • Answer
  • August 1, 2023

Hi @amk22012, welcome to the community!

So, when the double-opt in is enabled for a List, and you are using the “Create Client Subscription” API call, then the email is only added once the user confirms the double opt-in request.  This is behaving by design for double opt-ins.  You can read about the double opt-in process here:

As you already mentioned, you can decide to use Single Opt-In if that fits your business requirements. 

However, if you just want to create a Profile in Klaviyo, but not Subscribe them to a List, you can also add a Profile to Klaviyo using the “Create or Update Client Profile.” This makes no opinion on their marketing consent status and simply creates a Profile in Klaviyo.

Hope this helps!  

 


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • August 1, 2023

Yes, I already know this. I am saying that my double-opt-in email is not being delivered. Possibly my IP is blocked??


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • August 2, 2023

Hey @amk22012,

Have you also checked your inbox’s other folders such as a promotion, spam, or junk? Sometimes the double opt-in email will land in those folders. 

In the same train of thought, do you have any inbox or networking filters through your DNS or did you happen to previously have a dedicated/authenticated domain? These are some common causes for the double opt-in email to be either blocked or placed in spam when self-testing. 

How often are you testing? If you’ve been testing this a number of times in a short period of time, you may have hit the list bombing prevention system

David


Forum|alt.badge.img
  • Contributor I
  • 1 reply
  • November 21, 2023

Hi @David To,

I am using API (https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs) to subcribe a double opt-in list. Sometimes email is being delivered, but sometimes email is not being delivered. How I can check it work or not? How I can add IPs of my app to whitelist of Klaviyo?

 

Phuong Vo


Forum|alt.badge.img+3
  • Problem Solver I
  • 8 replies
  • November 29, 2023

Hi, same problem here. When list is single-opt-in then “profile-subscription-bulk-create-job” endpoint adds profile to list with consent status = subscribed.

If I change lists opt-in process to "double-opt-in" and subscribe new email it does not receive “Email Confirmation” nor is added to list. Only profile with status "never subscribed" is created.

Maybe the problem is the account is "test account?"
 

 

EDIT:  It works - BUT I found confirmation email in SPAM folder

gmail says: 

Why is this message in spam? 

Lots of messages from ksdn.klaviyomail.com were identified as spam in the past.

How can I avoid that?

 

EDIT2: I already found how to setup dedicated domain: https://help.klaviyo.com/hc/en-us/articles/115000357752?source=search

 

Thank you everything works just fine :) 

cheers