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"
}