Skip to main content
POST
/
oauth2
/
applications
Create OAuth2 application
curl --request POST \
  --url https://api.fluxer.app/v1/oauth2/applications \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "bot_public": true,
  "bot_require_code_grant": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "bot_public": true,
  "bot_require_code_grant": true,
  "client_secret": "<string>",
  "bot": {
    "id": "<string>",
    "username": "<string>",
    "discriminator": "<string>",
    "bio": "<string>",
    "flags": 1073741823,
    "avatar": "<string>",
    "banner": "<string>",
    "token": "<string>",
    "mfa_enabled": true,
    "authenticator_types": [
      0
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The name of the application

redirect_uris
string[] | null

The redirect URIs for OAuth2 flows

Maximum array length: 10
bot_public
boolean

Whether the bot can be invited by anyone

bot_require_code_grant
boolean

Whether the bot requires OAuth2 code grant

Response

Success

id
string
required

The unique identifier of the application

name
string
required

The name of the application

redirect_uris
string[]
required

The registered redirect URIs for OAuth2

Maximum array length: 20
bot_public
boolean
required

Whether the bot can be invited by anyone

bot_require_code_grant
boolean
required

Whether the bot requires OAuth2 code grant

client_secret
string

The client secret for OAuth2 authentication

bot
object

Detailed bot user metadata