Learn

Rate limits & quotas

How much you can send and how to stay within limits.

LimitFree plan
Emails per month3,000
Emails per day100
Requests per second10 per workspace
Recipients per email50

Response headers

HeaderMeaning
X-RateLimit-LimitRequests allowed per second
X-RateLimit-RemainingRequests left in the current second
Retry-AfterSeconds to wait, sent with every 429

Backing off

1async function send(body, attempt = 0) {
2  const res = await fetch("https://sendtern.com/emails", { method: "POST", headers, body });
3  if (res.status === 429 && attempt < 5) {
4    const wait = Number(res.headers.get("Retry-After") || 2 ** attempt);
5    await new Promise((r) => setTimeout(r, wait * 1000));
6    return send(body, attempt + 1);
7  }
8  return res.json();
9}

Daily and monthly quotas reset at 00:00 UTC. When a quota is used up, sends return 429 with daily_quota_exceeded or monthly_quota_exceeded.