Once your users have connected their Mailchimp account, you can use the Paragon SDK to access the Mailchimp API on behalf of connected users.See the Mailchimp REST API documentation for their full API reference.Any Mailchimp API endpoints can be accessed with the Paragon SDK as shown in this example.
JavaScript
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration.// Authenticate the userparagon.authenticate(<ProjectID>, <Paragon User Token>);// Create a Listawait paragon.request("mailchimp", "/lists/<List ID>", { method: "POST", body: { "members": [{ email_address: "[email protected]" }], "update_existing": true }});// List all Campaignsawait paragon.request("mailchimp", "/campaigns", method: “GET”});
Once your Mailchimp account is connected, you can add steps to perform the following actions:
Create Campaign
Update Campaign
Send Campaign
Search Campaigns
Get Campaign by ID
Delete Campaign by ID
Create List
Get List by ID
Search Lists
Add Contact to List
Update Contact in List
Get Contacts from List
You can also use the Mailchimp Request step to access any of Mailchimp’s API endpoints without the authentication piece.When using Mailchimp, you can reference data from previous steps by typing {{ to invoke the variable menu.
Webhook triggers can be used to run workflows based on events in your users’ Mailchimp account. For example, you might want to trigger a workflow whenever new contacts are added to a Mailchimp list to sync your users’ Mailchimp contacts to your application in real-time.You can find the full list of Webhook Triggers for Mailchimp below: