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