/api/user/check
POST Check if a user exists
Body (JSON)
Field Name | Type | Description |
---|---|---|
code | string | Invite code |
username | string | The username to check |
200 Ok (JSON)
Field Name | Type | Description |
---|---|---|
success | boolean | true if the user exists, false otherwise |
{"success": true}
400 Bad Request (JSON)
username already exists
- The username provided already exists.no code
- No invite code was provided.no username
- No username was provided.invalid invite code
- The invite code provided is invalid (doesn't exist probably).
401 Forbidden (JSON)
user/invites are disabled
- EitherFEATURES_INVITES
orFEATURES_USER_REGISTRATION
is set tofalse
, therefore you cannot access this resource.
Last updated: 3/3/2024
Edit this page on GitHub