Rotates the client secret for an OAuth2 application. Requires sudo mode authentication. Essential security operation for protecting client credentials. Existing access tokens remain valid.
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/applications/{id}/client-secret/reset \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"redirect_uris": [
"<string>"
],
"bot_public": true,
"bot_require_code_grant": true,
"client_secret": "<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
Success
The unique identifier of the application
The name of the application
The registered redirect URIs for OAuth2
20Whether the bot can be invited by anyone
Whether the bot requires OAuth2 code grant
The client secret for OAuth2 authentication
Detailed bot user metadata
Show child attributes
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/applications/{id}/client-secret/reset \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"redirect_uris": [
"<string>"
],
"bot_public": true,
"bot_require_code_grant": true,
"client_secret": "<string>",
"bot": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"bio": "<string>",
"flags": 1073741823,
"avatar": "<string>",
"banner": "<string>",
"token": "<string>",
"mfa_enabled": true,
"authenticator_types": [
0
]
}
}