Discord
Discord OAuth callback
Handles the OAuth2 callback from Discord. Verifies the guild authorization, saves the installation, and returns HTML on success or failure.
Query Parameters
state?string
CSRF state parameter
code?string
Authorization code from Discord
guild_id?string
Authorized guild ID
error?string
Error code from Discord on denial
error_description?string
Human-readable error from Discord
Response Body
text/html
application/json
text/html
application/json
curl -X GET "http://localhost:3001/api/v1/discord/callback""string"{
"error": "string",
"message": "string",
"requestId": "string"
}"string"{
"error": "string",
"message": "string",
"requestId": "string"
}Edit on GitHub
Last updated on