Skip to Content
MailerLite
MailerLite API

Subscribers

List, create, update, and delete subscribers, manage their groups, and inspect engagement stats via the MailerLite API.

Subscribers are the people on your mailing list. Every subscriber belongs to your account, carries a status, a set of custom field values and any number of group memberships.

Creating a subscriber is an upsert: posting an email address that already exists updates that subscriber rather than failing, and omitted fields and groups are left as they are. The update endpoint behaves differently on purpose, treating groups as the complete list so you can remove memberships.

Custom field values are keyed by each field's key, not its display name. List your fields to look up the keys.

Statuses

StatusMeaning
activeSubscribed and receiving campaigns.
unsubscribedOpted out.
unconfirmedAwaiting double opt-in confirmation.
bouncedTheir address rejected mail.
junkMarked a campaign as spam.

Reactivating subscribers

Setting status to active does not bring unsubscribed, bounced and junk subscribers back unless you explicitly ask for it:

  • Update ignores status: "active" and status: "unconfirmed" for them. The request still succeeds, but the status stays unchanged.
  • Create reactivates them only when you pass resubscribe: true. Without it, the request fails with 422 if you omit status. status: "active" is ignored and any other status is applied.

Only pass resubscribe when the person has asked to subscribe again. Otherwise they can opt back in themselves through the app, a form or a landing page.

Activity types

The activity log endpoint labels each entry with a log_name, and filter[log_name] accepts any of them. The most common are:

log_nameEntry
campaign_sendA campaign was sent to them. As a filter, it also returns automation emails.
automation_email_sentAn automation email was sent to them. As a filter, it also returns campaign sends.
one_to_one_email_sentA one-to-one email was sent to them.
email_openThey opened an email.
link_clickThey clicked a link in an email.
email_forwardThey forwarded an email.
email_bounceAn email to them bounced.
spam_complaintThey marked an email as spam.
unsubscribedThey unsubscribed.
resubscribedThey subscribed again after unsubscribing.
activatedTheir status was set to active.
activated_via_webformThey became active by signing up through a form.
activated_via_confirmationThey confirmed their subscription through double opt-in.
added_to_groupThey were added to a group.
removed_from_groupThey were removed from a group.
added_through_importThey were added by an import.
added_through_ecommerce_importThey were added by an e-commerce import.
changed_emailThey changed their email address in the preference center.
changed_email_by_userTheir email address was changed through the API.
changed_fieldsTheir custom field values changed.
marketing_preferences_changeTheir marketing permissions changed.
won_webform_prizeThey won a prize in a popup form.
deletedThey were deleted.
restoredThey were restored after being deleted.

Two filter values group several types: preference_center returns email, field and preference survey changes, plus product purchases if you sell through MailerLite, and popup_forms returns popup prize wins.

Deleting versus forgetting

Deleting a subscriber removes them from your account but keeps their history in case they subscribe again. Forgetting a subscriber schedules the permanent erasure of everything about them within 30 days, which is what you want for a GDPR erasure request.

List all subscribers

If you want to list all of your subscribers, send this GET request

GET https://connect.mailerlite.com/api/subscribers

Request parameters

ParameterTypeRequiredLimitations
filter[status]stringnoReturn only subscribers with this status. One of active, unsubscribed, unconfirmed, bounced or junk. Separate several statuses with commas.
filter[subscribed_from]stringnoSubscribed on or after this day. Y-m-d format, UTC, inclusive.
filter[subscribed_to]stringnoSubscribed on or before this day. Y-m-d format, UTC, inclusive. Must be on or after filter[subscribed_from].
filter[group]stringnoReturn only subscribers belonging to this group. Accepts a group ID or a group name.
filter[automation]stringnoReturn only subscribers who have completed this automation, by automation ID.
filter[form]stringnoReturn only subscribers who signed up through these forms. Separate several form IDs with commas. Send it as the first filter parameter to combine it with start_date, end_date or sort=signup_date.
filter[site]stringnoReturn only subscribers who signed up through these sites. Separate several site IDs with commas.
filter[page]stringnoReturn only subscribers who signed up through these landing pages. Separate several page IDs with commas.
filter[import]stringnoReturn only subscribers added by these imports. Separate several import IDs with commas.
filter[post]stringnoReturn only subscribers who signed up through these blog posts. Separate several post IDs with commas.
limitintegernoNumber of subscribers to return per page. Defaults to 25, maximum 1000.
cursorstringnoCursor for the page to return. Read it from meta.next_cursor or meta.prev_cursor of a previous response. Defaults to the first page.
sortstringnoField to sort results by. One of id, created_at, subscribed_at, unsubscribed_at, email or signup_date. Prefix with - for descending order. Defaults to -id. signup_date only applies when the first filter parameter is form, site, page, import or post.
includestringnoAdditional resources to include in the response. Only groups is supported.
start_datestringnoOnly include subscribers who signed up on or after this date. Applies only together with end_date, and only to whichever of the form, site, page, import or post filters is sent first.
end_datestringnoOnly include subscribers who signed up on or before this date. Applies only together with start_date, and must be on or after it.
with_fieldsbooleannoPass 1 to return each custom field as an object with its name, value and type instead of just its value.

Response

{
  "data": [
    {
      "id": "31986843064993537",
      "email": "dummy@example.com",
      "status": "active",
      "source": "api",
      "sent": 0,
      "opens_count": 0,
      "clicks_count": 0,
      "open_rate": 0,
      "click_rate": 0,
      "ip_address": null,
      "subscribed_at": "2021-09-01 14:03:50",
      "unsubscribed_at": null,
      "created_at": "2021-09-01 14:03:50",
      "updated_at": "2021-09-01 14:03:50",
      "fields": {
        "city": null,
        "company": null,
        "country": null,
        "last_name": "Testerson",
        "name": "Dummy",
        "phone": null,
        "state": null,
        "z_i_p": null
      },
      "opted_in_at": null,
      "optin_ip": null
    }
  ],
  "links": {
     "first": null,
     "last": null,
     "prev": "https://connect.mailerlite.com/api/subscribers?cursor=eyJpZCI6NzI1ODIxNjQ2NDU5Mzg1NTksIl9wb2ludHNUb05leHRJdGVtcyI6ZmFsc2V9",
     "next": "https://connect.mailerlite.com/api/subscribers?cursor=eyJpZCI6NzI1ODIxNjQ2NDY5ODcxMzYsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0"
  },
  "meta": {
      "path": "https://connect.mailerlite.com/api/subscribers",
      "per_page": 25,
      "next_cursor": "eyJpZCI6NzI1ODIxNjQ2NDY5ODcxMzYsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
      "prev_cursor": "eyJpZCI6NzI1ODIxNjQ2NDU5Mzg1NTksIl9wb2ludHNUb05leHRJdGVtcyI6ZmFsc2V9"
  }
}

Create/upsert subscriber

If you want to create or update a subscriber, send this POST request

POST https://connect.mailerlite.com/api/subscribers

If a subscriber already exists, it will be updated with new values. This is non-destructive operation, so omitting fields or groups will not remove them from subscriber.

Request

ParameterTypeRequiredLimitations
emailstringyesValid email address as per RFC 2821
fieldsobjectnoCustom field values, keyed by field key. Unknown keys are ignored. Values can only be added or changed this way and are never removed by omission.
groupsarraynoarray must contain existing group ids. Subscriber can only be added to groups this way and will not be removed by omission
statusstringnoOne of active, unsubscribed, unconfirmed, bounced or junk. New subscribers default to active, or unconfirmed when your account uses double opt-in.
subscribed_atstringnoMust be a valid date in the format yyyy-MM-dd HH:mm:ss. Cannot be more than an hour in the future
ip_addressstringnoIP address the subscriber signed up from. A value that isn't a valid IP address is ignored
opted_in_atstringnoMust be a valid date in the format yyyy-MM-dd HH:mm:ss
optin_ipstringnoIP address the subscriber confirmed their subscription from. A value that isn't a valid IP address is ignored
unsubscribed_atstringnoWhen the subscriber unsubscribed, in yyyy-MM-dd HH:mm:ss format. Only used when status is unsubscribed in the same request, and defaults to now.
resubscribeboolnoSet to true to reactivate an existing subscriber who is unsubscribed, bounced or marked as junk. Defaults to false. Without it, the request fails with 422 if you leave out status. status: "active" is ignored and any other status is applied.
double_optinboolnoIgnored for most API tokens. Whether a new subscriber starts as unconfirmed and receives a confirmation email follows your account's double opt-in setting.
notesarraynoFree-text notes to add when the subscriber is created. Ignored when a subscriber with this email already exists. Each note is limited to 10000 characters.
{
    "email": "dummy@example.com",
    "fields": {
      "name": "Dummy",
      "last_name": "Testerson"
    },
    "groups": [
        "4243829086487936",
        "14133878422767533",
        "31985378335392975"
    ]
}

Response

If the subscriber was created:

Response Code: 201 Created

If the subscriber with specified email was already in the mailing list:

Response Code: 200 OK
{
  "data": {
    "id": "31897397363737859",
    "email": "dummy@example.com",
    "status": "active",
    "source": "api",
    "sent": 0,
    "opens_count": 0,
    "clicks_count": 0,
    "open_rate": 0,
    "click_rate": 0,
    "ip_address": null,
    "subscribed_at": "2021-08-31 14:22:08",
    "unsubscribed_at": null,
    "created_at": "2021-08-31 14:22:08",
    "updated_at": "2021-08-31 14:22:08",
    "fields": {
      "city": null,
      "company": null,
      "country": null,
      "last_name": "Testerson",
      "name": "Dummy",
      "phone": null,
      "state": null,
      "z_i_p": null
    },
    "groups": [],
    "opted_in_at": null,
    "optin_ip": null
  }
}

Error

Response Code: 422 Unprocessable Entity
{
  "message": "The given data was invalid.",
  "errors": {
    "email": ["The email must be a valid email address."]
  }
}

Update a subscriber

If you want to update a single subscriber, send this PUT request:

PUT https://connect.mailerlite.com/api/subscribers/(:id)

If a subscriber already exists, their information will be updated. However, please note that if the subscriber’s status is unsubscribed, bounced, or marked as junk, you will not be able to reactivate them due to abuse prevention measures. In such cases, the subscriber can only be reactivated through the app, a form, or a landing page.

Request

ParameterTypeRequiredLimitations
emailstringnoA new email address for the subscriber. Can be changed only once per calendar month, and must not already belong to another subscriber.
fieldsobjectnoCustom field values, keyed by field key. Unknown keys are ignored, and fields you leave out keep their values. Pass null to clear a field.
groupsarraynoThe complete set of group IDs the subscriber should belong to. The subscriber is removed from any group not listed, so an empty array removes them from every group. Omit it to leave group membership untouched.
statusstringnoOne of active, unsubscribed, unconfirmed, bounced or junk. Setting active or unconfirmed on a subscriber who is unsubscribed, bounced or marked as junk is ignored: the request succeeds and the status stays unchanged.
subscribed_atstringnoMust be a valid date in the format yyyy-MM-dd HH:mm:ss
ip_addressstringnoMust be a valid ip address
opted_in_atstringnoMust be a valid date in the format yyyy-MM-dd HH:mm:ss
optin_ipstringnoMust be a valid ip address
unsubscribed_atstringnoMust be a valid date in the format yyyy-MM-dd HH:mm:ss
{
    "fields": {
      "name": "Dummy",
      "last_name": null
    },
    "groups": [
        "4243829086487936",
        "14133878422767533",
        "31985378335392975"
    ]
}

Response

Response Code: 200 OK
{
  "data": {
    "id": "31897397363737859",
    "email": "dummy@example.com",
    "status": "active",
    "source": "api",
    "sent": 0,
    "opens_count": 0,
    "clicks_count": 0,
    "open_rate": 0,
    "click_rate": 0,
    "ip_address": null,
    "subscribed_at": "2021-08-31 14:22:08",
    "unsubscribed_at": null,
    "created_at": "2021-08-31 14:22:08",
    "updated_at": "2021-08-31 14:22:08",
    "fields": {
      "city": null,
      "company": null,
      "country": null,
      "last_name": null,
      "name": "Dummy",
      "phone": null,
      "state": null,
      "z_i_p": null
    },
    "groups": [],
    "opted_in_at": null,
    "optin_ip": null
  }
}

Error

Response Code: 422 Unprocessable Entity
{
  "message": "The given data was invalid.",
  "errors": {
    "email": ["The email must be a valid email address."]
  }
}

Fetch a subscriber

If you want to fetch a subscriber, send this GET request

GET https://connect.mailerlite.com/api/subscribers/(:id or :email)

Request

ParameterTypeRequiredLimitations
emailstringnoMust provide either valid subscriber id or email
idstringnoMust provide either valid subscriber id or email
GET https://connect.mailerlite.com/api/subscribers/31986843064993537
GET https://connect.mailerlite.com/api/subscribers/dummy@example.com

Response

If subscriber exists:

Response Code: 200 OK
{
  "data": {
    "id": "31986843064993537",
    "email": "dummy@example.com",
    "status": "active",
    "source": "api",
    "sent": 0,
    "opens_count": 0,
    "clicks_count": 0,
    "open_rate": 0,
    "click_rate": 0,
    "ip_address": null,
    "subscribed_at": "2021-09-01 14:03:50",
    "unsubscribed_at": null,
    "created_at": "2021-09-01 14:03:50",
    "updated_at": "2021-09-01 14:03:50",
    "fields": {
      "city": null,
      "company": null,
      "country": null,
      "last_name": "Testerson",
      "name": "Dummy",
      "phone": null,
      "state": null,
      "z_i_p": null
    },
    "groups": [],
    "opted_in_at": null,
    "optin_ip": null
  }
}

Error

If the subscriber cannot be found:

Response Code: 404 Not Found

Fetch total subscribers count

GET https://connect.mailerlite.com/api/subscribers?limit=0

Request

ParameterTypeRequiredLimitations
limitintegeryesValue must be 0
filter[status]stringnoCount only subscribers with this status: active, unsubscribed, unconfirmed, bounced or junk.
filter[subscribed_from]stringnoCount only subscribers who subscribed on or after this day. Y-m-d format, UTC, inclusive.
filter[subscribed_to]stringnoCount only subscribers who subscribed on or before this day. Y-m-d format, UTC, inclusive. Must be on or after filter[subscribed_from].

To count the subscribers who joined in October 2026:

GET https://connect.mailerlite.com/api/subscribers?limit=0&filter[subscribed_from]=2026-10-01&filter[subscribed_to]=2026-10-31

Subscribers who have since unsubscribed, bounced or been marked as junk still count towards the period they joined in. Add filter[status]=active to count only those who are still subscribed.

Response

Response Code: 200 OK
{
  "total": 100
}

Fetch subscriber activity

GET https://connect.mailerlite.com/api/subscribers/:id/activity-log

Request

ParameterTypeRequiredLimitations
idstringyesThe ID of the subscriber. Unlike the other subscriber endpoints, this one does not accept an email address.
filter[log_name]stringnoReturn only entries of this type, such as campaign_send, email_open or added_to_group. See Activity types for the common values, including the grouped preference_center and popup_forms. One type per request: a comma-separated list is rejected.
limitintegernoNumber of entries per page. Defaults to 100, maximum 5000.
pageintegernoPage number to return. Counting starts from 1. Only the 5000 most recent entries can be reached: a page that starts past them comes back empty, and one that crosses them is cut short.

Response

Response Code: 200 OK
{
  "data": [
    {
      "id": "1235",
      "log_name": "added_to_group",
      "subject_id": "1000000000000000",
      "subject_type": "subscribers",
      "properties": {
        "group_name": "test group",
        "group_id": "1"
      },
      "created_at": "2024-05-01 12:43:29",
      "updated_at": "2024-05-01 12:43:29"
    },
    {
      "id": "1234",
      "log_name": "activated",
      "subject_id": "1000000000000000",
      "subject_type": "subscribers",
      "properties": [],
      "created_at": "2024-05-01 12:43:29",
      "updated_at": "2024-05-01 12:43:29"
    },
    {
      "id": "123456",
      "log_name": "email_open",
      "subject_id": "123456",
      "subject_type": "opens",
      "properties": {
        "type": "campaigns",
        "campaign_id": "123456",
        "campaign_name": "Example name",
        "preview_url": "https://example_preview.url"
      },
      "created_at": "2024-09-01 00:00:00",
      "updated_at": "2024-09-01 00:00:00"
    }
  ]
}

Delete a subscriber

It will removes the subscriber from your account, but all their information is still kept in case they re-subscribe to your list. If you want to delete a subscriber, send this DELETE request

DELETE https://connect.mailerlite.com/api/subscribers/:id

Request

ParameterTypeRequiredLimitations
idstringyesValid subscriber id for the account

Response

Response Code: 204 No Content

Error

Response Code: 404 Not Found

Forget a subscriber

It will removes the subscriber from your account and all information will be completely deleted in 30 days. This feature is GDPR compliant.If you want to forget a subscriber, send this POST request

POST https://connect.mailerlite.com/api/subscribers/:id/forget

Request

ParameterTypeRequiredLimitations
idstringyesValid subscriber id for the account

Response

Response Code: 200 OK
{
  "message": "Subscriber data will be completely deleted and forgotten within 30 days.",
  "data": {
    "id": "85348545455981948",
    "email": "bashirian.wilhelmine@yahoo.com",
    "status": "active",
    "source": "subscribe app",
    "sent": 89,
    "opens_count": 0,
    "clicks_count": 0,
    "open_rate": 0,
    "click_rate": 0,
    "ip_address": "203.0.113.10",
    "subscribed_at": "2023-04-13 14:05:15",
    "unsubscribed_at": null,
    "created_at": "2023-04-13 14:05:15",
    "updated_at": "2023-04-19 05:40:50",
    "deleted_at": "2023-04-19 05:40:50",
    "forget_at": "2023-05-19 05:40:50",
    "fields": {
      "name": "Carmella",
      "last_name": "Hegmann",
      "company": "DuBuque Inc",
      "country": "Puerto Rico",
      "city": "Moshemouth",
      "phone": "1-628-782-7066",
      "state": null,
      "zip": null
    },
    "groups": [
      {
        "id": "85348546500363273",
        "name": "sint incidunt",
        "active_count": 20,
        "sent_count": 1284,
        "opens_count": 0,
        "open_rate": {
          "float": 0,
          "string": "0%"
        },
        "clicks_count": 0,
        "click_rate": {
          "float": 0,
          "string": "0%"
        },
        "unsubscribed_count": 0,
        "unconfirmed_count": 0,
        "bounced_count": 0,
        "junk_count": 0,
        "created_at": "2023-04-13 14:05:16",
        "processing": true
      }
    ],
    "location": {
      "id": "1",
      "title": "New York City",
      "country_name": "United States of America",
      "continent_name": "North America",
      "state_name": "New York",
      "time_zone": "America/New_York"
    },
    "opted_in_at": null,
    "optin_ip": null,
    "email_changed_at": null
  }
}

Error

Response code: 404 Not Found

Get single import

If you want to get a single import report, send this GET request

GET https://connect.mailerlite.com/api/subscribers/import/{import_id}

Response

Response Code: 200 OK
{
  "data": {
    "id": "47366063630845932",
    "total": 3,
    "processed": 3,
    "imported": 0,
    "updated": 0,
    "errored": 3,
    "percent": 100,
    "done": true,
    "file_path": "",
    "invalid": [],
    "invalid_count": 0,
    "mistyped": [],
    "mistyped_count": 0,
    "changed": [],
    "changed_count": 0,
    "unchanged": [
      {
        "id": "47366064023013357",
        "email": "dummy_one@import.com"
      },
      {
        "id": "47366064023013358",
        "email": "dummy_two+two@import.com"
      },
      {
        "id": "47366064023013359",
        "email": "dummy_three@new.com"
      }
    ],
    "unchanged_count": 3,
    "unsubscribed": [],
    "unsubscribed_count": 0,
    "role_based": [],
    "role_based_count": 0,
    "banned_import_emails_count": 0,
    "match_route": "",
    "source_label": "",
    "updated_at": "2022-02-18T08:09:58.000000Z",
    "undone_at": null,
    "stopped_at": null,
    "undo_started_at": null,
    "finished_at": "2022-02-18T08:09:58.000000Z"
  }
}

Fetch subscriber e-commerce stats

If you want to get the completed orders a subscriber placed in a shop from your emails, use this GET request

GET https://connect.mailerlite.com/api/subscribers/:id/reports/ecommerce

Request

ParameterTypeRequiredLimitations
idstringyesMust be a valid subscriber id
shop_idintegeryesMust be a valid e-commerce shop id

Response

Response Code: 200 OK
{
  "data": {
    "ecommerce": {
      "orders_count": 2,
      "revenue": 40,
      "average_order_value": 20,
      "conversion_rate": "0%"
    }
  }
}

Error

When providing an invalid subscriber or shop id

Response Code: 404 Not Found

Fetch subscriber e-commerce orders

If you want to list the completed orders a subscriber placed in a shop from your emails, use this GET request

GET https://connect.mailerlite.com/api/subscribers/:id/reports/ecommerce/orders

Request

ParameterTypeRequiredLimitations
idstringyesMust be a valid subscriber id
shop_idintegeryesMust be a valid e-commerce shop id
limitintegernoDefaults to 10
pageintegernoDefaults to 1

Response

Response Code: 200 OK
{
  "data": [
    {
      "subscriber": {
        "email": "dummy@mailerlite.com",
        "id": "56152210168350162"
      },
      "total": 20,
      "updated_at": "2026-09-14 05:44:16",
      "order": "2 X T-shirt, 1 X Mug",
      "email": {
        "id": "66200823885989564",
        "emailable_type": "campaigns",
        "subject": "Summer sale",
        "...": "..."
      }
    }
  ],
  "links": {
    "first": "https://connect.mailerlite.com/api/subscribers/56152210168350162/reports/ecommerce/orders?page=1",
    "last": "https://connect.mailerlite.com/api/subscribers/56152210168350162/reports/ecommerce/orders?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "path": "https://connect.mailerlite.com/api/subscribers/56152210168350162/reports/ecommerce/orders",
    "per_page": 10,
    "to": 1,
    "total": 1
  }
}

email is the email that earned the order, in the same format as the emails in Get a campaign.

Error

When providing an invalid subscriber or shop id

Response Code: 404 Not Found

On this page