SendLayer MCP by usefulapi
v1.2.1Send 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.
| Parameter | Type | Description |
|---|---|---|
end_date | integer | End of the window, Unix timestamp in seconds. |
event | string | Only this event type. |
message_id | string | Only events of this email (MessageID from sendlayer_send_email). |
retrieve_count | integer | How many records to return (API default if omitted). |
start_date | integer | Start of the window, Unix timestamp in seconds. |
start_from | integer | Offset 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.
| Parameter | Type | Description |
|---|---|---|
from * | object | |
subject * | string | Subject line. |
to * | array | 1 to 10 recipients. |
attachments | array | Attachments; the whole request must stay under 4 MiB (base64 adds about 33%). |
bcc | array | Up to 5 BCC recipients. |
cc | array | Up to 10 CC recipients. |
headers | object | Extra message headers, for example X-Mailer. |
html_content | string | HTML body. Give this, plain_content, or both. |
plain_content | string | Plain-text body. Give this, html_content, or both. |
reply_to | array | Reply-To addresses. |
tags | array | Tags 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.
| Parameter | Type | Description |
|---|---|---|
event * | string | Event type that triggers the webhook. |
webhook_url * | string | URL 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}.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | integer | The webhook id (WebhookID from sendlayer_list_webhooks). |