# Limiti tariffari e quote

> Quanto puoi inviare e come rispettare i limiti.

| Limite | Piano gratuito |
| --- | --- |
| Email al mese | 3,000 |
| Email al giorno | 100 |
| Richieste al secondo | 10 per workspace |
| Destinatari per email | 50 |

## Intestazioni di risposta

| Intestazione | Significato |
| --- | --- |
| Limite di velocità X | Richieste consentite al secondo |
| X-RateLimit-Remaining | Richieste lasciate nel secondo corrente |
| Riprova dopo | Secondi di attesa, inviati ogni 429 |

## - Si'. - Si'.

```
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:** Le quote giornaliere e mensili vengono resettate alle 00:00 UTC.Quando una quota è esaurita, invia un messaggio di ritorno . `429` con `daily_quota_exceeded` o `monthly_quota_exceeded`.
