Primitive
Docs menuLimits & Quotas
Reference

Limits & Quotas

Storage quota, send and API rate limits, content retention, and the per-account limits Primitive enforces. How to read your account's effective limits from the API.

Primitive enforces a small set of per-organization limits. Your account's effective limits are returned by the API, so you never have to hard-code them — read them at runtime and adapt.

For plan options and pricing, see the pricing page. This page documents the limits themselves and how to observe them.

Read your effective limits

GET /v1/account returns a limits object alongside your plan and granted entitlements:

bash
curl https://api.primitive.dev/v1/account \
  -H "Authorization: Bearer $PRIMITIVE_API_KEY"
json
{
  "success": true,
  "data": {
    "plan": "developer",
    "entitlements": ["..."],
    "limits": {
      "storage_mb": 5120,
      "send_per_hour": 1000,
      "send_per_day": 10000,
      "api_per_minute": 3000,
      "webhooks_max_global": 1,
      "webhooks_per_domain": false,
      "filters_per_domain": false,
      "spam_thresholds_per_domain": false
    }
  }
}
FieldMeaning
storage_mbYour plan's included stored-email storage, in MB. It is an allowance, not a cap: see GET /v1/account/storage (below) for usage, the enforced limit, and billed overage.
send_per_hour / send_per_dayOutbound send caps over a rolling hour and day.
api_per_minuteAuthenticated v1 REST API request cap per organization per minute.
webhooks_max_globalMaximum endpoints across the org. null means unlimited.
webhooks_per_domainWhether endpoints can be scoped per domain.
filters_per_domainWhether allow/block filters can be scoped per domain.
spam_thresholds_per_domainWhether spam thresholds can be set per domain.

webhooks_max_global is null when unlimited. Treat any limit as plan-dependent and read it from this endpoint rather than assuming a fixed value.

Storage

GET /v1/account/storage reports your stored-email usage against your plan's included storage, the limit at which mail is refused (if any), and the storage billed as overage:

bash
curl https://api.primitive.dev/v1/account/storage \
  -H "Authorization: Bearer $PRIMITIVE_API_KEY"
json
{
  "success": true,
  "data": {
    "used_bytes": 148897792,
    "used_kb": 145408,
    "used_mb": 142,
    "included_mb": 5120,
    "limit_mb": 10240,
    "overage_mb": 0,
    "search_index_bytes": 0,
    "quota_mb": 5120,
    "percentage": 2.8,
    "emails_count": 5120
  }
}
FieldMeaning
included_mbStorage included with your plan.
limit_mbStorage at which inbound mail is refused. null on paid plans, which are never refused for storage.
overage_mbStorage past included_mb, counting your mail and your search index. Paid plans are billed for it at the storage rate; on Developer it draws on your monthly credits.
search_index_bytesYour semantic search index, billed as storage at a fixed 8 KiB per indexed chunk. It counts toward included_mb and overage_mb, never toward limit_mb.
quota_mb, percentageThe included allowance and your usage as a percentage of it (can exceed 100). Kept for existing clients; quota_mb equals included_mb and is not a limit.

Stored raw email and attachments count toward storage. To free space, discard content you no longer need.

Payloads (large-file) storage

Primitive Payloads lets you send and receive files of any size by email (end-to-end encrypted, content-addressed), separate from the stored-email quota above. It is on by default for every organization, agent accounts included; the payloads_enabled entitlement in GET /v1/account reports whether it is on for yours.

  • Transfer is free. You never pay for download bandwidth — egress is unlimited at every plan.
  • Storage is billed at $0.03 per GB-month. Because attachments are ephemeral by default, storage is measured over time (GB-months), so short-lived files barely count.
  • Included storage per plan: Developer 5 GB, Power 10 GB, Platinum 50 GB. On Developer the allowance is a hard cap (new uploads are refused once it is full); paid plans bill storage beyond the included amount at the rate above.

Content retention

When you want to delete content, you do it yourself with content discard, which is irreversible. See the Privacy Policy for the full data-handling and deletion terms.

Rate limits

Developer, Power, and Platinum organizations can make up to 3000 authenticated v1 API requests per minute. Organization API keys, OAuth access tokens, and connected agent keys share this budget. Agent-tier organizations have a 120-per-minute budget. Requests without valid organization credentials have a separate 120-per-minute limit per IP. The api_per_minute value from GET /v1/account reports your organization's limit.

When you exceed a rate limit, the API responds with 429 (error code rate_limited, or rate_limit_exceeded on some per-resource limiters), plus Retry-After and ratelimit-* headers. Branch on the 429 status, not the code. See Errors → Rate-limit responses for the exact headers and the recommended back-off.

Outbound sends are additionally bounded by send_per_hour / send_per_day. These protect shared outbound IP reputation; if you have a legitimate higher-volume use case, contact support.

Entitlement-gated features

Some capabilities are turned on per organization and appear in the entitlements array from GET /v1/account. If a feature is not enabled, the relevant endpoint returns 403. The exact code varies by endpoint: the routing endpoints return feature_disabled and include the missing entitlement and a docs_url in error.details, while other gated endpoints return feature_disabled without details or the generic forbidden error. Examples include per-domain filters and routes on paid plans.