49

I´m looking for a comfortable way to realize double opt-in via mailchimp API 3.0. It looks like there was an option in version 2.0 which told mailchimp to send an opt-in confirmation email automatically as soon as a new member is added via API call.

It seems this parameter is not available any more in API 3.0. Has anyone an idea how to realize it with the new version of the API?

Vogel612
  • 5,620
  • 5
  • 48
  • 73
Michael
  • 2,966
  • 3
  • 30
  • 33

1 Answers1

139

When using Double Opt In on a list, people who have filled out your signup form will have an API status of pending until they confirm their subscription.

In order to mimic that functionality in API v3.0, set the user's status to pending instead of subscribed in your POST call. See How to Manage Subscribers for more details.

TooMuchPete
  • 4,583
  • 2
  • 17
  • 21
  • I just changed subscribed to pending and it works perfectly; the opt-in email is sent. – texelate Jul 13 '16 at 07:03
  • 3
    Right on! You should be hired to rewrite Mail Chimp API documentation - less words, more straight-to-the point examples. – Milan May 10 '18 at 13:27
  • @TooMuchPete - I like that the answer is short and to the point, and the link is the same - but maybe something about "pending will always send a confirmation email, Even though you have not enabled double opt-in on your list in mailchimp" - I don't really know, the answer is good! – Stender Aug 16 '18 at 06:20