Paging requests consume both budgets. Requests behind the same connecting address share limits. The network uses the edge-supplied connecting address and does not store the raw address in the limiter.
Handle HTTP 429
Exhausting either budget returns HTTP 429 with errorpilot_rate_limited and a Retry-After header containing positive integer seconds until the window resets. Wait at least that long, then retry with bounded backoff. Avoid concurrent retry loops that consume the shared budget immediately.
If limit storage is unavailable, admission fails closed rather than allowing unlimited reads. Treat HTTP 503 as temporary unavailability and retry with bounded backoff.
GET /api/relations requires bearer authority with the read scope and returns HTTP 401 authentication_required without it. It uses neither an anonymous budget nor the public colo cache. Public follows remain readable through each actor’s followers and following routes.
Authorized requests
Authorized reads are exempt from these anonymous budgets. The write budgets below still apply. Sending an invalid or expired token does not convert a request into anonymous access. Never fall back to anonymous reads inside a signed-in experience after a refusal.Write budgets
Every accepted write (posts, replies, edits, deletions, likes, unlikes, follows, unfollows, blocks, profile edits and inbox read marks) is charged against one budget for the person and one for the application. Reports have their own pair. The application budgets are set where only a runaway or compromised application reaches them; they are not a launch ceiling.
A refused write returns HTTP 429
pilot_rate_limited with Retry-After as above. A post refused by the young-account budget is not charged to the actor or application budgets. Budgets are per connected application: the same person using two applications has two actor budgets.
Independent of these budgets, the network serialises guarded writes on a single D1 primary because each write advances the revision; the hosted baseline measures roughly 60 to 100 ms per write, so the practical ceiling across all applications is about 10 to 15 writes per second today. Spread bulk writes rather than bursting them, and treat HTTP 503 as temporary.
These limits regulate service access; they do not make public posts confidential. Network availability, deletion and moderation rules continue to apply.
Public authentication budgets
Signup, verification mail and password reset requests are admitted against durable budgets before any password or mail work runs. Budgets are keyed by the edge-supplied connecting address and the normalized mailbox; neither raw value is stored.
The network-wide signup budget is an abuse ceiling, not an expected daily volume. Exhausting any of these budgets returns HTTP 429
pilot_rate_limited. If limit storage is unavailable the request fails closed with HTTP 503 rather than admitting an unbudgeted signup.
Per-address burst caps also apply inside the authentication handler, per minute: 20 signups, 10 sign-ins, 5 each for verification, password reset request and password reset completion, and 60 for other authentication routes. A refused burst returns HTTP 429 with an X-Retry-After header in seconds.
Token endpoint
POST /api/auth/oauth2/token is budgeted by how the request authenticates, not by the connecting address alone.
A confidential client’s token requests are exempt from the per-address rule, so a server-backed application refreshing many sessions from one address, or from none at all, is bounded by its own grant budget. Only grants that succeed count toward it: a request refused with
invalid_client or invalid_grant is not charged there, so a wrong secret cannot exhaust a registered client’s budget. Such failures are charged instead to the address that sent them. Once 600 grants have succeeded within the window, or the address’s failure budget is spent, further token requests return HTTP 429 pilot_rate_limited with a Retry-After header. Both budgets are read before the grant is processed, so a refused refresh token was not spent: wait at least Retry-After seconds and present the same refresh token again rather than retiring the session.
Decision: exempting client-authenticated requests from the per-address rule trades the old bound on secret guessing (30 attempts per minute per address, correct or not) for a failure budget of 10 per minute per address. A per-client failure budget was considered and rejected: sixty wrong-secret requests spread over addresses would have closed a registered application’s token endpoint for all of its users, a cheaper attack than the distributed guessing it bounded, and a 32-byte random secret is not at risk from guessing at 10 attempts per address per minute behind the zone’s rate-limiting rule. An exhausted address is refused even with the right secret, so an application that shares an address with a guesser loses that address for the window and keeps every other; the service binding path a hosted application uses carries no connecting address and is charged no failure budget, since only this network’s own application workers reach the core that way.
Access tokens live 900 seconds and refresh tokens 30 days (see Token lifetime and rotation), so a signed-in session that stays active refreshes about four times an hour. A revoked grant is refused on its next request whatever lifetime its access token has left.
Actor relation pages
GET /api/actors/{actorId}/followers and GET /api/actors/{actorId}/following use cursor and limit (default 50, maximum 100; larger values are clamped). Ordering is newest follow first with the relation primary key as the stable tie-breaker. The cursor is opaque: pass it back unchanged. A malformed token returns HTTP 400 invalid_page_cursor. A token past the end returns an empty array with a null cursor.
Rows are sliced before eligibility and viewer safety filtering, so a short or empty page can still carry a cursor. Continue while cursor is non-null. Anonymous followers and following reads use the combined 600 reads per minute budget and the public colo cache.
Public feed pages
GET /api/feed (or ?kind=public) accepts cursor and limit and returns {posts, cursor}. Omitted or invalid limits use 50; positive safe integers above 100 clamp to 100. Roots are ordered by creation time descending, then post id descending. Pass the opaque cursor back unchanged. Malformed tokens and relation-list tokens return HTTP 400 invalid_page_cursor; a position past the end returns {posts: [], cursor: null}. Deleting the boundary post does not invalidate the token.
Pages are sliced before author eligibility and symmetric viewer block filtering. A short or empty page may carry a cursor; offer Load more whenever it does. Feed reads use the ordinary anonymous budget, not the shared events/reconcile budget. Reconcile includes the first page under public, with a page cursor; its top-level cursor remains the event cursor. Actor posts use the same page size and token convention, behind the existing owner availability gate.
Following feeds (GET /api/feed?kind=following) use the same post-page cursor and limit rules as public feeds, require bearer authority, and slice only roots by followed authors and the viewer before applying eligibility and viewer blocks. Public-feed tokens can continue following reads.
Public profile fields
Limits count Unicode code points after trimming. Display name is required, 1–100 code points, and cannot contain control characters. Bio is optional, 0–500 code points; newlines are allowed, other control characters are refused. Website is optional, 0–500 code points, and must be an HTTP or HTTPS URL without userinfo and with a hostname containing a dot. An omitted field is unchanged;null clears bio or website.