How to add a new user mail chimp

To add a new user to Mailchimp, follow these steps:

Method 1: Add a new user through the Mailchimp dashboard

  1. Log in to your Mailchimp account and navigate to the Audience tab.
  2. Click on the Manage Audience button.
  3. Click on the Add a new user button.
  4. Enter the new user's email address and name.
  5. Choose the user's role from the dropdown menu:
    • Manager: Can manage all aspects of the account, including adding and removing users.
    • Editor: Can edit campaigns, segments, and audience data, but cannot manage users or billing.
    • Viewer: Can view reports and analytics, but cannot edit or manage the account.
  6. Click the Add User button.

Method 2: Add a new user through the Mailchimp API

If you have a large number of users to add, you can use the Mailchimp API to automate the process. You'll need to:

  1. Create an API key in your Mailchimp account settings.
  2. Use the API key to send a POST request to the /users endpoint with the following parameters:
    • email: The new user's email address.
    • name: The new user's name.
    • role: The new user's role (e.g. "Manager", "Editor", or "Viewer").
  3. You can use a programming language like Python or JavaScript to send the API request.

Here's an example Python code snippet using the requests library:

import requests

api_key = "your_api_key_here"
email = "[email protected]"
name = "New User"
role = "Editor"

url = f"https://us12.api.mailchimp.com/3.0/users"
headers = {"Authorization": f"Bearer {api_key}"}
data = {"email": email, "name": name, "role": role}

response = requests.post(url, headers=headers, json=data)

if response.status_code == 200:
    print("User added successfully!")
else:
    print("Error adding user:", response.text)

Additional tips