User grants permission for an OAuth2 application to access authorized scopes. Used in authorization code flow to complete the authorization process after user review.
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/authorize/consent \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"scope": "<string>",
"response_type": "<string>",
"redirect_uri": "<string>",
"state": "<string>",
"permissions": "<string>",
"guild_id": "<string>"
}
'{
"redirect_to": "<string>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The space-separated list of requested scopes
The OAuth2 response type
The URI to redirect to after authorization
A random string for CSRF protection
The bot permissions to request
Success
The URL to redirect the user to after consent
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/authorize/consent \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"scope": "<string>",
"response_type": "<string>",
"redirect_uri": "<string>",
"state": "<string>",
"permissions": "<string>",
"guild_id": "<string>"
}
'{
"redirect_to": "<string>"
}