# MailerLite

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

App · Email Marketing · 5 actions. Web page: https://docs.lodol.com/docs/integrations/mailerlite

## Actions

### Assign subscriber to group

Add an existing subscriber to a MailerLite group.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Numeric ID of the subscriber (as returned by Create subscriber or Get subscriber), not the email address.
- Group ID (`group_id`, text, required): ID of the group to add the subscriber to.

**Outputs**

- `group_id` (text): ID of the group the subscriber was added to.
- `subscriber_id` (text): ID of the subscriber that was assigned.

**Example output**

```json
{
  "group_id": "31897444756455121",
  "subscriber_id": "31897397363737764"
}
```

### Create group

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

**Inputs**

- Name (`name`, text, required): Name of the group to create.

**Outputs**

- `id` (text): ID of the newly created group.
- `name` (text): Name of the group.

**Example output**

```json
{
  "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**

- Email (`email`, text, required): Email address of the subscriber.
- Name (`name`, text): First name of the subscriber.
- Last name (`last_name`, text): Last name of the subscriber.
- Status (`status`, text): 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**

- `email` (text): Email address of the subscriber.
- `id` (text): ID of the subscriber (new or already existing).
- `status` (text): Subscription status after the upsert.

**Example output**

```json
{
  "email": "jane@example.com",
  "id": "31897397363737764",
  "status": "active"
}
```

### Get subscriber

Look up a MailerLite subscriber by email address.

**Inputs**

- Email (`email`, text, required): Email address of the subscriber to look up. A numeric subscriber ID also works.

**Outputs**

- `subscriber` (object): The matching subscriber, or null if no subscriber has that email.

**Example output**

```json
{
  "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**

- `groups` (list): Groups in the account

**Example output**

```json
{
  "groups": [
    {
      "id": "31897444756455121",
      "name": "Newsletter"
    }
  ]
}
```
