add_subscriber_to_group | Add an existing subscriber to a group. Arguments: subscriber_id (string, the numeric MailerLite subscriber id from get_subscriber or list_subscribers — not an email); group_id (string, numeric group id from list_groups). |
create_campaign_draft | Create a regular campaign as a DRAFT (never sent nor scheduled by this action; send it from MailerLite). Arguments: name (string, required); emails (array of exactly ONE object, required: subject string, from_name string, from string — a sender address already verified in MailerLite, optional reply_to string — also verified, optional content string of full HTML — only on MailerLite plans that allow custom HTML, see their pricing page; without content, design the email in MailerLite); groups (optional array of group ids as strings, from list_groups; omit to choose recipients later in MailerLite). |
remove_subscriber_from_group | Remove a subscriber from a group (the subscriber stays in the account). Arguments: subscriber_id (string, numeric subscriber id — not an email); group_id (string, numeric group id from list_groups). |
unsubscribe_subscriber | Unsubscribe an email address without deleting it (sets status to unsubscribed; groups and fields are kept). Argument: email (string, required). If the address is not yet in the account, it is added directly as unsubscribed. |
upsert_subscriber | Create a subscriber, or update it if the email already exists (non-destructive: omitted fields and groups are kept). Arguments: email (string, required); fields (object: field key → string, number or null, keys from list_fields, e.g. {“name”: “Ada”, “last_name”: “Lovelace”}); groups (array of group ids as strings, from list_groups — adds only, never removes); status (one of active, unsubscribed, unconfirmed, bounced, junk); resubscribe (boolean, true to reactivate a previously unsubscribed address); subscribed_at, opted_in_at, unsubscribed_at (strings “yyyy-MM-dd HH:mm:ss”); ip_address, optin_ip (strings, IP addresses). |