/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_INVITESorFEATURES_USER_REGISTRATIONis set tofalse, therefore you cannot access this resource.
Last updated: 11/7/2023
Edit this page on GitHub