Generate challenge and options to register a new WebAuthn credential. Requires sudo mode verification.
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/mfa/webauthn/credentials/registration-options \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"challenge": "<string>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
8 - 256MFA method to use for verification
totp, sms, webauthn MFA verification code from authenticator app or SMS
WebAuthn authentication response
WebAuthn challenge string
Success
The WebAuthn challenge
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/mfa/webauthn/credentials/registration-options \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"challenge": "<string>"
}