REST API
把 Runtime 密钥放在 Authorization 请求头中,切勿把密钥暴露在浏览器代码里。
curl "$ALL2CF_SEND_URL/emails" \ -H "Authorization: Bearer $ALL2CF_SEND_KEY" \ -H "Content-Type: application/json" \ --data '{"from":"hello@example.com","to":["alex@example.net"],"subject":"Hello","html":"<p>Hello from CFsend</p>"}'POST /emails 接受 from、to、subject,以及 html 或 text。生产系统应保存返回的邮件 ID,并通过 Webhook 或 Logs 跟踪最终状态。
只对明确可重试的限流或暂时性服务错误进行指数退避。对域名未验证、密钥无效或请求格式错误,不要盲目重试。