Limits and quotas
Four kinds of limit apply: how often you may call the validation API, how many emails you may send per day, how big a request or message can be, and how many credits you have. This page lists each one and says where to read your own live values.
Related:Email validationEmail sending
Checked against the API source on
# Plans and their limits: max_api_calls_per_hour, max_bulk_emails, max_sends_per_day, ...
curl "https://api.scrubimail.com/scrubimail/api/v1/plans/"
# Your balances and today's sending usage (daily_sending)
curl "https://api.scrubimail.com/scrubimail/api/v1/credits/" \
-H "X-API-Key: $SCRUBIMAIL_API_KEY"const headers = { "X-API-Key": process.env.SCRUBIMAIL_API_KEY };
const plans = await (await fetch("https://api.scrubimail.com/scrubimail/api/v1/plans/")).json();
const credits = await (await fetch("https://api.scrubimail.com/scrubimail/api/v1/credits/", { headers })).json();
// credits.daily_sending => { limit, sent_today, remaining, resets_at, custom }
console.log(credits.daily_sending);import os
import requests
base = "https://api.scrubimail.com/scrubimail/api/v1"
headers = {"X-API-Key": os.environ["SCRUBIMAIL_API_KEY"]}
plans = requests.get(base + "/plans/", timeout=30).json()
credits = requests.get(base + "/credits/", headers=headers, timeout=30).json()
# credits["daily_sending"] -> limit, sent_today, remaining, resets_at, custom
print(credits["daily_sending"])In daily_sending, limit is 0 when there is no daily limit (then remaining is null), and custom is true when the account has its own limit instead of the plan's. A key that has scopes set can still call GET /credits/.
API rate limits
The hourly limit counts calls to POST /validate/. It is per account, so all your keys share it. POST /validate-bulk/ is not counted in it: bulk validation is limited by whether your plan includes it and by the size of each request (below). Lookups such as history, analytics, bulk status and domain reputation are not counted, and the sending endpoints are not counted against it: sending is limited by your daily sending limit and credits instead.
| Plan | Validation requests per hour | Largest bulk validation request | Bulk validation |
|---|---|---|---|
| Free | 10 | - | Not included |
| Starter | 100 | 5,000 | Included |
| Professional | 500 | 25,000 | Included |
| Business | 1,000 | 100,000 | Included |
| Enterprise | 10,000 or more is treated as unlimited | 500,000 | Included |
- Exceeding the hourly limit on
POST /validate/returns429witherror.coderate_limit_exceeded, aRetry-Afterheader in seconds anderror.meta.retry_after. There are noX-RateLimit-*headers. See Errors and rate limits. - A bulk validation request is also capped at 10,000 addresses by the endpoint itself, whatever the plan's
max_bulk_emailssays. A request over the limit gets an error that states the limit and the number you sent. A plan without bulk validation answers429without a retry time, and retrying will not help. - Per-key limit. A key can carry its own optional cap,
rate_limit_per_hour, set when the key is created. It counts every request made with that key to the validation and sending endpoints, and the stricter of the key's cap and the plan limit wins. A key with no cap uses only the plan limit.
Daily sending limit
Each plan caps how many emails an account may send per UTC day (plan field max_sends_per_day, 0 means no daily limit). It counts every email sent through the API, bulk sends, campaigns and the SMTP relay, per recipient. It resets at 00:00 UTC.
| Plan | Emails per day |
|---|---|
| Free | 100 |
| Starter | 5,000 |
| Professional | 25,000 |
| Business | 100,000 |
| Enterprise | No limit |
- The slot is reserved before the email is accepted, so two requests made at the same moment cannot both take the last slot.
- Unused sends are returned. If a send is refused or cannot be handed off, or a campaign recipient is skipped or fails, the slot goes back to today's allowance.
- A bulk send or a campaign start reserves one slot per sendable recipient at once. If the list is larger than what is left today, the whole request is refused: nothing is sent and nothing is charged. Split the list over several days, or send a part now.
- Resuming a paused campaign does not reserve again; its recipients were counted when it first started.
- This limit is separate from your monthly sending credits. Credits say how much you have paid for, the daily limit says how fast you may spend them.
When you hit it
The HTTP API answers 429 with a Retry-After header holding the seconds until 00:00 UTC. The body is the plain sending shape, not the standard envelope, and it carries the numbers:
{
"error": "Daily sending limit reached: your plan allows 100 emails per day. It resets at 00:00 UTC.",
"code": "daily_send_limit",
"limit": 100,
"remaining": 0,
"resets_at": "2026-12-04T00:00:00+00:00"
}Branch on code, not on the message text. remaining is how many sends are left today: when a bulk request is refused because the list is too long, remaining tells you how many you could send now.
Over SMTP the same limit shows up as a permanent rejection, 550 5.7.1 followed by the same sentence (Daily sending limit reached...). A mail library will not retry a 550 by itself, so queue the message in your app and try again after 00:00 UTC.
Request and message limits
| What | Limit |
|---|---|
Recipients per POST /send/ | 1 (to_email). Use bulk or a campaign for more. |
Recipients per POST /send/bulk/ or campaign | No fixed maximum in the API. In practice the limits are your daily sending limit, your sending credits, and the request body size below. |
| Request body size | A request body over the server limit (16 MB by default) is refused with 413 and error.code payload_too_large. This is the practical ceiling for a very large recipient list or for attachments sent in one call. |
| Attachments per email | 10 files |
| Attachment total size | 10 MB of file data per email, before base64 encoding (the encoded body is about a third larger). The check counts decoded bytes. |
| Attachment file name | Up to 255 characters sent, trimmed to 150. Executable and script types such as exe, js, bat, msi, vbs, ps1, jar and dll are refused. Empty files are refused. |
Inline image content_id | Up to 100 characters: letters, digits and . _ @ -. |
| SMTP message size | 20 MB including attachments. |
| Subject | 998 characters. |
from_name, campaign_name, template name | 255 characters. |
Personalisation variables | 50 per recipient, 1,000 characters per value, names of letters, digits and underscores. |
| List endpoints | 20 items per page by default, page_size up to 100. |
The API sets no maximum number of templates, campaigns or suppressed addresses per account.
Credits: what costs one and what is refunded
Validation and sending have separate balances. Each is drawn from your monthly plan allowance first, then credits you bought. When the relevant balance cannot cover a request the API answers 402 and does nothing.
| Action | Cost | Refund |
|---|---|---|
POST /validate/ (deep, fast or cached) | 1 validation credit | None. A fast or cached answer costs the same. |
POST /validate-bulk/ | 1 validation credit per address, taken as each address is processed | Nothing is charged upfront. The request is refused if your balance is smaller than the list, and a job that runs out of credits stops, keeping the results so far. |
History, analytics, bulk status, domain reputation, GET /credits/ | Free | - |
POST /send/ | 1 sending credit, taken when the request is accepted | Returned if the message is refused (unverified domain, suppressed recipient, bad From address, domain not found) or cannot be handed to the sending service (502). |
POST /send/bulk/ | 1 sending credit per sendable recipient, charged upfront. Duplicate addresses and suppressed addresses are not counted. | Credits for recipients that were not sent (failed hand-off, or skipped) are returned when the run finishes. |
| Starting a campaign | 1 sending credit per recipient in the list, charged once at the first start | Recipients skipped (suppressed, duplicate) or that fail to hand off are returned when the run finishes. Resuming a paused campaign is not charged again. |
| SMTP relay | 1 sending credit per recipient address of each message, charged when the message is accepted | A message refused with 550 5.7.1 is not charged. |
| Sending domains, templates, suppressions, DNS checks | Free | - |
- A message that is accepted and later bounces has been sent, so its credit is not refunded. Validating the list first is how you avoid paying for those.
- Check balances with
GET /credits/:credits_remainingis validation,sending_credits_remainingis sending, andcredit_balancesbreaks them down. - Top up in billing. The credit allowance per plan is in
credits_per_monthandsending_credits_per_monthinGET /plans/.
Handling limits in code
const res = await fetch("https://api.scrubimail.com/scrubimail/api/v1/send/", { method: "POST", headers, body });
if (res.status === 429) {
const data = await res.json();
if (data.code === "daily_send_limit") {
// Out of sends for today. Queue the message and retry after the reset.
const waitSeconds = Number(res.headers.get("Retry-After"));
await requeue(message, { delaySeconds: waitSeconds });
} else {
// Validation rate limit: the envelope carries error.meta.retry_after.
await sleep(Number(res.headers.get("Retry-After") ?? data.error?.meta?.retry_after ?? 60) * 1000);
}
}res = requests.post(base + "/send/", headers=headers, json=payload, timeout=30)
if res.status_code == 429:
data = res.json()
if data.get("code") == "daily_send_limit":
# Out of sends for today. Queue the message and retry after the reset.
requeue(payload, delay_seconds=int(res.headers["Retry-After"]))
else:
wait = res.headers.get("Retry-After") or (data.get("error") or {}).get("meta", {}).get("retry_after") or 60
time.sleep(int(wait))For retry rules on other status codes, see Errors and rate limits.
Something missing or wrong? Email [email protected].