---
title: "Limits and retention"
description: "Every default rate limit, and every window and lifetime the package enforces, with its value read from the constant that sets it."
canonical_url: "https://nuxt-backend.dev/docs/reference/backend/limits"
---
# Limits and retention

> Every default rate limit, and every window and lifetime the package enforces, with its value read from the constant that sets it.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [API reference](https://nuxt-backend.dev/docs/reference/api/rate-limit)
- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts)

This page lists every default rate limit, and every window and lifetime the package enforces, so you can tell when a refusal or a deletion is expected. Every number in the generated tables is read from the code that enforces it, so the page and the deployment cannot disagree.

## Rate limits

`DEFAULT_LIMITS` from `nuxt-backend/rate-limit` guards the flows the package drives. Each limit is keyed where it is checked (per address, per billing entity, per caller), and the `*Global` ones are not keyed at all. Pass your own limits to `setupRateLimiter` to change one; a spent limit refuses with [`rate_limited`](https://nuxt-backend.dev/docs/reference/backend/errors#rate_limited), naming it.

<table>
<thead>
  <tr>
    <th>
      Limit
    </th>
    
    <th>
      Kind
    </th>
    
    <th>
      Rate
    </th>
    
    <th>
      Burst
    </th>
    
    <th>
      What it guards
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        emailOtp
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      5 per minute
    </td>
    
    <td>
      5
    </td>
    
    <td>
      Email OTP / verification sends — 5 per minute per address, small burst allowance.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      300 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Email OTP sends across the whole deployment — 300 per hour, a fixed window.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpAttempt
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      10 per hour
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Code checks — 10 per hour per address, burst 10.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailChange
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      5 per hour
    </td>
    
    <td>
      5
    </td>
    
    <td>
      Email changes — 5 per hour per account.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billingSync
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      10 per minute
    </td>
    
    <td>
      5
    </td>
    
    <td>
      Entitlement syncs — 10 per minute per billing entity, small burst for the back-to-back syncs after checkout / top-up.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      30 per minute
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Metered AI calls (<code>
        setupAi
      </code>
      
      's default limit) — 30 per minute per billing entity with a burst of 10.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiBudget
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      10000 per day
    </td>
    
    <td>
      
    </td>
    
    <td>
      Per-entity credit budget for metered AI (<code>
        setupAi({ budget })
      </code>
      
      ) — a fixed window counting <strong>
        credits
      </strong>
      
      , not calls: each spend consumes its cost in tokens, so the window is "credits per period per billing entity".
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      300 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      What the app pays for itself, across the whole deployment — 300 per hour, a fixed window, unkeyed.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      30 per minute
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Administrator actions — 30 per minute per administrator, burst 10.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      30 per hour
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Workspace invitations — 30 per hour per inviter, burst 10.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitationGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      200 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Invitations across the whole deployment — 200 per hour, a fixed window.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceCreate
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      10 per hour
    </td>
    
    <td>
      5
    </td>
    
    <td>
      Workspaces made — 10 per hour per member, burst 5.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accountDelete
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      3 per hour
    </td>
    
    <td>
      3
    </td>
    
    <td>
      An account's own deletion — 3 per hour per account, burst 3.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignIn
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      30 per minute
    </td>
    
    <td>
      30
    </td>
    
    <td>
      Passkey sign-in challenges — 30 per minute per client address, burst 30.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignInGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      3000 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Passkey sign-in challenges across the whole deployment — 3000 per hour, a fixed window, spent after <code>
        DEFAULT_LIMITS.passkeySignIn
      </code>
      
       allowed the request.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        signUpOtpGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      200 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Sign-in codes to addresses with no account yet — 200 per hour across the deployment, a fixed window.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheck
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      10 per minute
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Invite checks (<code>
        checkInvite
      </code>
      
      , behind <code>
        useInvite().check
      </code>
      
       and the <code>
        /invite
      </code>
      
       page) — 10 per minute per signed-in caller, burst 10.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheckGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      1000 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Invite checks across the deployment — 1000 per hour, a fixed window: the ceiling a caller without a session meets, and the backstop behind <code>
        DEFAULT_LIMITS.inviteCheck
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoin
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      5 per hour
    </td>
    
    <td>
      3
    </td>
    
    <td>
      Waitlist joins (<code>
        joinWaitlist
      </code>
      
      , behind <code>
        useWaitlist().join
      </code>
      
       and <code>
        <WaitlistForm>
      </code>
      
      ) — 5 per hour per address, burst 3, so a script cannot use the form to ask for one mailbox's codes in a loop.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoinGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      1000 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Waitlist joins across the deployment — 1000 per hour, a fixed window: the ceiling on the form, behind <code>
        DEFAULT_LIMITS.waitlistJoin
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contact
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      5 per hour
    </td>
    
    <td>
      3
    </td>
    
    <td>
      Contact and feedback messages (<code>
        submitContactMessage
      </code>
      
      , <code>
        <ContactForm>
      </code>
      
      ) — 5 per hour per sender, burst 3.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contactGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      500 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Contact and feedback messages across the deployment — 500 per hour, a fixed window: the ceiling on the form, behind <code>
        DEFAULT_LIMITS.contact
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMail
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      30 per hour
    </td>
    
    <td>
      10
    </td>
    
    <td>
      Inbound mail (<code>
        setupEmail({ inbound })
      </code>
      
      ) — 30 per hour per sender, burst 10, keyed by a hash of the sender's address.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMailGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      3000 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Inbound mail across the deployment — 3000 per hour, a fixed window, behind <code>
        DEFAULT_LIMITS.inboundMail
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        report
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      10 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Content reports (<code>
        reportContent
      </code>
      
      , and each mailbox that sends notices through the <code>
        report
      </code>
      
       page, <code>
        me+1@
      </code>
      
       counted as <code>
        me@
      </code>
      
      ) — 10 per hour per person, so nobody floods the Reports tab.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reportGlobal
      </code>
    </td>
    
    <td>
      fixed window
    </td>
    
    <td>
      500 per hour
    </td>
    
    <td>
      
    </td>
    
    <td>
      Notices through the public <code>
        report
      </code>
      
       page across the deployment — 500 per hour: the ceiling behind <code>
        DEFAULT_LIMITS.report
      </code>
      
      , and with the bot check the only limit on a notice without an address, so no shared bucket can shut the anonymous channel for child sexual abuse material.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        write
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      120 per minute
    </td>
    
    <td>
      60
    </td>
    
    <td>
      Writes of your own signed-in functions — 120 per minute per account, burst 60.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        upload
      </code>
    </td>
    
    <td>
      token bucket
    </td>
    
    <td>
      100 per hour
    </td>
    
    <td>
      20
    </td>
    
    <td>
      Upload URLs — 100 per hour per account, burst 20.
    </td>
  </tr>
</tbody>
</table>

```ts [backend/rateLimiter.ts]
import { MINUTE, setupRateLimiter } from 'nuxt-backend/rate-limit'
import { components } from './_generated/api'

export const rateLimiter = setupRateLimiter(components, {
  emailOtp: { kind: 'token bucket', rate: 3, period: MINUTE, capacity: 3 },
})
```

`emailOtpGlobal`, `aiGlobal` and `passkeySignInGlobal` apply their updates asynchronously, so a burst of callers does not queue on one counter. Calls that read the window before the queue caught up pass, so a burst can go past the ceiling, and the overshoot is taken from the next windows. A limit you pass in their place replaces the whole configuration, `applyUpdates` included.

[Rate limits](https://nuxt-backend.dev/docs/ship/security/rate-limits) shows how to tune them for a launch.

The job queue has a budget of its own, outside `DEFAULT_LIMITS`: a tier of `defineJobQueue` may give each owner a number of credits of jobs per window, a `period` you choose and the same for every tier, aligned to UTC. A job that costs more than the whole budget of its tier is refused with `feature_required`, naming a plan whose tier would take it, or `invalid_input` (`reason: 'over_budget'`) when no plan's would. A job that fits the budget but not what is left of this window is refused with `rate_limited` and `limit: 'jobBudget'`, with `retryAfter` and the plans whose tier would fit it now. The credits a queued job costs are held while it waits ([Windows and lifetimes](#windows-and-lifetimes)).

## Windows and lifetimes

The package's own tables are pruned by its maintenance pass; the rows of your own tables keep as long as the retention you declare with `defineRetention` ([Delete old data on a schedule](https://nuxt-backend.dev/docs/build/data/retention)).

<table>
<thead>
  <tr>
    <th>
      What
    </th>
    
    <th>
      Value
    </th>
    
    <th>
      Constant
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Webhook body
    </td>
    
    <td>
      1 MiB
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        <code>
          WEBHOOK_BODY_LIMIT
        </code>
      </a>
    </td>
    
    <td>
      Payloads are KB-scale; bound memory before any verification runs.
    </td>
  </tr>
  
  <tr>
    <td>
      Webhook delivery log
    </td>
    
    <td>
      200 verified deliveries
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/webhooks.ts" rel="nofollow">
        <code>
          RING_CAP
        </code>
      </a>
    </td>
    
    <td>
      Verified deliveries the ring keeps.
    </td>
  </tr>
  
  <tr>
    <td>
      Webhook log trim
    </td>
    
    <td>
      1 hour
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/webhooks.ts" rel="nofollow">
        <code>
          TRIM_INTERVAL_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a trim waits after the delivery that scheduled it: at most one runs per interval.
    </td>
  </tr>
  
  <tr>
    <td>
      Dev inbox window
    </td>
    
    <td>
      1 hour
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/sandbox-inbox.ts" rel="nofollow">
        <code>
          SANDBOX_INBOX_WINDOW_MS
        </code>
      </a>
    </td>
    
    <td>
      How far back the inbox reads: long enough to read a code.
    </td>
  </tr>
  
  <tr>
    <td>
      Dev inbox read
    </td>
    
    <td>
      10 messages
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/sandbox-inbox.ts" rel="nofollow">
        <code>
          SANDBOX_INBOX_LIMIT
        </code>
      </a>
    </td>
    
    <td>
      The most messages the inbox returns for one address, newest first.
    </td>
  </tr>
  
  <tr>
    <td>
      Metered stream reservation
    </td>
    
    <td>
      5 minutes
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/ai/context.ts" rel="nofollow">
        <code>
          DEFAULT_STREAM_TIMEOUT_MS
        </code>
      </a>
    </td>
    
    <td>
      How long an abandoned stream may hold its reservation before the scheduled auto-release hands the credits back.
    </td>
  </tr>
  
  <tr>
    <td>
      Credit reservation
    </td>
    
    <td>
      10 minutes
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/billing.ts" rel="nofollow">
        <code>
          PENDING_SPEND_TTL_MS
        </code>
      </a>
    </td>
    
    <td>
      How long an unsettled spend reservation stays effective.
    </td>
  </tr>
  
  <tr>
    <td>
      Queued job credit hold
    </td>
    
    <td>
      until the job starts, 7 days at most
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/ai/jobs.ts" rel="nofollow">
        <code>
          HOLD_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a queued job's credits are held: a week, the longest a reservation may last.
    </td>
  </tr>
  
  <tr>
    <td>
      Cached benefit metadata
    </td>
    
    <td>
      15 minutes
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/entitlements.ts" rel="nofollow">
        <code>
          BENEFIT_METADATA_TTL_MS
        </code>
      </a>
    </td>
    
    <td>
      The longest a cached benefit-metadata snapshot serves an entitlement sync before the sync re-reads it live.
    </td>
  </tr>
  
  <tr>
    <td>
      Refused discount codes
    </td>
    
    <td>
      10 per hour, per billing entity
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/checkout.ts" rel="nofollow">
        <code>
          DISCOUNT_CODE_REFUSALS
        </code>
      </a>
    </td>
    
    <td>
      Refused discount codes a billing entity may try per window, whether or not the app configured a rate limiter: a checkout would otherwise answer "valid or not" for any code anyone types, one after another.
    </td>
  </tr>
  
  <tr>
    <td>
      Trial hold
    </td>
    
    <td>
      1 hour
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/customers.ts" rel="nofollow">
        <code>
          TRIAL_HOLD_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a checkout that may start the owner's trial holds it: a provider checkout session expires within it, so a hold this old was abandoned.
    </td>
  </tr>
  
  <tr>
    <td>
      Longest trial
    </td>
    
    <td>
      30 days
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/purchase.ts" rel="nofollow">
        <code>
          MAX_TRIAL_DAYS
        </code>
      </a>
    </td>
    
    <td>
      The longest trial the server may grant at checkout, in days.
    </td>
  </tr>
  
  <tr>
    <td>
      Gifts per purchaser
    </td>
    
    <td>
      10 in 30 days
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/gifts.ts" rel="nofollow">
        <code>
          GIFT_LIMIT
        </code>
      </a>
    </td>
    
    <td>
      How many gifts one purchaser may buy in a window, unless <code>
        setupBilling({ giftLimit })
      </code>
      
       says otherwise.
    </td>
  </tr>
  
  <tr>
    <td>
      Open gift checkout
    </td>
    
    <td>
      1 hour
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing/gifts.ts" rel="nofollow">
        <code>
          OPEN_CHECKOUT_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a purchaser's open gift checkout counts against their cap: past it, the checkout has expired at the provider.
    </td>
  </tr>
  
  <tr>
    <td>
      Unpaid gift
    </td>
    
    <td>
      1 day
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/gifts.ts" rel="nofollow">
        <code>
          PENDING_TTL_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a gift stays <code>
        pending
      </code>
      
       before it is dropped: a provider checkout session expires well within it, so a pending gift this old was abandoned.
    </td>
  </tr>
  
  <tr>
    <td>
      Maintenance pass
    </td>
    
    <td>
      every hour
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          MAINTENANCE_INTERVAL_MS
        </code>
      </a>
    </td>
    
    <td>
      How often the cron starts a pass.
    </td>
  </tr>
  
  <tr>
    <td>
      Maintenance batch
    </td>
    
    <td>
      200 rows per transaction
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          MAINTENANCE_BATCH
        </code>
      </a>
    </td>
    
    <td>
      Rows one maintenance transaction deletes at most, before it hands the rest to a fresh one.
    </td>
  </tr>
  
  <tr>
    <td>
      Expired session
    </td>
    
    <td>
      1 day after expiry
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          EXPIRED_SESSION_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An expired session is deleted this long after it expired.
    </td>
  </tr>
  
  <tr>
    <td>
      Expired code or verification
    </td>
    
    <td>
      1 hour after expiry
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          EXPIRED_VERIFICATION_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An expired verification (a sign-in code, an email change) is deleted this long after it expired; until then a late attempt still reads as expired rather than unknown.
    </td>
  </tr>
  
  <tr>
    <td>
      Idle auth rate-limit counter
    </td>
    
    <td>
      1 day after the last request
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          IDLE_RATE_LIMIT_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A rate-limit counter (Better Auth's own limiter, when an app turns it on) is deleted after this long without a request.
    </td>
  </tr>
  
  <tr>
    <td>
      Finished AI request
    </td>
    
    <td>
      1 day after it was created, once settled or released
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          FINISHED_AI_REQUEST_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A metered AI request's plumbing, once settled or released, is deleted this long after it was created.
    </td>
  </tr>
  
  <tr>
    <td>
      AI request stuck in reserved
    </td>
    
    <td>
      7 days after it was created
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          STUCK_AI_REQUEST_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A request still <code>
        reserved
      </code>
      
       (or <code>
        streaming
      </code>
      
      ) this long after it was created is deleted: its stream's release never ran, and the credit reservation it stood for has long expired on the billing side (it holds no balance past its TTL).
    </td>
  </tr>
  
  <tr>
    <td>
      Email record
    </td>
    
    <td>
      7 days after its final status, unless <code>
        setupEmail({ retention })
      </code>
      
       says otherwise
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          EMAIL_RECORD_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A sent email's record (status, recipients, body) is deleted this long after it was finalized: delivered, bounced, failed or cancelled.
    </td>
  </tr>
  
  <tr>
    <td>
      Email record with no final status
    </td>
    
    <td>
      30 days after it was created, unless <code>
        setupEmail({ retention })
      </code>
      
       says otherwise
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          ABANDONED_EMAIL_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An email record that never reached a final status (no delivery event arrived) is deleted this long after it was created.
    </td>
  </tr>
  
  <tr>
    <td>
      Secret email (sign-in code)
    </td>
    
    <td>
      no record; its message until the provider answers, 15 minutes at most
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/email.ts" rel="nofollow">
        <code>
          SECRET_OUTBOX_TTL_MS
        </code>
      </a>
    </td>
    
    <td>
      The longest a secret email waits in the outbox: its code has expired by then, so a row still there is deleted, unsent.
    </td>
  </tr>
  
  <tr>
    <td>
      Expired invitation
    </td>
    
    <td>
      30 days after expiry
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          EXPIRED_INVITATION_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An invitation nobody answered is kept this long after it expired, so it can still show as expired.
    </td>
  </tr>
  
  <tr>
    <td>
      Ended member ticket
    </td>
    
    <td>
      30 days after it ended
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/access.ts" rel="nofollow">
        <code>
          MEMBER_TICKET_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a member ticket stays after it ended, so a friend opening an old link reads <code>
        expired
      </code>
      
      : then the maintenance sweep removes it.
    </td>
  </tr>
  
  <tr>
    <td>
      Deletion grace period
    </td>
    
    <td>
      30 days, unless <code>
        setupAccount({ graceMs })
      </code>
      
       says otherwise
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/account.ts" rel="nofollow">
        <code>
          DEFAULT_GRACE_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a deletion waits before it runs, unless <code>
        graceMs
      </code>
      
       says otherwise: 30 days.
    </td>
  </tr>
  
  <tr>
    <td>
      Audit event
    </td>
    
    <td>
      365 days after it was recorded
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          AUDIT_EVENT_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An event of the audit trail is deleted this long after it was recorded: a year of activity for the account it is about, its workspace and the app's administrators.
    </td>
  </tr>
  
  <tr>
    <td>
      Account export link
    </td>
    
    <td>
      1 hour, then its file is deleted
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/account.ts" rel="nofollow">
        <code>
          ACCOUNT_EXPORT_LINK_MS
        </code>
      </a>
    </td>
    
    <td>
      How long an export's link works, after which its file is deleted.
    </td>
  </tr>
  
  <tr>
    <td>
      Account exports
    </td>
    
    <td>
      3 per account in a day
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/account.ts" rel="nofollow">
        <code>
          ACCOUNT_EXPORTS_PER_DAY
        </code>
      </a>
    </td>
    
    <td>
      How many exports an account makes in a day.
    </td>
  </tr>
  
  <tr>
    <td>
      Account export record
    </td>
    
    <td>
      1 day after it was made
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          ACCOUNT_EXPORT_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An export's record is deleted a day after it was made, its file with it if its expiry never ran; the export limit counts it until then.
    </td>
  </tr>
  
  <tr>
    <td>
      Erasure retries
    </td>
    
    <td>
      5 tries per participant, each wait twice the last, from 10 seconds
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/account.ts" rel="nofollow">
        <code>
          ERASURE_ATTEMPTS
        </code>
      </a>
    </td>
    
    <td>
      How many times a participant runs in a row before the erasure stops at it.
    </td>
  </tr>
  
  <tr>
    <td>
      Erasure that stopped at a failing participant
    </td>
    
    <td>
      30 days after it stopped
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          FAILED_ERASURE_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      An erasure that stopped at a failing participant is kept this long for an operator to run again, then deleted with the address it holds.
    </td>
  </tr>
  
  <tr>
    <td>
      Contact message and inbound mail
    </td>
    
    <td>
      90 days after it was sent or received
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/inbound-rules.ts" rel="nofollow">
        <code>
          INBOUND_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a contact message and an inbound message are kept: 90 days.
    </td>
  </tr>
  
  <tr>
    <td>
      Reply address
    </td>
    
    <td>
      365 days after the last email it went out in
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/inbound-rules.ts" rel="nofollow">
        <code>
          REPLY_ADDRESS_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a reply address is kept after the last email it went out in: a year, long enough for a reply to a mail that waits in an inbox.
    </td>
  </tr>
  
  <tr>
    <td>
      Contact message
    </td>
    
    <td>
      10 to 2000 characters
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/inbound-rules.ts" rel="nofollow">
        <code>
          CONTACT_MESSAGE_MAX
        </code>
      </a>
    </td>
    
    <td>
      The longest message the contact form takes, in characters.
    </td>
  </tr>
  
  <tr>
    <td>
      A person's AI costs for a day
    </td>
    
    <td>
      90 days after the day
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/costs.ts" rel="nofollow">
        <code>
          AI_COST_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      How long a day's costs are kept: the Costs tab reads at most this far back.
    </td>
  </tr>
  
  <tr>
    <td>
      Record of an alert sent
    </td>
    
    <td>
      62 days after it was sent
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/alerts.ts" rel="nofollow">
        <code>
          ALERT_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      How long an alert's record is kept: past the longest period it guards, a month.
    </td>
  </tr>
  
  <tr>
    <td>
      Billing entity deletion mark
    </td>
    
    <td>
      30 days after the erasure that set it
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          BILLING_DELETION_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A billing entity's deletion mark is kept this long after the erasure that set it.
    </td>
  </tr>
  
  <tr>
    <td>
      Closed report, notice, decision and appeal
    </td>
    
    <td>
      548 days after it was closed or made, once no appeal is open
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/components/backend/maintenance.ts" rel="nofollow">
        <code>
          REPORT_RETENTION_MS
        </code>
      </a>
    </td>
    
    <td>
      A closed report or notice, and a decision with its appeal, are deleted this long after they were closed or made: the 183 days a decision may be appealed, then a year more.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag key
    </td>
    
    <td>
      64 characters
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/flags.ts" rel="nofollow">
        <code>
          FLAG_KEY_MAX
        </code>
      </a>
    </td>
    
    <td>
      The longest flag key.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag target list
    </td>
    
    <td>
      100 account ids, workspace ids or plan keys per list
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/flags.ts" rel="nofollow">
        <code>
          FLAG_TARGETS_MAX
        </code>
      </a>
    </td>
    
    <td>
      The most ids (or plan keys) one target list of an override names.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag target
    </td>
    
    <td>
      128 characters per id or plan key
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/flags.ts" rel="nofollow">
        <code>
          FLAG_TARGET_MAX
        </code>
      </a>
    </td>
    
    <td>
      The longest id or plan key a target list takes.
    </td>
  </tr>
  
  <tr>
    <td>
      Maintenance banner message
    </td>
    
    <td>
      280 characters
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/flags.ts" rel="nofollow">
        <code>
          MAINTENANCE_MESSAGE_MAX
        </code>
      </a>
    </td>
    
    <td>
      The longest maintenance message, in characters.
    </td>
  </tr>
  
  <tr>
    <td>
      Stored flag overrides
    </td>
    
    <td>
      500 flags at once; another is refused until one is removed
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/flags.ts" rel="nofollow">
        <code>
          FLAG_ROWS_MAX
        </code>
      </a>
    </td>
    
    <td>
      The most flags that hold an override at once: a write that would store one more is refused, so every evaluation and every erasure reads them all.
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
