- Documentation
- Integrations
- Apps
- MailerLite integration
MailerLite integration
Sync subscribers, manage groups, segments, fields, forms, automations and campaigns, and react to subscriber and campaign events across your clients' MailerLite accounts.
What it does
The MailerLite integration lets your agency run a client's email marketing from inside a workflow. Connect a client's MailerLite account once and your workflows can add or update subscribers, move them between groups, import lists in bulk, manage custom fields, segments and forms, draft, schedule, cancel and report on campaigns, and look into automations. Fourteen triggers turn subscriber, group, automation and campaign activity into workflow runs as it happens.
The integration uses the current MailerLite API at connect.mailerlite.com. Accounts still on MailerLite Classic are not supported.
Connect a MailerLite account
- Open your workspace in TaskJuice and navigate to Connections.
- Choose MailerLite and click Connect.
- In a new tab, sign in to the client's MailerLite dashboard, open Integrations, and choose MailerLite API.
- Click Generate new token, give it a name such as "TaskJuice", and copy the token.
- Paste the token into TaskJuice and save the connection.
To revoke access, delete the token on the same MailerLite API page. The next workflow step that uses the connection fails with an authentication error so you know to reconnect.
Triggers
| Trigger | Fires when |
|---|---|
mailerlite/subscriber-created | a subscriber is added to the account |
mailerlite/subscriber-updated | a subscriber's fields change or they confirm opt-in |
mailerlite/subscriber-active | a subscriber's status becomes active |
mailerlite/subscriber-unsubscribed | a subscriber unsubscribes |
mailerlite/subscriber-bounced | an email to a subscriber bounces |
mailerlite/spam-complaint | a subscriber marks a campaign as spam |
mailerlite/subscriber-deleted | a subscriber is deleted or forgotten |
mailerlite/subscriber-added-to-group | a subscriber joins a group |
mailerlite/subscriber-removed-from-group | a subscriber leaves a group |
mailerlite/automation-triggered | a subscriber starts an automation |
mailerlite/automation-completed | a subscriber finishes an automation |
mailerlite/campaign-sent | a campaign finishes sending |
mailerlite/campaign-opened | a subscriber opens a campaign |
mailerlite/campaign-link-clicked | a subscriber clicks a link in a campaign |
You do not register these yourself. Publishing a workflow registers one webhook in the client's MailerLite account covering every MailerLite trigger you use, and TaskJuice verifies each delivery with the signing secret MailerLite returns. The webhook appears in MailerLite under Integrations, Webhooks, named "TaskJuice".
MailerLite may send several events in one request. TaskJuice splits them, so every event starts its own workflow run with just that event as its data. To react only to one group or automation, add a Filter step after the trigger on group.id or automation.id. If MailerLite retries a delivery, TaskJuice recognises the repeat and starts no second run. An event that repeats with exactly the same data within about an hour is treated as the same delivery. Open and click events carry no time of their own, so if a subscriber opens the same campaign, or clicks the same link, again within that hour and MailerLite reports it with unchanged data, only the first one starts a run.
Turning a workflow off or deleting it stops deliveries reaching it but leaves the webhook in MailerLite; it is cleaned up automatically later. Removing the MailerLite connection deletes it immediately, and you can also delete it yourself in MailerLite at any time.
Actions
Subscribers
- Create or Update Subscriber, Update Subscriber, Change Subscriber Email, Get Subscriber (by ID or email), List Subscribers, Count Subscribers
- Unsubscribe Subscriber, Delete Subscriber, Forget Subscriber (GDPR: all data erased within 30 days)
- Get Subscriber Activity: the subscriber's sends, opens, clicks, bounces and unsubscribes
Groups
- List Groups (with a name search), Create Group, Update Group, Delete Group, List Group Subscribers
- Add Subscriber to Group, Remove Subscriber from Group
- Import Subscribers to Group and Get Import, for bulk list loads
Segments, fields and forms
- List Segments, List Segment Subscribers, Rename Segment, Delete Segment
- List Fields, Create Field, Rename Field, Delete Field
- List Forms, Get Form, Rename Form, Delete Form, List Form Subscribers
Campaigns
- List Campaigns, Get Campaign, Create Campaign, Update Draft Campaign, Delete Campaign
- Send or Schedule Campaign (send now, at a time, per timezone or with smart sending), Cancel Scheduled Campaign
- List Campaign Recipient Activity: who opened, clicked, bounced or unsubscribed
- List Campaign Languages, List Timezones
Automations and more
- List Automations, Get Automation, List Automation Activity, Create Draft Automation, Delete Automation
- Send Batch Request: up to 50 API calls in one request
Pickers list the client's real groups, segments, fields, forms, automations and campaigns, so you choose by name instead of pasting IDs. Every picker also accepts a value mapped from an earlier step.
Known limitations
- A MailerLite API token belongs to one account. Each client needs their own connection.
- MailerLite allows 120 requests per minute per account and answers
429when you go over. TaskJuice retries with backoff; pace large loops with a delay step or use Import Subscribers to Group or Send Batch Request instead. - MailerLite only delivers webhooks for active accounts. A new account under MailerLite's approval review sends no events until it is approved.
- Campaign senders must be verified in MailerLite, and custom HTML campaign content needs a MailerLite Advanced plan.
- To bring back someone who unsubscribed, use Create or Update Subscriber with Resubscribe turned on; without it, MailerLite keeps them unsubscribed. Subscribers who bounced or were marked as junk cannot be reactivated through the API.
- MailerLite's e-commerce API (shops, products, orders, carts) is not part of this integration.