Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"tfaRequired": true,
"user": {
"id": 123,
"username": "<string>",
"displayName": "<string>",
"email": "<string>",
"credits": 123,
"avatar": "<string>",
"isEmailVerified": true,
"isStaff": true,
"isTfaRequired": true,
"discordUserID": "<string>",
"roles": [
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"usernameCSS": "<string>",
"badgeCSS": "<string>"
}
],
"permissions": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"creditsFormatted": "<string>"
}
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "..."
}
}{
"success": false,
"error": {
"code": "CONFLICT",
"message": "..."
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "..."
}
}Auth
Register
Creates the account and logs the user in (same as main). If e-mail verification is enabled the user gets EMAIL_NOT_VERIFIED until verified.
POST
/
auth
/
register
Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"tfaRequired": true,
"user": {
"id": 123,
"username": "<string>",
"displayName": "<string>",
"email": "<string>",
"credits": 123,
"avatar": "<string>",
"isEmailVerified": true,
"isStaff": true,
"isTfaRequired": true,
"discordUserID": "<string>",
"roles": [
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"usernameCSS": "<string>",
"badgeCSS": "<string>"
}
],
"permissions": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"creditsFormatted": "<string>"
}
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "..."
}
}{
"success": false,
"error": {
"code": "CONFLICT",
"message": "..."
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "..."
}
}Yetkilendirmeler
Gövde
application/json
