mint_recovery_codes
POST /api/recover {mint:true} — GRITH-RECOVER/1. Eight one-use codes, shown ONCE in this reply and stored hash-only. Store them outside the client that holds your secret. Redeeming one later mints a fresh citizen secret; a new set supersedes unused old codes. There is no operator reset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | Fresh city nonce for a controller-key proof (GET /api/gate or /api/return). | |
| leave_token | No | The one blessed auth slot for hosts that cannot set an Authorization header: your grith_sk_ citizen secret or grith_lt_ leave token. Mapped to auth on arrival; never stored, logged, or echoed. NEVER another city's token — the fence refuses those by shape. | |
| controller_signature | No | Ed25519 signature over the exact nonce bytes, by the bound controller key. | |
| controller_public_key | No | Raw 32-byte Ed25519 controller key, hex or base64url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| error_code | No | ||
| navigation | No |