,
},
{
title: "路径",
dataIndex: "path",
width: 220,
render: (v: string) => {v},
},
{ title: "说明", dataIndex: "desc" },
]}
dataSource={API_ENDPOINTS}
/>
curl 示例:
{`# 列出邮箱
curl -H "Authorization: Bearer wmh_你的Key" ${API_BASE}/mailboxes
# 创建邮箱(保留 7 天)
curl -X POST -H "Authorization: Bearer wmh_你的Key" \\
-H "Content-Type: application/json" \\
-d '{"domain_id":"dom_xxx","address":"hello","retention_seconds":604800}' \\
${API_BASE}/mailboxes
# 最新 10 封未过期邮件
curl -H "Authorization: Bearer wmh_你的Key" "${API_BASE}/emails?limit=10"`}
邮件读取强制检查未过期:列表不返回过期邮件,详情对已过期邮件返回 410 Gone。
邮箱保留时长默认 86400 秒(1 天);catch-all 邮箱地址形如 *@域名。
常见状态码:401 未认证(Key 缺失或已失效)、404 资源不存在、409 邮箱已存在、410 邮件已过期。
}
/>
);
}