D

Discord REST API

REST discovered

Details
URL
https://discord.com/api
Docs
https://docs.discord.com/developers/reference
Authentication
Bot token bearer discovered Get token ↗
Authorization: Bot <credential>

Create or open an application in the Discord Developer Portal, add a bot to the application, and copy the bot token from the Bot settings. The REST API docs say authenticated requests use the Authorization header and Discord's bot flows are configured from your app in the developer portal; bot installation and app management are documented in the Application Resource and OAuth2 docs.

OAuth2 application credentials oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Register an app in the Discord Developer Portal to get a client_id and client_secret, then use Discord OAuth2 as documented in the OAuth2 guide. Discord supports authorization code, implicit, and client credentials grants, with authorization at https://discord.com/oauth2/authorize and token exchange at https://discord.com/api/oauth2/token. Use the grant and scopes appropriate for the API features you call.