# Rate limits & quotas

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

| Limit | Free plan |
| --- | --- |
| Emails per month | 3,000 |
| Emails per day | 100 |
| Requests per second | 10 per workspace |
| Recipients per email | 50 |

## Response headers

| Header | Meaning |
| --- | --- |
| X-RateLimit-Limit | Requests allowed per second |
| X-RateLimit-Remaining | Requests left in the current second |
| Retry-After | Seconds to wait, sent with every 429 |

## Backing off

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

> **note:** 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`.
