Rotates the bot token for an OAuth2 application. Requires sudo mode authentication. Invalidates all previously issued bot tokens. Used for security rotation and compromise mitigation.
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/applications/{id}/bot/reset-token \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"token": "<string>",
"bot": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"bio": "<string>",
"flags": 1073741823,
"avatar": "<string>",
"banner": "<string>",
"token": "<string>",
"mfa_enabled": true,
"authenticator_types": [
0
]
}
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The id
8 - 256MFA method to use for verification
totp, sms, webauthn MFA verification code from authenticator app or SMS
WebAuthn authentication response
WebAuthn challenge string
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/applications/{id}/bot/reset-token \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"token": "<string>",
"bot": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"bio": "<string>",
"flags": 1073741823,
"avatar": "<string>",
"banner": "<string>",
"token": "<string>",
"mfa_enabled": true,
"authenticator_types": [
0
]
}
}