MailerLite

App · Email Marketing · 5 actions

Connect your MailerLite account to manage subscribers and groups: create or update subscribers, look them up, and organize them into groups.

Actions

ActionWhat it does
Assign subscriber to groupAdd an existing subscriber to a MailerLite group.
Create groupCreate a new group (list) in your MailerLite account.
Create or update subscriberAdd a subscriber to your MailerLite account, or update them if the email already exists (a non-destructive upsert).
Get subscriberLook up a MailerLite subscriber by email address.
List groupsList the groups in your MailerLite account.

Assign subscriber to group

Add an existing subscriber to a MailerLite group.

Inputs

Subscriber IDsubscriber_idtextRequired
Numeric ID of the subscriber (as returned by Create subscriber or Get subscriber), not the email address.
Group IDgroup_idtextRequired
ID of the group to add the subscriber to.

Outputs

group_idtext
ID of the group the subscriber was added to.
subscriber_idtext
ID of the subscriber that was assigned.
Example output
{
  "group_id": "31897444756455121",
  "subscriber_id": "31897397363737764"
}

Create group

Create a new group (list) in your MailerLite account.

Inputs

NamenametextRequired
Name of the group to create.

Outputs

idtext
ID of the newly created group.
nametext
Name of the group.
Example output
{
  "id": "31897444756455121",
  "name": "Newsletter"
}

Create or update subscriber

Add a subscriber to your MailerLite account, or update them if the email already exists (a non-destructive upsert).

Inputs

EmailemailtextRequired
Email address of the subscriber.
Namenametext
First name of the subscriber.
Last namelast_nametext
Last name of the subscriber.
Statusstatustext
Subscription status to set. Leave unset to use your account's default (typically 'unconfirmed' when double opt-in is on, otherwise 'active').One of: active, unconfirmed, unsubscribed.

Outputs

emailtext
Email address of the subscriber.
idtext
ID of the subscriber (new or already existing).
statustext
Subscription status after the upsert.
Example output
{
  "email": "jane@example.com",
  "id": "31897397363737764",
  "status": "active"
}

Get subscriber

Look up a MailerLite subscriber by email address.

Inputs

EmailemailtextRequired
Email address of the subscriber to look up. A numeric subscriber ID also works.

Outputs

subscriberobject
The matching subscriber, or null if no subscriber has that email.
Example output
{
  "subscriber": {
    "email": "jane@example.com",
    "id": "31897397363737764",
    "last_name": "Doe",
    "name": "Jane",
    "status": "active"
  }
}

List groups

List the groups in your MailerLite account.

Inputs

None.

Outputs

groupslist
Groups in the account
Example output
{
  "groups": [
    {
      "id": "31897444756455121",
      "name": "Newsletter"
    }
  ]
}

On this page