One call, every email. Receipts, resets and alerts go out over one REST call, with a timeline for every message.
// send.ts
await fetch(
"https://api.rasket.com/emails",
{
method: "POST",
headers: {
Authorization: `Bearer ${key}`,
"Content-Type": "application/json",
"Idempotency-Key": "order-2041",
},
body: JSON.stringify({
from: "hi@northwind.dev",
to: ["maya@example.com"],
template: { id: "receipt" },
}),
},
);
4ef9a417 · Your receipt
- Queued10:04:12.031
- Sent10:04:12.418
- Delivered10:04:13.207
- Opened10:06:40.992
Safe to retry.
An idempotency key means a retried request never sends the same email twice.
Every stack.
A sample for Node, Python, Rails, Go and more. One key, one POST.