Home >Blog >How to Disable MailChimp Double Opt-in for API version 2.0

How to Disable MailChimp Double Opt-in for API version 2.0

David Bosley

If you are using MailChimp’s API version 2.0 to capture and sends leads to MailChimp, but wish to disable the double opt-in feature, then this short blog post is for you.

1. Visit MailChimp API Docs and more specifically, the /lists/subscribe.format – v2.0 page.

2. search “double_optin”

You should see the following 2 sections of text:

double_optin bool optional – optional flag to control whether a double opt-in confirmation message is sent, defaults to true. Abusing this may cause your account to be suspended.

send_welcome bool optional – optional if your double_optin is false and this is true, we will send your lists Welcome Email if this subscribe succeeds – this will *not* fire if we end up updating an existing subscriber. If double_optin is true, this has no effect. defaults to false.

With this information, you can see by this Example Request JSON that you can easily change your double opt-in from the default “true” to “false” which will successful disable the double opt-in message.

Example Request JSON

{
“apikey”: “example apikey”,
“id”: “example id”,
“email”: {
“email”: “example email”,
“euid”: “example euid”,
“leid”: “example leid”
},
“merge_vars”: {
“new-email”: “example new-email”,
“groupings”: [
{
“id”: 42,
“name”: “example name”,
“groups”: [
“…”
] }
],
“optin_ip”: “example optin_ip”,
“optin_time”: “example optin_time”,
“mc_location”: {
“latitude”: “example latitude”,
“longitude”: “example longitude”,
“anything”: “example anything”
},
“mc_language”: “example mc_language”,
“mc_notes”: [
{
“note”: “example note”,
“id”: 42,
“action”: “example action”
}
] },
“email_type”: “example email_type”,
“double_optin”: true,
“update_existing”: true,
“replace_interests”: true,
“send_welcome”: true
}

 

See the section highlighted in blue? change “true” to “false” and that’s it! To learn how to disable the double opt-in using a MailChimp plugin view Easy Way to Disable MailChimp Double Opt-in for WordPress Plugin

If you are looking how to disable the double opt-in using MailChimp API version 3.0 please see Easily Disable MailChimp Double Opt-in in API 3.0.

Leave a Reply

Your email address will not be published. Required fields are marked *