Users

Create recovery kit

Changed on

Create a recovery kit for the current account and return its recovery key. The key is shown only once and any previous kit stops working. Only available on instances where people sign in with a username. Requires sudo mode verification.

post/users/@me/recovery-kit

Request

  • Base URL: https://web.fluxer.app/api/v1
  • URL: https://web.fluxer.app/api/v1/users/@me/recovery-kit
  • Auth: API key in header Authorization

Request body

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_challengestring

WebAuthn challenge string

Response

Success

recovery_keystring required

New recovery key as 8 groups of 4 joined by dashes, shown only once. Any previous kit stops working

created_atstring date-time required

ISO 8601 timestamp when the recovery kit was created

Changes