Enable recovery or replace the saved code
POST/v2/profile/:slug/recovery-code
Requires the current owner edit token. Returns a new 256-bit secret; only its hash is stored. Save it privately outside the original browser. Replaces any previous code and invalidates pending recovery retries, without changing the edit token. There is no read-back endpoint. All responses use Cache-Control no-store. Concurrency is capped at five requests per server instance for this endpoint.
Request
Responses
- 201
- 401
- 404
- 429
- 500
Save the new recovery code securely
Missing X-Edit-Token (MISSING_TOKEN)
Profile not found or edit token invalid (NOT_FOUND)
Concurrency limit reached
Storage failure (INTERNAL)