Laposta MCP by usefulapi

v1.17.1
io.usefulapi/laposta Checked 3 days ago Published 1 day ago

Read Laposta lists, members, campaigns and reports; add members and build campaigns.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

laposta_list_lists List mailing lists

List all mailing lists of the Laposta account with member counts (active, unsubscribed, cleaned). Use the list_id in the other tools.

laposta_get_list Get a mailing list

Get one mailing list: name, state, notification addresses and member counts.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).

laposta_list_fields List a list's fields

List the custom fields of a mailing list (name, custom_name used as the key in custom_fields, datatype, required, options). Call this before adding or updating a member.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).

laposta_list_segments List a list's segments

List the segments of a mailing list (a segment id can be a campaign recipient together with its list).

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).

laposta_list_members List members of a list

List the members (subscribers) of a mailing list, one page at a time. Filter by state, free-text search (email and field values) or label. Contains personal data: only fetch what the task needs.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).
cursorstringCursor: pass the previous reply's next_cursor unchanged, with the same filters.
labelstringOnly members with this label (by name).
limitintegerItems per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor).
orderstringSort direction for order_by (default asc).
order_bystringemail, signup_date, or a text field's custom_name (comma-separated for several).
searchstringOnly members containing this text in the email or any text/number/choice field.
statestringOnly members in this state (default: all).

laposta_get_member Get a member

Get one member of a list by member id or email address: state, signup/confirm dates and custom field values.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).
member *stringThe member id OR the member's email address.

laposta_get_member_history Get a member's event history

The event history of one member (subscribed, confirmed, opened, clicked, bounced, unsubscribed, automations ...), newest first by default. Optionally limited to one campaign or a date range. Paged by cursor.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).
member *stringThe member id OR the member's email address.
campaign_idstringOnly events of this campaign.
cursorstringCursor: pass the previous reply's next_cursor unchanged, with the same filters.
event_date_fromstringEvents from this moment, inclusive.
event_date_tostringEvents before this moment, exclusive.
limitintegerItems per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor).
orderstringSort by event date (default desc).

laposta_list_campaigns List campaigns

List the account's campaigns (name, subject, sender, recipient lists, delivery moments). Use limit/offset to page.

ParameterTypeDescription
limitintegerItems to return (default 100, max 500).
offsetintegerItems to skip (default 0). Pass the previous reply's next_offset.

laposta_get_campaign Get a campaign

Get one campaign: name, subject, preview text, sender, reply-to, recipients, delivery moments and web version URL.

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).

laposta_get_campaign_content Get a campaign's content

Get the plain-text content of a campaign (and its import_url if it was imported). Set include_html to also get the full HTML (large).

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).
include_htmlbooleanAlso return the HTML body (default false).

laposta_get_campaign_history Get a campaign's event history

Recipient events of one campaign (delivered, opened, clicked, bounced, unsubscribed ...), newest first by default, optionally within a date range. Paged by cursor. For totals use laposta_get_report.

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).
cursorstringCursor: pass the previous reply's next_cursor unchanged, with the same filters.
event_date_fromstringEvents from this moment, inclusive.
event_date_tostringEvents before this moment, exclusive.
limitintegerItems per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor).
orderstringSort by event date (default desc).

laposta_list_reports List campaign reports

Result figures of all campaigns: sent, accepted, opened, clicked, bounced, unsubscribed, with ratios. Use limit/offset to page.

ParameterTypeDescription
limitintegerItems to return (default 100, max 500).
offsetintegerItems to skip (default 0). Pass the previous reply's next_offset.

laposta_get_report Get a campaign report

Result figures of one campaign: sent, accepted, unique opens and clicks, bounces, complaints, unsubscribes and their ratios.

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).

laposta_add_member Add a member to a list

WRITE: add one email address to a mailing list (subscribe). On a double opt-in list Laposta sends the confirmation email to that address. The address must have given consent. With upsert, an existing active member's fields are overwritten; an unsubscribed member is re-activated unless suppress_reactivation is set.

ParameterTypeDescription
email *string
ip *stringIP address the signup came from (required by Laposta; use the signup source's address, or your own server's if it was entered by staff).
list_id *stringThe list id (from laposta_list_lists).
custom_fieldsobjectCustom field values keyed by the field's custom_name (the variable name shown by laposta_list_fields). Multi-choice fields take an array of option values.
source_urlstringURL the signup came from.
suppress_email_notificationbooleanDo not send the list's signup notification email.
suppress_reactivationbooleanWith upsert: do not re-activate an unsubscribed member.
upsertbooleanOverwrite the fields if the address is already an active member (default false: error).

laposta_update_member Update a member

WRITE: change a member's custom field values and/or email address, or unsubscribe the member (state: unsubscribed). Only the fields you pass change. Re-subscribing a person is not offered here: do it in the Laposta app or with laposta_add_member upsert only when they asked for it.

ParameterTypeDescription
list_id *stringThe list id (from laposta_list_lists).
member *stringThe member id OR the member's email address.
custom_fieldsobjectCustom field values keyed by the field's custom_name (the variable name shown by laposta_list_fields). Multi-choice fields take an array of option values.
emailstringA new email address for this member.
statestringSet to unsubscribed to unsubscribe the member.

laposta_create_campaign Create a campaign draft

WRITE: create a new regular campaign (a draft: it is NOT filled, scheduled or sent). Fill it with laposta_set_campaign_content, check it with laposta_send_test_email and send it in the Laposta app. The from_email must be an approved sender address of the account.

ParameterTypeDescription
from_email *stringSender email address (must be an approved sender in Laposta).
from_name *stringSender name.
list_ids *arrayRecipients: list ids and optionally segment ids.
name *stringInternal campaign name.
subject *stringSubject line.
google_analyticsbooleanLink Google Analytics tracking.
previewtextstringPreview text (max 120 characters).
reply_tostringReply-to address.

laposta_set_campaign_content Set a campaign's content

WRITE: replace a campaign's content with your HTML, or let Laposta import it from a URL (html wins if both are given). Does not send anything. The reply's report lists problems Laposta found (javascript, missing unsubscribe link, missing images).

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).
htmlstringThe complete HTML of the email.
import_urlstringA public URL Laposta fetches the HTML from.
inline_cssbooleanInline the CSS.

laposta_send_test_email Send a campaign test email

WRITE: send a test copy of a campaign (it must have content and not be sent yet) to ONE email address. Does not send the campaign to its recipients.

ParameterTypeDescription
campaign_id *stringThe campaign id (from laposta_list_campaigns).
email *stringWhere to send the test.