---
title: "Discord OAuth callback"
method: POST
path: "/discord/callback"
tags: ["Discord"]
---

# Discord OAuth callback

`POST /discord/callback`

Exchange Discord authorization code for tokens and link the account

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Default Response

- object
  - `discordId` string, required
  - `username` string, required

---

[API](https://skmtc.dev/gamebeast/apis/gamebeast-api.md) · [All operations](https://skmtc.dev/gamebeast/apis/gamebeast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gamebeast/gamebeast-api/revisions/e9940594b0cc/schema)
