Config Mailpoet
Step 1: Configure MailPoet API in WordPress: First of all, you need to install and activate the MailPoet plugin in WordPress if you don't have it already. In the WordPress admin page, go to "MailPoet" > "Settings" > "Advanced" and select "API". Enable the "Enable the MailPoet API" option. Then, generate an API key by clicking "Create a new key". This will generate an API key that you can use to access MailPoet's API.
Step 2: Use the API to add new subscribers: You can now use the API key to add new subscribers through the REST API.
Note that using REST APIs and API keys requires you to have a basic knowledge of working with APIs and security.
How to determine listId?
To determine the listId in MailPoet, you need to know the ID of the list you want to add subscribers to. Here's how you can do it:
Login to your WordPress admin page.
In the menu on the left, find and select "MailPoet" (or "MailPoet 3" if you're using an older version of MailPoet).
In the MailPoet menu, select "Subscribers" to display a list of your subscription lists. Here, you'll see a list of subscriptions you've created.
Each listing will have its own ID. To see the ID of a listing, you can hover over the name of the list. The ID will show up in the browser's status bar at the bottom or top left corner of the browser.
Remember the ID of the list you want to use to add subscribers.
Note that MailPoet may update their look and feel, so there may be a change in how the listing's IDs look up in the particular version you're using.
Last updated