Laposta MCP by usefulapi
v1.17.1Read 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id (from laposta_list_lists). |
cursor | string | Cursor: pass the previous reply's next_cursor unchanged, with the same filters. |
label | string | Only members with this label (by name). |
limit | integer | Items per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor). |
order | string | Sort direction for order_by (default asc). |
order_by | string | email, signup_date, or a text field's custom_name (comma-separated for several). |
search | string | Only members containing this text in the email or any text/number/choice field. |
state | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id (from laposta_list_lists). |
member * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id (from laposta_list_lists). |
member * | string | The member id OR the member's email address. |
campaign_id | string | Only events of this campaign. |
cursor | string | Cursor: pass the previous reply's next_cursor unchanged, with the same filters. |
event_date_from | string | Events from this moment, inclusive. |
event_date_to | string | Events before this moment, exclusive. |
limit | integer | Items per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor). |
order | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items to return (default 100, max 500). |
offset | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The campaign id (from laposta_list_campaigns). |
include_html | boolean | Also 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.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The campaign id (from laposta_list_campaigns). |
cursor | string | Cursor: pass the previous reply's next_cursor unchanged, with the same filters. |
event_date_from | string | Events from this moment, inclusive. |
event_date_to | string | Events before this moment, exclusive. |
limit | integer | Items per page (default 25, max 100; a large page can be cut at 50,000 characters and lose its next_cursor). |
order | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items to return (default 100, max 500). |
offset | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
ip * | string | IP 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 * | string | The list id (from laposta_list_lists). |
custom_fields | object | Custom 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_url | string | URL the signup came from. |
suppress_email_notification | boolean | Do not send the list's signup notification email. |
suppress_reactivation | boolean | With upsert: do not re-activate an unsubscribed member. |
upsert | boolean | Overwrite 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.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id (from laposta_list_lists). |
member * | string | The member id OR the member's email address. |
custom_fields | object | Custom 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. |
email | string | A new email address for this member. |
state | string | Set 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.
| Parameter | Type | Description |
|---|---|---|
from_email * | string | Sender email address (must be an approved sender in Laposta). |
from_name * | string | Sender name. |
list_ids * | array | Recipients: list ids and optionally segment ids. |
name * | string | Internal campaign name. |
subject * | string | Subject line. |
google_analytics | boolean | Link Google Analytics tracking. |
previewtext | string | Preview text (max 120 characters). |
reply_to | string | Reply-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).
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The campaign id (from laposta_list_campaigns). |
html | string | The complete HTML of the email. |
import_url | string | A public URL Laposta fetches the HTML from. |
inline_css | boolean | Inline 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.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | The campaign id (from laposta_list_campaigns). |
email * | string | Where to send the test. |