# Rate limits and credits

## Rate limits

Each API key allows bursts of **20 requests**, refilled at **10 per second**. Over that you get 429 `rate_limited` with a `Retry-After` header. Every `/v1` response authenticated with a key carries:

| Header | Meaning |
|---|---|
| `X-RateLimit-Limit` | Bucket size (20) |
| `X-RateLimit-Remaining` | Requests you can send right now |
| `X-RateLimit-Reset` | Seconds until the bucket is full again |
| `X-Credits-Remaining` | Your credit balance after this request |

Other limits:

- At most 5 `/v1/verify` or `/v1/verify/batch` requests per account and per client IP wait for a probe at once; beyond that a request answers at once with `state: "pending"`.
- Batch: 100 addresses per call. Lists: 1,000,000 rows, 50 MB, 3 open lists.
- Public tools: 30 a minute and 300 a day per client IP. Email finder and domain search: 20 runs per tool per day.
- Failed authentication: limited per client IP.

```bash
curl -sI https://api.mails.fit/v1/credits -H "Authorization: Bearer $MAILSFIT_KEY" | grep -i '^x-'
```

## Credits

- 1 credit = 1 address checked. New accounts get 100 free credits.
- `unknown` results are refunded automatically.
- Duplicates inside a list are removed before you are charged.
- A request with an `Idempotency-Key` you already used is not charged again.
- Pack credits never expire; monthly plan credits reset at each renewal. See [pricing](/pricing).
- Public tools are free. `GET /v1/credits` returns `{"balance": n}`.
