OAuth2

Reset client secret

Rotates the client secret for an OAuth2 application. Requires sudo mode authentication. Essential security operation for protecting client credentials. Existing access tokens remain valid.

post/oauth2/applications/{id}/client-secret/reset

Path parameters

idstring required

The id

Request body

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_responseobject

WebAuthn authentication response

webauthn_challengestring

WebAuthn challenge string

Response

Success

idstring required

The unique identifier of the application

namestring required

The name of the application

redirect_urisstring[] required

The registered redirect URIs for OAuth2

bot_publicboolean required

Whether the bot can be invited by anyone

bot_require_code_grantboolean required

Whether the bot requires OAuth2 code grant

client_secretstring

The client secret for OAuth2 authentication

Changes

No recorded changes to this endpoint across all 1 revision of this API.