SadaSend

安全的交易邮件API和投递引擎,适用于AI代理,具备服务器强制执行的收件人白名单、发送前弹回验证以及人工审批暂存功能。

托管 MCP 服务器

npx add-mcp 'https://mcp.sadasend.com'

可安装到 Claude Code、Codex、Cursor 等客户端

文档

Base URL and authentication

Every request is authenticated with a bearer token. Keys are environment-scoped and carry their own limits, IP allowlists, expiration dates, and persona tags.

POST https://api.sadasend.com/emails
Authorization: Bearer sada_live_sk_…
Idempotency-Key: 6f1c2a80-…
X-SadaSend-Agent: SupportBot
X-SadaSend-Source: agent
Content-Type: application/json

{
  "from": "notifications@yourdomain.com",
  "to": "user@example.com",
  "cc": ["team@example.com"],
  "bcc": ["archive@yourdomain.com"],
  "subject": "Your receipt",
  "html": "<p>Thank you for your order.</p>",
  "agent_name": "SupportBot",
  "source": "agent"
}

Channel & Agent Provenance

Every email accepted by SadaSend is automatically tagged with its ingress channel (mcp, sdk, api, smtp), sending persona source (agent, backend, automation, system), and optional agent identifier.

Provenance gives your team complete deliverability observability. You can filter the Email Activity log by agent name, inspect origin cards in the email detail drawer, and review agent deliverability health and bounce rates in your dashboard analytics.

/** Ingress channel & sending persona provenance */
export interface EmailProvenance {
  /** Ingress protocol: 'mcp' | 'sdk' | 'api' | 'smtp' */
  channel?: 'mcp' | 'sdk' | 'api' | 'smtp';

  /** Sending persona source: 'agent' | 'backend' | 'automation' | 'system' */
  source?: 'agent' | 'backend' | 'automation' | 'system';

  /** Optional agent identifier (up to 128 characters) */
  agent_name?: string;
}

Errors

Errors return a machine-readable code and a human-readable message. Both are always present.

{
  "error": "recipient_not_allowlisted",
  "message": "Key allowlist is [@example.com]. Recipient is outside it.",
  "docs": "https://www.sadasend.com/docs/errors#recipient_not_allowlisted"
}