/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 | trueif the user exists,falseotherwise | 
{"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- Either- FEATURES_INVITESor- FEATURES_USER_REGISTRATIONis set to- false, therefore you cannot access this resource.
Last updated: 12/24/2022
Edit this page on GitHub