Skip to main content
POST
/
oauth2
/
authorize
/
consent
Grant OAuth2 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>"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Body

application/json
client_id
string<snowflake>
required
scope
string
required

The space-separated list of requested scopes

response_type
string

The OAuth2 response type

redirect_uri
string

The URI to redirect to after authorization

state
string

A random string for CSRF protection

permissions
string

The bot permissions to request

guild_id
string<snowflake>

Response

Success

redirect_to
string
required

The URL to redirect the user to after consent