OAuth2

Grant OAuth2 consent

User grants permission for an OAuth2 application to access authorized scopes. Used in authorization code flow to complete the authorization process after user review.

post/oauth2/authorize/consent

Request body

response_typestring

The OAuth2 response type

client_idstring snowflake required
redirect_uristring

The URI to redirect to after authorization

scopestring required

The space-separated list of requested scopes

statestring

A random string for CSRF protection

permissionsstring

The bot permissions to request

guild_idstring snowflake
channel_idstring snowflake
code_challengestring

The PKCE code challenge

code_challenge_method'S256' | 'plain'

The PKCE code challenge method

Response

Success

redirect_tostring required

The URL to redirect the user to after consent

Changes

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