OAuth2

Create OAuth2 application

Creates a new bot-backed OAuth2 application (client). Requires CAPTCHA verification. Returns client credentials including ID and secret. Application can be used for authorization flows and API access.

post/oauth2/applications

Request body

namestring required

The name of the application

redirect_urisstring[] nullable

The redirect URIs for OAuth2 flows

bot_publicboolean

Whether the bot can be invited by anyone

bot_require_code_grantboolean

Whether the bot requires OAuth2 code grant

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.