/groups/group_name/subscribers

Add a new single subscriber to the group with the given name. If the group doesn't exist, it gets created. If multiple groups with the same name exist, the subscriber is added to the oldest group. [Rate limited]

post/groups/group_name/subscribers

Request

  • Base URL
    https://api.mailerlite.com/api/v2
  • URL
    https://api.mailerlite.com/api/v2/groups/group_name/subscribers
  • Auth
    API key in header X-MailerLite-ApiKey

Request body

group_namestring

The name of the group to add the subscriber to

emailstring

email of new subscriber

namestring
resubscribeboolean

reactivate subscriber if value is true

autorespondersboolean

autoresponders will be sent if value is true

typestring

available values: unsubscribed, active, unconfirmed

Response

200

idinteger
namestring
emailstring
sentinteger
openedinteger
clickedinteger
typestring
date_subscribeunknown
date_unsubscribeunknown
date_createdstring

Example response

{
  "id": 1343965485,
  "name": "John",
  "email": "demo@mailerlite.com",
  "type": "active",
  "fields": [
    {
      "key": "email",
      "value": "demo@mailerlite.com",
      "type": "TEXT"
    }
  ],
  "date_created": "2016-04-04"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.