Skip to content
Concepts

Limits, quotas and costs

Request and payload bounds, rate limits, plan quotas, usage metering, and an honest account of what an AppCore app costs when it is busy and when it is idle.

On this page

Every limit on this page comes from the runtime code. Where a value can be changed by deployment configuration, the default is shown.

Request rules that apply everywhere

LimitValueWhen exceeded
Request body, any route256 KiB413 PAYLOAD_TOO_LARGE
JSON body, unless a route sets its own bound64 KiB413 PAYLOAD_TOO_LARGE
IDs (user_id, event_id, operation_id, …)1–128 chars, ^[A-Za-z0-9][A-Za-z0-9_.:-]*$400 INVALID_REQUEST
Idempotency-Key≤ 200 chars, remembered for 7 days by defaultSame key and same body returns the original result. Same key with a different body is 409 IDEMPOTENCY_KEY_REUSED. A duplicate while the first is still running is 409 IDEMPOTENCY_IN_PROGRESS.
List page sizeDefault 50, maximum 200, cursor-basedLarger values are clamped. A cursor from another list or filter is 400.
MoneyInteger minor-unit string, at most 9,007,199,254,740,991400
Stale edit (expected_version / If-Match)—409 STALE_VERSION

Errors are application/problem+json with a stable code and a request_id. A 429 or 503 that carries retry_after also sets the Retry-After header.

Rate limits

WhatDefault limitResponse
OTP codes sent to one destination5 per hour429 RATE_LIMITED, Retry-After: 3600
OTP codes sent from one client IP30 per hour429, Retry-After: 3600
Failed OTP verifications for one destination10 per hour429, Retry-After: 3600
OTP resend gap60 s (only the newest code is valid)429 with the remaining seconds
OTP attempts per code / code lifetime5 attempts / 5 minutesChallenge ends
Operator recovery-case actions20 per operator per hour429
Template test sends10 per hour429, Retry-After: 600

The OTP limits are durable counters in D1 and can be tuned per deployment.

Warning

Not yet enabled: a general per-client request rate limiter for other routes (analytics intake, purchases, entitlements). Only the limits above exist today. Abuse protection for other routes relies on the payload bounds, idempotency and Cloudflare-level rules set by the platform operator.

Analytics intake

LimitValue
Events per request1–100
Request body256 KiB
One event (serialized)8 KiB
Clock skewEvents more than 5 minutes in the future are rejected (clock_skew_future)
Offline ageEvents older than 7 days are rejected (too_old)
De-duplicationBy installation + event_id, for 30 days
App not active (dormant, suspended, archived, deleting)503 APP_INACTIVE, retry after 1 hour

Partial acceptance is normal. The response (IngestResult) lists accepted, duplicate and rejected counts and gives a reason for each rejection.

Reports and exports (operators)

Reports are fixed templates. Free-form SQL is never accepted. Each report covers at most 92 days and returns at most 2,000 rows, which are truncated with a warning. Person-derived counts below 5 are masked. An export file expires 24 hours after it is created.

Entitlements, messaging and engagement bounds

LimitValue
Credit reservation lifetime1–3,600 seconds
Manual grant validityAt most 366 days ahead
Entitlement snapshot cacheAt most 5 minutes
Engagement messages per user1 per local day, 5 per local week (policy defaults)
Engagement quiet hours21:00–08:00 in the user's time zone (policy default). Security messages bypass quiet hours.
Segment definitionDepth 4, 20 conditions, 50 items per list
Engagement sends per month10,000 by default until a policy profile is pushed (non-production)
Campaign schedulingBlocked with 409 QUOTA_EXCEEDED / BUDGET_EXCEEDED when the audience or projected spend exceeds the policy
Campaign delivery throughputUp to 5 due campaigns × 100 sends per scheduled tick
WhatsApp (disabled by default)Daily spend cap reserved atomically. If the unit price is unknown, sending fails closed with 503.
EmailOptional daily cap per sender connection. Transactional only.

D1 capacity

Each app environment has one D1 database. Cloudflare limits a D1 database to 10 GB, and that limit is never treated as expandable. The control plane alerts at 50%, 70% and 85% of it. At 70% a retention or sharding plan is required. Finance records are never dropped to save space.

Plan quotas

AppCore plans set structural limits (apps, environments per app) and monthly metered limits:

PlanAppsEnvironments per appMAU / monthMessages / monthEvents / monthStorageAuto-stop non-essential work at the limit
Starter125,00050,0002,000,0001 GiBYes
Growth53100,0001,000,00050,000,0005 GiBYes

When enforced, the message quota only stops non-essential traffic (engagement and reminders). OTP, security and transactional messages are always metered but never blocked by the plan cap. Verified store callbacks are never blocked.

Warning

Not yet enabled: plan quota enforcement is not yet verified. The plan table, the app/environment checks (409 QUOTA_EXCEEDED), the monthly message cap passed to each runtime, and the quota-triggered stop of non-essential work were wired into the control plane in the current development round. They have not yet passed the integrated test run or been deployed. Until then, do not rely on a plan limit refusing a request, and a runtime deployed without the quota setting treats the message quota as unlimited (still metered).

Usage metering

Usage is metered with the definitions below (metering.v1). Plan limits, the console and invoices use the same words. Counts are exact, never sampled. Each app environment (development, staging, production) is metered separately in its own runtime. A month is the calendar month in the app's reporting time zone (an IANA zone from the app settings; UTC by default). A closed month never goes down.

Monthly active user (MAU)

A monthly active user is a distinct signed-in user of one app environment who, in the month, did at least one of:

  • sent at least one analytics event from the AppCore SDK that the server accepted;
  • created their account;
  • made a server-verified App Store / Google Play purchase;
  • used metered credits.

Each user counts once per month, however many devices, sessions or events.

  • These do not count someone as active: automatic renewals and other store-driven subscription changes, refunds, invoices, campaign or journey enrolment, messages sent to them.
  • Guests (no account) are reported separately, once per guest per month, and are not part of the user count. A guest who signs up mid-month can appear once as a guest and once as a user in that month only.
  • If a user withdrew analytics consent, their SDK events don't count, but the server actions above still do.
  • Deleting a user never lowers a month already recorded.
  • Test devices and test accounts count like any other user in the environment where they are used; there is no test-device exclusion. Keep QA in development or staging.

Message (billing unit messages_sent)

A message is one message AppCore sent to one user that at least one provider accepted for delivery (FCM/APNs push, transactional email, WhatsApp), or placed in the user's in-app inbox.

  • Counted once per message even if it went to several devices: a push to 3 devices = 1 message.
  • Retries don't add messages, and duplicates are removed.
  • Messages never accepted count zero: failed, expired, suppressed, opted out, quiet hours, frequency-capped, cancelled.
  • "Accepted" means the provider took it for delivery; it does not mean displayed or read.
  • Channels: push, email_transactional, whatsapp, in_app. Campaign and transactional messages count alike. Test sends count.
  • Sign-in / one-time codes (OTP) are not counted as messages today.
  • Per-device delivery attempts (messages_accepted, messages_failed) are reported separately for delivery health and are not the billing unit.

Other metered units

MetricDefinition
events_acceptedSDK analytics events accepted by the server (after validation and duplicate removal). events_rejected and events_duplicate are reported alongside.
purchases_verified / purchases_reversedServer-verified store purchases and their refunds/reversals, once per purchase / reversal.
credit_units_capturedCredit units actually consumed (finalized), by entitlement key.
ingest_bytes / ingest_batchesRaw analytics bytes archived and requests received.
storage_r2_raw_bytesRaw analytics archive currently stored (current month only; retention 30 days).
storage_d1_bytesThe app database size reported by D1 (current month only, when D1 reports it).

Any change to what counts (for example excluding test devices, or counting OTP messages) ships as a new metering version and is never applied retroactively to recorded months.

Note

The runtime counters and their service read route are runtime-tested. The control plane's scheduled pull of these counters (up to 10 environments per tick) is newly wired and has not yet been verified end to end.

What you pay for

Billing for AppCore plans is by invoice from metered usage. AppCore does not charge a card for its own plans. This repository does not publish plan prices. Your agreement sets them.

Separately from the AppCore plan, these costs exist whether or not AppCore passes them through:

CostWho charges itNotes
Store commission, developer program membershipsApple, GoogleNever handled by AppCore. See Stores as merchant of record.
WhatsApp messagesMeta, on the business account you connectPriced per market and category. Off by default.
Transactional emailCloudflare Email SendingPublished rate: 3,000 emails/month included per Cloudflare account, then $0.35 per 1,000 (beta service, snapshot 2026-11-30)
PushFCM / APNsNo per-message provider fee, but each send still uses Worker and D1 usage
Payment processor feesThe PSPOnly if web checkout is enabled later (it is off today)

There is no SMS channel. Phone OTP uses WhatsApp only, behind a flag and a country allowlist.

Infrastructure usage, busy and idle

AppCore runs on Cloudflare Workers and D1, which bill by usage. The published rates used by AppCore's cost estimate (snapshot dated 2026-11-30, USD, before tax) are:

ProductIncluded per account per monthBeyond that
Workers (paid plan)10M requests, 30M CPU-ms$5/month account minimum; $0.30 per million requests; $0.02 per million CPU-ms
D125B rows read, 50M rows written, 5 GB storage$0.001 per million reads; $1 per million writes; $0.75 per GB-month
R2 Standard (raw events, exports)10 GB-month, 1M Class A, 10M Class B operations$0.015 per GB-month; $4.50 / $0.36 per million A / B operations

Allowances belong to the whole Cloudflare account. They are shared by every app and environment on it, not granted per app.

What "scale to zero" means here, and what it does not. There is no provisioned server per app. An app environment with no traffic runs no request handlers and no compute is billed for it. That is the part that scales to zero. These still cost money while an app is idle:

  • Scheduled maintenance. Each runtime has a scheduled tick (every minute in the reference configuration, about 43,200 invocations per environment per month). It drains the outbox, expires reservations, runs bounded store reconciliation and privacy jobs, and applies retention. Each tick is small, but it is not zero requests or zero D1 reads.
  • Storage. D1 data and R2 objects are billed per GB-month whether or not anyone uses the app.
  • The account minimum ($5/month for Workers Paid) and any fixed AppCore plan fee.
  • Provider costs: store memberships, and any per-message email or WhatsApp charges for messages you send.

So an idle app costs close to nothing in compute, not nothing in total. Treat any figure as an estimate. Operators can run the cost.estimate report, which prices measured usage against this dated snapshot, labels itself as an estimate rather than an invoice, and lists what it leaves out. It leaves out Durable Objects, KV, logs, Analytics Engine, custom domains, store and PSP fees, WhatsApp and other external providers, taxes, and engineering or support time.

What this means for your app

  • Batch analytics (up to 100 events, ≤ 256 KiB) and flush on background or interval. Never send one request per event.
  • Always send an Idempotency-Key on effects (purchases, consent, exports) and reuse it on retry.
  • Handle 429 and 503 by honoring Retry-After. Never retry a 400 or 409 unchanged.
  • Keep custom properties small and ID-like. Large or personal values are rejected.
  • Budget your external provider costs (stores, WhatsApp, email beyond the free allowance) separately from AppCore.
  • Do not count on plan limits being enforced yet (see the warning above). Watch usage in the console.