代表客户管理邮件

客户运营

适用于为客户处理行政事务的代理机构和服务提供商。为每个客户创建专属邮箱,将邮件路由到您的系统。

核心功能

  • 按客户分配邮箱
  • 按域名进行 webhook 路由
  • 合规审计追踪
  • 长保留期选项

示例

# Create client-specific inbox
curl -X POST https://app.mailhook.co/api/v1/email_addresses \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "local_part": "acme-corp",
    "domain_id": "dom_abc123",
    "metadata": {
      "client_id": "client_789",
      "project": "benefits_enrollment"
    }
  }'

# Configure webhook for this client
curl -X POST https://app.mailhook.co/api/v1/webhooks \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "url": "https://your-app.com/webhooks/email",
    "email_address_id": "ea_xyz123",
    "events": ["inbound_email"]
  }'

# Webhook payload includes metadata
{
  "event": "inbound_email",
  "data": {
    "from": "[email protected]",
    "subject": "Benefits Confirmation",
    "metadata": {
      "client_id": "client_789",
      "project": "benefits_enrollment"
    }
  }
}

准备好开始了吗?

60 秒内创建您的第一个邮箱。