OAuth2

Reset bot token

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.

post/oauth2/applications/{id}/bot/reset-token

Path parameters

string snowflake required
OR
integer required

The ID of the application

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

tokenstring required

The new bot token

Changes