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
| Status | Meaning |
|---|---|
active | Subscribed and receiving campaigns. |
unsubscribed | Opted out. |
unconfirmed | Awaiting double opt-in confirmation. |
bounced | Their address rejected mail. |
junk | Marked 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"andstatus: "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 with422if you omitstatus.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_name | Entry |
|---|---|
campaign_send | A campaign was sent to them. As a filter, it also returns automation emails. |
automation_email_sent | An automation email was sent to them. As a filter, it also returns campaign sends. |
one_to_one_email_sent | A one-to-one email was sent to them. |
email_open | They opened an email. |
link_click | They clicked a link in an email. |
email_forward | They forwarded an email. |
email_bounce | An email to them bounced. |
spam_complaint | They marked an email as spam. |
unsubscribed | They unsubscribed. |
resubscribed | They subscribed again after unsubscribing. |
activated | Their status was set to active. |
activated_via_webform | They became active by signing up through a form. |
activated_via_confirmation | They confirmed their subscription through double opt-in. |
added_to_group | They were added to a group. |
removed_from_group | They were removed from a group. |
added_through_import | They were added by an import. |
added_through_ecommerce_import | They were added by an e-commerce import. |
changed_email | They changed their email address in the preference center. |
changed_email_by_user | Their email address was changed through the API. |
changed_fields | Their custom field values changed. |
marketing_preferences_change | Their marketing permissions changed. |
won_webform_prize | They won a prize in a popup form. |
deleted | They were deleted. |
restored | They 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/subscribersRequest parameters
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| filter[status] | string | no | Return only subscribers with this status. One of active, unsubscribed, unconfirmed, bounced or junk. Separate several statuses with commas. |
| filter[subscribed_from] | string | no | Subscribed on or after this day. Y-m-d format, UTC, inclusive. |
| filter[subscribed_to] | string | no | Subscribed on or before this day. Y-m-d format, UTC, inclusive. Must be on or after filter[subscribed_from]. |
| filter[group] | string | no | Return only subscribers belonging to this group. Accepts a group ID or a group name. |
| filter[automation] | string | no | Return only subscribers who have completed this automation, by automation ID. |
| filter[form] | string | no | Return 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] | string | no | Return only subscribers who signed up through these sites. Separate several site IDs with commas. |
| filter[page] | string | no | Return only subscribers who signed up through these landing pages. Separate several page IDs with commas. |
| filter[import] | string | no | Return only subscribers added by these imports. Separate several import IDs with commas. |
| filter[post] | string | no | Return only subscribers who signed up through these blog posts. Separate several post IDs with commas. |
| limit | integer | no | Number of subscribers to return per page. Defaults to 25, maximum 1000. |
| cursor | string | no | Cursor for the page to return. Read it from meta.next_cursor or meta.prev_cursor of a previous response. Defaults to the first page. |
| sort | string | no | Field 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. |
| include | string | no | Additional resources to include in the response. Only groups is supported. |
| start_date | string | no | Only 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_date | string | no | Only include subscribers who signed up on or before this date. Applies only together with start_date, and must be on or after it. |
| with_fields | boolean | no | Pass 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/subscribersIf 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
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| string | yes | Valid email address as per RFC 2821 | |
| fields | object | no | Custom 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. |
| groups | array | no | array must contain existing group ids. Subscriber can only be added to groups this way and will not be removed by omission |
| status | string | no | One of active, unsubscribed, unconfirmed, bounced or junk. New subscribers default to active, or unconfirmed when your account uses double opt-in. |
| subscribed_at | string | no | Must be a valid date in the format yyyy-MM-dd HH:mm:ss. Cannot be more than an hour in the future |
| ip_address | string | no | IP address the subscriber signed up from. A value that isn't a valid IP address is ignored |
| opted_in_at | string | no | Must be a valid date in the format yyyy-MM-dd HH:mm:ss |
| optin_ip | string | no | IP address the subscriber confirmed their subscription from. A value that isn't a valid IP address is ignored |
| unsubscribed_at | string | no | When 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. |
| resubscribe | bool | no | Set 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_optin | bool | no | Ignored for most API tokens. Whether a new subscriber starts as unconfirmed and receives a confirmation email follows your account's double opt-in setting. |
| notes | array | no | Free-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 CreatedIf 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
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| string | no | A new email address for the subscriber. Can be changed only once per calendar month, and must not already belong to another subscriber. | |
| fields | object | no | Custom field values, keyed by field key. Unknown keys are ignored, and fields you leave out keep their values. Pass null to clear a field. |
| groups | array | no | The 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. |
| status | string | no | One 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_at | string | no | Must be a valid date in the format yyyy-MM-dd HH:mm:ss |
| ip_address | string | no | Must be a valid ip address |
| opted_in_at | string | no | Must be a valid date in the format yyyy-MM-dd HH:mm:ss |
| optin_ip | string | no | Must be a valid ip address |
| unsubscribed_at | string | no | Must 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
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| string | no | Must provide either valid subscriber id or email | |
| id | string | no | Must provide either valid subscriber id or email |
GET https://connect.mailerlite.com/api/subscribers/31986843064993537
GET https://connect.mailerlite.com/api/subscribers/dummy@example.comResponse
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 FoundFetch total subscribers count
GET https://connect.mailerlite.com/api/subscribers?limit=0Request
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| limit | integer | yes | Value must be 0 |
| filter[status] | string | no | Count only subscribers with this status: active, unsubscribed, unconfirmed, bounced or junk. |
| filter[subscribed_from] | string | no | Count only subscribers who subscribed on or after this day. Y-m-d format, UTC, inclusive. |
| filter[subscribed_to] | string | no | Count 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-31Subscribers 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-logRequest
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| id | string | yes | The ID of the subscriber. Unlike the other subscriber endpoints, this one does not accept an email address. |
| filter[log_name] | string | no | Return 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. |
| limit | integer | no | Number of entries per page. Defaults to 100, maximum 5000. |
| page | integer | no | Page 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/:idRequest
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| id | string | yes | Valid subscriber id for the account |
Response
Response Code: 204 No ContentError
Response Code: 404 Not FoundForget 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/forgetRequest
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| id | string | yes | Valid 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 FoundGet 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/ecommerceRequest
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| id | string | yes | Must be a valid subscriber id |
| shop_id | integer | yes | Must 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 FoundFetch 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/ordersRequest
| Parameter | Type | Required | Limitations |
|---|---|---|---|
| id | string | yes | Must be a valid subscriber id |
| shop_id | integer | yes | Must be a valid e-commerce shop id |
| limit | integer | no | Defaults to 10 |
| page | integer | no | Defaults 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