Cyberimpact MCP by usefulapi

v1.22.1
io.usefulapi/cyberimpact Checked 3 days ago Published 1 day ago

Read Cyberimpact members, groups and mailing results; add members, send opt-ins, create mailings.

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

cyberimpact_get_account Get account

Check the connection and show which Cyberimpact account the API token belongs to (username, email, account name). GET /ping.

cyberimpact_list_members List members

List subscribed contacts (members) with name, email, language, consent type, mailing counts and custom fields. status: active (in at least one group, default), orphans (in no group) or all. Filter by the date a member joined or was last updated. Bounced and unsubscribed members have their own tools. GET /members.

ParameterTypeDescription
joinedOnFromstringJoined on or after this date.
joinedOnTostringJoined on or before this date (whole day).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.
statusstringWhich subscribed members (default active).
updatedOnFromstringUpdated on or after this date.
updatedOnTostringUpdated on or before this date (whole day).

cyberimpact_get_member Get member

One member by email address or id: all attributes, consent type, mailings received/opened/clicked and custom fields (keyed by custom field id; see cyberimpact_list_custom_fields). GET /members/{key}.

ParameterTypeDescription
key *stringThe member's email address or numeric id.

cyberimpact_get_member_groups Get member's groups

The groups a member belongs to (id, title, public/private, dynamic). GET /members/{key}/groups.

ParameterTypeDescription
key *stringThe member's email address or numeric id.
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.

cyberimpact_get_member_mailings Get member's mailings

The mailings a member received (use it to see what a contact was sent and when). GET /members/{key}/mailings.

ParameterTypeDescription
key *stringThe member's email address or numeric id.
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.

cyberimpact_list_bounced_members List bounced members

Members whose last mailing hard-bounced (invalid addresses to clean up), with the bounce date. GET /members/bounced.

ParameterTypeDescription
bouncedOnFromstringBounced on or after this date.
bouncedOnTostringBounced on or before this date (whole day).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.
updatedOnFromstringUpdated on or after this date.
updatedOnTostringUpdated on or before this date (whole day).

cyberimpact_list_unsubscribed_members List unsubscribed members

Members who unsubscribed, with the unsubscribe date. These contacts must not be mailed again. GET /members/unsubscribed.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.
unsubscribedOnFromstringUnsubscribed on or after this date.
unsubscribedOnTostringUnsubscribed on or before this date (whole day).
updatedOnFromstringUpdated on or after this date.
updatedOnTostringUpdated on or before this date (whole day).

cyberimpact_list_custom_fields List custom fields

The account's custom member fields (id, name, type text/date/integer/decimal). Member customFields are keyed by these ids. GET /customfields.

cyberimpact_list_groups List groups

List the account's groups (mailing lists) with member and mailing counts, public/private and dynamic flags. Use the ids to target mailings and opt-ins. GET /groups.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.

cyberimpact_get_group Get group

One group by id with its member count, mailing count and flags. GET /groups/{id}.

ParameterTypeDescription
group_id *integerCyberimpact group id.

cyberimpact_list_group_members List group members

The members of one group, with the same member filters as cyberimpact_list_members. GET /groups/{id}/members.

ParameterTypeDescription
group_id *integerCyberimpact group id.
joinedOnFromstringJoined on or after this date.
joinedOnTostringJoined on or before this date (whole day).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.
updatedOnFromstringUpdated on or after this date.
updatedOnTostringUpdated on or before this date (whole day).

cyberimpact_list_mailings List mailings

List mailings by state: sent (default, archived ones excluded), scheduled (queued to go out) or archived. Each has id, subject, language, send/schedule date, recipient count and sender. Optionally only mailings sent to one group. GET /mailings/{sent|scheduled|archived}.

ParameterTypeDescription
group_idintegerOnly mailings sent to this group id.
kindstringWhich mailings (default sent).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order (date_sent_* only applies to archived mailings).

cyberimpact_get_mailing Get mailing

One mailing by id with its results: sent/delivered/stopped counts, views, clicks, delivery/click/view rates, per-link clicks, recipient groups, sender and body (HTML/text, cut at 20 000 characters). GET /mailings/{id}.

ParameterTypeDescription
mailing_id *integerCyberimpact mailing id.

cyberimpact_list_mailing_recipients List mailing recipients

Who received a mailing and what happened: kind = all, delivered, stopped, hard_bounced, soft_bounced, unsubscribed, opened or clicked. Optionally only recipients from one group. GET /mailings/{id}/recipients[/{kind}].

ParameterTypeDescription
mailing_id *integerCyberimpact mailing id.
group_idintegerOnly recipients that belong to this group id.
kindstringWhich recipients (default all).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.

cyberimpact_list_templates List templates

List the account's email templates (id, title, created/updated). GET /templates.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order.

cyberimpact_get_template Get template

One template by id with its HTML and text body (cut at 20 000 characters). GET /templates/{id}.

ParameterTypeDescription
template_id *integerCyberimpact template id.

cyberimpact_get_batch Get batch

Status of a bulk batch job (NEW, PROCESSING or COMPLETED) and its result. Set show_error_details to list the per-member errors. GET /batches/{id}.

ParameterTypeDescription
batch_id *integerCyberimpact batch id.
show_error_detailsbooleanInclude the details of each error.

cyberimpact_add_member Add member

WRITE: add a contact as a subscribed member WITHOUT a confirmation email (implied consent) and put it in the given groups; the contact can then be mailed. Only use it for people who really gave their consent (CASL); to ask the person to confirm first use cyberimpact_send_optin. A member that already exists is rejected by the API. Throttled by Cyberimpact; for many contacts use the app's import. POST /members.

ParameterTypeDescription
email *stringThe member's email address.
group_ids *arrayGroup ids to subscribe the member to (see cyberimpact_list_groups).
birthdatestringBirth date, yyyy-mm-dd.
companystringCompany.
countrystringISO 3166-1 alpha-2 country code, e.g. CA.
customFieldsobjectCustom field values keyed by custom field id (see cyberimpact_list_custom_fields).
firstnamestringFirst name.
genderstringm, f or o.
languagestringen_ca or fr_ca.
lastnamestringLast name.
notestringFree-text note.
postalCodestringPostal code.

cyberimpact_update_member Update member

WRITE: change only the given attributes of a member (other attributes stay as they are). The old values of the changed fields are overwritten and not recoverable through the API. Set new_email to change the address. PATCH /members/{key}.

ParameterTypeDescription
key *stringThe member's email address or numeric id.
birthdatestringBirth date, yyyy-mm-dd.
companystringCompany.
countrystringISO 3166-1 alpha-2 country code, e.g. CA.
customFieldsobjectCustom field values keyed by custom field id (see cyberimpact_list_custom_fields).
firstnamestringFirst name.
genderstringm, f or o.
languagestringen_ca or fr_ca.
lastnamestringLast name.
new_emailstringThe member's NEW email address.
notestringFree-text note.
postalCodestringPostal code.

cyberimpact_add_member_to_groups Add member to groups

WRITE: add an existing member to more groups (existing group memberships are kept). Being in a group makes the member a recipient of mailings sent to it. Returns the member's groups after the update. POST /members/{key}/groups.

ParameterTypeDescription
group_ids *arrayGroup ids to add the member to.
key *stringThe member's email address or numeric id.

cyberimpact_send_optin Send opt-in email

WRITE, SENDS AN EMAIL to the given address: an opt-in confirmation request. The person is added to the groups only after they confirm (the member is created if it does not exist). Use this instead of cyberimpact_add_member when you do not have the person's consent yet. Only call it after the user has approved sending to this address, and set confirm_send to true. Throttled by Cyberimpact. POST /members/optins.

ParameterTypeDescription
confirm_send *booleanMust be true: the user explicitly approved emailing this address.
email *stringThe address that receives the confirmation email.
group_ids *arrayGroup ids the person joins once they confirm.
birthdatestringBirth date, yyyy-mm-dd.
companystringCompany.
countrystringISO 3166-1 alpha-2 country code, e.g. CA.
customFieldsobjectCustom field values keyed by custom field id (see cyberimpact_list_custom_fields).
firstnamestringFirst name.
genderstringm, f or o.
languagestringen_ca or fr_ca.
lastnamestringLast name.
notestringFree-text note.
optinConfirmUrlstringPage the person lands on after confirming (http:// or https:// URL).
postalCodestringPostal code.

cyberimpact_create_group Create group

WRITE: create a new, empty group (mailing list). A public group can be offered on subscription forms; a private one is internal. Groups cannot be deleted through this server. POST /groups.

ParameterTypeDescription
is_public *booleantrue = public group, false = private group.
title *stringThe group name.

cyberimpact_create_template Create template

WRITE: create a new email template from HTML and/or text. It is only saved in the account; nothing is sent. POST /templates.

ParameterTypeDescription
title *stringThe template name.
bodyHtmlstringHTML body. At least one of bodyHtml or bodyText is required.
bodyTextstringPlain-text body. At least one of bodyHtml or bodyText is required.

cyberimpact_create_mailing Schedule mailing

WRITE, SENDS EMAIL TO CUSTOMERS: create a mailing scheduled to be sent at send_at to every member of the chosen groups. It goes out for real unless it is cancelled in the Cyberimpact app before send_at. Only call it after the user has approved the subject, body, sender and groups, and set confirm_send to true. mail_from must be a validated sender address of the account. A mailing cannot be deleted through this server. POST /mailings.

ParameterTypeDescription
confirm_send *booleanMust be true: the user explicitly approved sending this mailing to these groups.
group_ids *arrayGroups whose members receive the mailing (see cyberimpact_list_groups; check member counts first).
language *stringen_ca or fr_ca.
send_at *stringWhen to start sending, 'yyyy-mm-dd HH:mm:ss'. Cyberimpact reports dates in Eastern time (EST/EDT).
subject *stringEmail subject.
bodyHtmlstringHTML body. At least one of bodyHtml or bodyText is required.
bodyTextstringPlain-text body. At least one of bodyHtml or bodyText is required.
from_namestringFrom name.
mail_fromstringFrom address; must be a validated sender in the account.
reply_tostringReply-to address.
statisticsstringdetailed (default) or anonymized open/click statistics.