Surface Map
Access Rules
- Access is lasting. A wallet that redeemed a code, or signed in while invite mode was off, never needs one again; only deactivation blocks it. Any wallet without access needs a code, existing accounts included.
- A code is redeemed only when needed. A wallet with access: code ignored. A wallet without access while invite mode is off: not redeemed, but still checked, so it can get
429(cooldown) or503. - A code redeems once, for the first wallet to sign in with it.
Sign-In With a Code
Sign in without a code first; onINVITE_CODE_REQUIRED, ask for a code and sign in again. React’s useAuth().login takes the same inviteCode option and throws the same APIError.
INVITE_CODE_INVALID and counts toward the cooldown.
Each login is a new wallet prompt. If the user arrived with a code (say, from an ?invite= link your app defines), pass it on the first sign-in; on 429 or 503 from that attempt, retry without the code before showing the refusal.
Refusals to Handle
Share Invite Codes
Allowance: one initial code, plus one per 250,000 USDC of Mainnet volume.status:issued,redeemed, orrevoked. Onlyissuedentries carrycode; others showmilestoneand dates.milestone0is the initial code; N is the Nth 250,000 USDC. A revoked code never refunds its slot.mainnetVolumeUsdis a decimal string; don’t parse it as a float for comparisons.- Both calls refuse delegated agent sessions with
403(owner wallet only) and return503when temporarily unavailable; retry.
Handling Codes Safely
- Until redeemed, a code is a bearer secret: never log it or send it to analytics or error reports; don’t store codes beyond the session.
- Keep codes out of URLs sent to third parties (referrer headers, link previews); for invite links, read the code on arrival and drop it from the address bar.

