Users

Change password

Changed on

Changes the password on instances where people sign in with a username. Requires sudo mode verification. Ends every other session, deletes the recovery kit and returns a token for a new session that replaces the current one. Fails with USERNAME_SIGN_IN_ONLY on email instances.

post/users/@me/password

Request

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

Request body

new_passwordstring required
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

tokenstring required

Authentication token for the newly created session

auth_session_id_hashstring required

Base64url-encoded hash of the newly created authentication session

Changes