Error Reports (Keon)

How Keon Wallet sends opt-in error reports, and what the server stores

Keon Wallet can send error reports to help us fix problems. This is opt-in: the "Help improve Keon: send error reports" setting is off by default, and nothing is sent while it's off.

Info

Most readers will not call this directly. It's the wallet's plumbing. We document it for transparency, so anyone can check exactly what a report may contain.

What a report never contains

Account addresses, balances, transaction calldata, the origins of connected dApps, recovery phrases, keys, passwords, or the device's IP address. The wallet redacts before it sends, and the server enforces the same rules again:

  • The payload shape is strict. Any field not listed below is rejected with 400, so there is no way to send extra data.
  • The free-text message is scrubbed again on the server:
    • Any run of 32 or more hex digits becomes [redacted], with or without 0x and however long it is. This covers keys, addresses, hashes and signatures. Short values such as 0x0 or an encoded revert reason like 0x4552433230 are kept.
    • Any run of 12 or more BIP-39 words becomes [redacted], whatever separates the words (spaces, commas, dashes, newlines).
    • Control characters become spaces, and the message is cut to 500 characters.
  • contract is never the user's own account. When the failure is in the account itself (__validate__ or __execute__), the wallet leaves contract out, so a report can't tie install_id to an address.
  • The client IP is used only for rate limiting and is never stored.

install_id is a random UUID the wallet generates once per install. It isn't derived from or linked to any account. It's used only to group duplicates and to rate-limit.

Retention

Reports are deleted 90 days after they're received. Reports whose occurred_at is already older than that are accepted but not stored.

Authentication and limits

Send your api-key header. Going over either limit returns 429 with a Retry-After header:

LimitCounts
120 per hour per client IPEvery POST, checked first.
30 per hour per install_idEvery POST that passes validation.

POST /api/keon/error-reports/

A batch of 1 to 20 reports from one install. Wallets queue reports while offline and send them in batches.

Code
json
1{
2 "install_id": "5f1e8f9e-2b8c-4c7e-9a51-7b8f3f2d0c11",
3 "platform": "android",
4 "reports": [
5 {
6 "app_version": "1.9.1",
7 "network": "mainnet",
8 "kind": "insufficient_fee_balance",
9 "code": "INSUFFICIENT_FEE_BALANCE",
10 "contract": "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",
11 "entrypoint": "transfer",
12 "message": "Not enough STRK to pay the network fee",
13 "screen": "send/review",
14 "occurred_at": "2026-11-01T11:40:02.118Z",
15 "count": 2
16 }
17 ]
18}

Batch fields

FieldRequiredRules
install_idyesA UUID.
platformyesextension, android or ios.
reportsyes1 to 20 report objects.

Report fields

FieldRequiredRules
app_versionyesSemver, for example 1.9.1 or 1.9.1-beta.2. This is the version the error happened on, which can differ from the sending version for queued reports.
networkyesmainnet or sepolia.
kindyesLowercase slug up to 48 characters, for example a parseStarknetError kind such as slippage or out_of_gas.
codenoUp to 64 characters of letters, digits and _ . -. A number is accepted and stored as text.
contractnoThe failing contract (public on-chain data). A hex felt, stored padded. Never the user's account.
entrypointnoThe failing entrypoint, as a Cairo identifier.
messagenoThe redacted error message. Scrubbed again and cut to 500 characters.
screenyesThe screen or flow, as a lowercase path such as swap/review.
occurred_atyesISO 8601 time with a timezone. It may be up to 5 minutes in the future (clock skew).
countnoHow many times this identical error happened, from 1 to 1000. Defaults to 1.

Responses

StatusWhen
202Stored. Body: {"accepted": <reports stored>}. Reports past retention don't count.
400An unknown field, a missing or invalid value, or more than 20 reports. Nothing from the batch is stored.
401 / 403Missing or invalid api-key.
429A rate limit was hit. Keep the batch queued and retry after Retry-After.