Cyberimpact MCP by usefulapi
v1.22.1Read 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.
| Parameter | Type | Description |
|---|---|---|
joinedOnFrom | string | Joined on or after this date. |
joinedOnTo | string | Joined on or before this date (whole day). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
status | string | Which subscribed members (default active). |
updatedOnFrom | string | Updated on or after this date. |
updatedOnTo | string | Updated 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}.
| Parameter | Type | Description |
|---|---|---|
key * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
key * | string | The member's email address or numeric id. |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
key * | string | The member's email address or numeric id. |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
cyberimpact_get_member_consent Get member consent
A member's consent record: consent type, relation type, consent date, expiration and proof (for CASL compliance checks). GET /members/{key}/consent.
| Parameter | Type | Description |
|---|---|---|
key * | string | The member's email address or numeric id. |
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.
| Parameter | Type | Description |
|---|---|---|
bouncedOnFrom | string | Bounced on or after this date. |
bouncedOnTo | string | Bounced on or before this date (whole day). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
updatedOnFrom | string | Updated on or after this date. |
updatedOnTo | string | Updated 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
unsubscribedOnFrom | string | Unsubscribed on or after this date. |
unsubscribedOnTo | string | Unsubscribed on or before this date (whole day). |
updatedOnFrom | string | Updated on or after this date. |
updatedOnTo | string | Updated 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
cyberimpact_get_group Get group
One group by id with its member count, mailing count and flags. GET /groups/{id}.
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | Cyberimpact 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.
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | Cyberimpact group id. |
joinedOnFrom | string | Joined on or after this date. |
joinedOnTo | string | Joined on or before this date (whole day). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
updatedOnFrom | string | Updated on or after this date. |
updatedOnTo | string | Updated 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}.
| Parameter | Type | Description |
|---|---|---|
group_id | integer | Only mailings sent to this group id. |
kind | string | Which mailings (default sent). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort 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}.
| Parameter | Type | Description |
|---|---|---|
mailing_id * | integer | Cyberimpact 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}].
| Parameter | Type | Description |
|---|---|---|
mailing_id * | integer | Cyberimpact mailing id. |
group_id | integer | Only recipients that belong to this group id. |
kind | string | Which recipients (default all). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
cyberimpact_list_templates List templates
List the account's email templates (id, title, created/updated). GET /templates.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort | string | Sort order. |
cyberimpact_get_template Get template
One template by id with its HTML and text body (cut at 20 000 characters). GET /templates/{id}.
| Parameter | Type | Description |
|---|---|---|
template_id * | integer | Cyberimpact 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}.
| Parameter | Type | Description |
|---|---|---|
batch_id * | integer | Cyberimpact batch id. |
show_error_details | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | The member's email address. |
group_ids * | array | Group ids to subscribe the member to (see cyberimpact_list_groups). |
birthdate | string | Birth date, yyyy-mm-dd. |
company | string | Company. |
country | string | ISO 3166-1 alpha-2 country code, e.g. CA. |
customFields | object | Custom field values keyed by custom field id (see cyberimpact_list_custom_fields). |
firstname | string | First name. |
gender | string | m, f or o. |
language | string | en_ca or fr_ca. |
lastname | string | Last name. |
note | string | Free-text note. |
postalCode | string | Postal 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}.
| Parameter | Type | Description |
|---|---|---|
key * | string | The member's email address or numeric id. |
birthdate | string | Birth date, yyyy-mm-dd. |
company | string | Company. |
country | string | ISO 3166-1 alpha-2 country code, e.g. CA. |
customFields | object | Custom field values keyed by custom field id (see cyberimpact_list_custom_fields). |
firstname | string | First name. |
gender | string | m, f or o. |
language | string | en_ca or fr_ca. |
lastname | string | Last name. |
new_email | string | The member's NEW email address. |
note | string | Free-text note. |
postalCode | string | Postal 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.
| Parameter | Type | Description |
|---|---|---|
group_ids * | array | Group ids to add the member to. |
key * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
confirm_send * | boolean | Must be true: the user explicitly approved emailing this address. |
email * | string | The address that receives the confirmation email. |
group_ids * | array | Group ids the person joins once they confirm. |
birthdate | string | Birth date, yyyy-mm-dd. |
company | string | Company. |
country | string | ISO 3166-1 alpha-2 country code, e.g. CA. |
customFields | object | Custom field values keyed by custom field id (see cyberimpact_list_custom_fields). |
firstname | string | First name. |
gender | string | m, f or o. |
language | string | en_ca or fr_ca. |
lastname | string | Last name. |
note | string | Free-text note. |
optinConfirmUrl | string | Page the person lands on after confirming (http:// or https:// URL). |
postalCode | string | Postal 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.
| Parameter | Type | Description |
|---|---|---|
is_public * | boolean | true = public group, false = private group. |
title * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
title * | string | The template name. |
bodyHtml | string | HTML body. At least one of bodyHtml or bodyText is required. |
bodyText | string | Plain-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.
| Parameter | Type | Description |
|---|---|---|
confirm_send * | boolean | Must be true: the user explicitly approved sending this mailing to these groups. |
group_ids * | array | Groups whose members receive the mailing (see cyberimpact_list_groups; check member counts first). |
language * | string | en_ca or fr_ca. |
send_at * | string | When to start sending, 'yyyy-mm-dd HH:mm:ss'. Cyberimpact reports dates in Eastern time (EST/EDT). |
subject * | string | Email subject. |
bodyHtml | string | HTML body. At least one of bodyHtml or bodyText is required. |
bodyText | string | Plain-text body. At least one of bodyHtml or bodyText is required. |
from_name | string | From name. |
mail_from | string | From address; must be a validated sender in the account. |
reply_to | string | Reply-to address. |
statistics | string | detailed (default) or anonymized open/click statistics. |