Skip to main content

register

POST /auth/register/

Description

This endpoint is used to define a username for a user, using the 6 digit pin to identify the user. The 6 digit pin is generated when authenticating with discord here.

The 6 digit pin is only valid for 10 minutes after being generated.

Body

The body of the request should be JSON, and should contain the following:

VariableDescription
usernameThe username to set for the user
codeThe 6 digit pin generated when authenticating with discord

Example

{
"username": "Users_Username",
"code": "669496"
}

Response

{
"username": "Users_Username",
"authToken": "Users_Auth_Token",
"premium": 0,
}