AuthDiscord

POST /users/auth/

To create a new account with discord or get the token

application/json

Body Required

  • code string Required

    Discord Code

Responses

  • 202 application/json

    Default Response

    Hide response attributes Show response attributes object
  • 400 application/json

    Bad Request

    Bad Request

  • 503 application/json

    Service Unavailable

    Service Unavailable

POST /users/auth/
curl \
 --request POST 'http://api.example.com/users/auth/' \
 --header "Content-Type: application/json" \
 --data '{"code":"string"}'
Request examples
{
  "code": "string"
}
Response examples (202)
{
  "discordid": "string",
  "token": "string"
}
Response examples (400)
string
Response examples (503)
string