Connect MailerLite

Generate an API token in MailerLite, paste it under Settings > Integrations, then add an Add to MailerLite step to a flow to add people to your groups and start automations.

Connect MailerLite with an API token under Settings > Integrations. Then add an Add to MailerLite step to a flow, after the email question. Everyone who reaches that step is added to MailerLite, with the groups, fields and automations you choose.

Steps

Create an API token in MailerLite

  1. In MailerLite, open the menu and click Integrations.

    Integrations in MailerLite's menu

  2. Open API. On the Developer API page, click Generate new token.

    The Generate new token button on MailerLite's Developer API page

  3. Name the token Textiful, keep All IPs allowed, tick the box to accept the terms, and click Create token.

    MailerLite's Create new API token form, named Textiful, with All IPs allowed

  4. Click Copy. MailerLite shows the token only once.

    MailerLite's API token window with the Copy button

Connect it to Textiful

  1. In Textiful, go to Settings > Integrations.

  2. Under CRM and email tools, click Connect MailerLite.

  3. Paste the token into API key and click Submit.

    Textiful's Connect MailerLite window with the API key pasted in

  4. Textiful checks the key with MailerLite before saving it. You'll see "MailerLite connected."

Use Test connection at any time to check the account is still reachable.

Add the step to a flow

  1. Open the flow under Data Capture Flows.
  2. Make sure the flow has an Ask for email step.
  3. Click the + below that step (or Add a step), and under Integrations choose Add to MailerLite.
  4. Under Sync additional data, check which Textiful fields go to which MailerLite fields. The step starts with the ones your flow collects, such as First name to Name, Last name to Last name and Phone number to Phone. Click Add data mapping to send another answer to one of your MailerLite fields, or the bin icon to stop sending one.
  5. Optionally, turn on Require double opt-in.
  6. Optionally, choose MailerLite groups to add people to, and automations under Start MailerLite automations.
  7. Click Add & save.

The Add to MailerLite step: Sync additional data, Double opt-in, MailerLite groups and Start MailerLite automations

Groups, automations and fields are listed by name from your MailerLite account. To use a new group or field, create it in MailerLite first. Only automations that are turned on are listed.

What gets sent

The step runs when someone reaches it. Textiful adds them to MailerLite by email address, which always syncs, along with every field mapped under Sync additional data.

  • Groups: they join every group you chose. Anyone already in a group stays in it.
  • Automations: they're enrolled in the automations you chose, even if they don't match the automation's own trigger. You can also start an automation in MailerLite when someone joins a group.
  • Double opt-in: with Require double opt-in on, new subscribers stay unconfirmed until they click MailerLite's confirmation email, and aren't enrolled in automations until then.
  • Existing subscribers keep their status. Textiful never resubscribes someone who unsubscribed, bounced or was marked as junk.

Check that it worked

  • The contact's timeline shows the MailerLite sync.
  • The Sync and delivery log on Settings > Integrations lists each send, its status, and any error from MailerLite. Use Retry on a failed send once you've fixed the cause.
  • If a group the step uses is deleted in MailerLite, the flow builder flags the step. Choose the groups again.

Disconnect or change the key

To use a different token, click Update API key on the Integrations page and paste the new one. Click Disconnect to remove MailerLite; MailerLite steps fail until you connect again.

Frequently asked questions

Where do I find my MailerLite API key?
In MailerLite, go to Integrations, then API, and click Generate new token. Copy the token it shows. MailerLite only shows it once, so paste it into Textiful straight away.
Does it work with MailerLite Classic?
No. Textiful connects to the current MailerLite (connect.mailerlite.com). Keys from MailerLite Classic don't work.
Should I turn on the IP allowlist for the token?
No. Choose All IPs allowed. With an allowlist, MailerLite turns away Textiful's requests.
Will Textiful resubscribe someone who unsubscribed?
No. Anyone who unsubscribed, bounced or was marked as junk in MailerLite is left as they are. People already in MailerLite keep their status and their groups.

Related articles