How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Discord OAuth2 API

The Discord OAuth2 API enables application developers to build applications that utilize authentication and data from the Discord API. Discord supports the authorization code grant, the implicit grant, client credentials, and specialized flows for bots and webhooks, allowing third-party applications to access Discord user data with proper consent.

Discord OAuth2 API is one of 29 APIs that Discord publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Authentication and Authorization. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

This API exposes 6 operations across 6 paths, and defines 18 schemas. It is described by OpenAPI 3.1.0, at version 10.

Requests are made against a single base URL, https://discord.com/api/v10.

6 operations 6 paths 18 schemas 4 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
10
Server
https://discord.com/api/v10
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Discord OAuth2 API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BotToken). By default, every request must be authenticated.

  • BotToken — Bot token authentication

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 4 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

OAuth2 6

OAuth2 token and authorization operations

GET
/oauth2/authorize
Discord Authorize
authorize 6 params → 302
POST
/oauth2/token
Discord Get access token
getToken body → 2004XX
POST
/oauth2/token/revoke
Discord Revoke access token
revokeToken body → 2004XX
GET
/oauth2/keys
Discord Get OAuth2 keys
getOAuth2Keys → 2004XX
GET
/oauth2/applications/@me
get_my_oauth2_application → 2004XX
GET
/oauth2/@me
get_my_oauth2_authorization → 2004XX

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are PrivateApplicationResponse (27 properties), ApplicationResponse (21 properties), UserResponse (11 properties), AccessTokenResponse (7 properties). Each schema is shown below with its type and property counts.

Int53Type
integer
ApplicationTypes
integer
PartialGuild
object
6 properties
OAuth2Scopes
string
ApplicationResponse
object
21 properties 5 required
TeamMemberResponse
object
3 properties 3 required
UserResponse
object
11 properties 5 required
AccessTokenResponse
object
7 properties 4 required
PrivateApplicationResponse
object
27 properties 7 required
TeamResponse
object
5 properties 4 required
ErrorResponse
object
Errors object returned by the Discord API
TeamMembershipStates
integer
ErrorDetails
SnowflakeType
string
InnerErrors
object
1 property 1 required
ApplicationOAuth2InstallParamsResponse
object
2 properties 2 required
Error
object
A single error, either for an API response or a specific field.
2 properties 2 required
OAuth2GetAuthorizationResponse
object
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

discord-oauth2-api-openapi.yml Raw ↑

Other APIs Discord publishes across the network.

Discord Gateway API
Discord Interactions API
Discord Webhook Events API
Discord Embedded App SDK
Discord Voice API
Discord Social SDK
Discord Application Commands API
Discord Applications API
Discord Audit Log API
Discord Auto Moderation API
Discord Channels API
Discord Emojis API
Where this information came from

This is an independent, third-party profile of Discord OAuth2 API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.