SendLayer MCP by usefulapi

v1.2.1
io.usefulapi/sendlayer Checked 3 days ago Published 1 day ago

Send emails, check delivery events and manage webhooks in SendLayer.

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

sendlayer_get_events Get email events

Get the delivery events of your emails: accepted, rejected, failed, delivered, opened, clicked, unsubscribed, complained. Filter by time window, event type, or one email's MessageID. Pages with start_from and retrieve_count. Uses GET /events.

ParameterTypeDescription
end_dateintegerEnd of the window, Unix timestamp in seconds.
eventstringOnly this event type.
message_idstringOnly events of this email (MessageID from sendlayer_send_email).
retrieve_countintegerHow many records to return (API default if omitted).
start_dateintegerStart of the window, Unix timestamp in seconds.
start_fromintegerOffset of the first record (default 0).

sendlayer_list_webhooks List webhooks

List the webhooks of your sender domain: id, event type, target URL, status, and the last response code. Uses GET /webhooks.

sendlayer_send_email Send an email

Send a real email now: SendLayer accepts it at once and cannot recall it. The From address must use your verified sender domain. Give html_content, plain_content, or both (both is recommended). Limits: 10 To, 10 CC, 5 BCC recipients. This server accepts at most 4 MiB per request, base64 attachments included. Only send to people who consented to receive it. Uses POST /email and returns the MessageID; check delivery with sendlayer_get_events.

ParameterTypeDescription
from *object
subject *stringSubject line.
to *array1 to 10 recipients.
attachmentsarrayAttachments; the whole request must stay under 4 MiB (base64 adds about 33%).
bccarrayUp to 5 BCC recipients.
ccarrayUp to 10 CC recipients.
headersobjectExtra message headers, for example X-Mailer.
html_contentstringHTML body. Give this, plain_content, or both.
plain_contentstringPlain-text body. Give this, html_content, or both.
reply_toarrayReply-To addresses.
tagsarrayTags sent with the email.

sendlayer_create_webhook Create a webhook

Create a webhook that SendLayer calls for one event type: bounce, click, open, unsubscribe, complaint, or delivery. Each call adds a new webhook, so do not repeat it. Uses POST /webhooks and returns the new webhook id.

ParameterTypeDescription
event *stringEvent type that triggers the webhook.
webhook_url *stringURL that receives the webhook calls (use https).

sendlayer_delete_webhook Delete a webhook

Delete one webhook by its id (from sendlayer_list_webhooks). The webhook stops receiving events at once. Uses DELETE /webhooks/{id}.

ParameterTypeDescription
webhook_id *integerThe webhook id (WebhookID from sendlayer_list_webhooks).