/api/auth/create
POST Create a user (invite/regisration)
Body (JSON)
| Field Name | Type | Description | 
|---|---|---|
code | string | The invite code | 
username | string | The username | 
password | string | The password | 
200 Ok (JSON)
| Field Name | Type | Description | 
|---|---|---|
success | boolean | true if the user was created, false otherwise | 
400 Bad Request (JSON)
invites are disabled-FEATURES_INVITESis set tofalse, therefore you cannot access this resource.user registration is disabled-FEATURES_USER_REGISTRATIONis set tofalse, therefore you cannot access this resource.invalid invite code- The invite code provided is invalid (doesn't exist probably or was wrong).username already exists- The username provided already exists.
POST Create a user (admin)
Info
Requires authentication
Info
Requires administrator privileges
Body (JSON)
| Field Name | Type | Description | 
|---|---|---|
username | string | The username of the user | 
password | string | The password of the user | 
administrator | boolean | Whether the user is an administrator | 
200 Ok (JSON)
Returns a user object
400 Bad Request (JSON)
no username- No username was providedno password- No password was provideduser exists- The username already exists
/api/auth/oauth/[provider]
Whenever there are errors, the response will redir...
/api/auth/image
Get an image
Last updated: 6/16/2023
Edit this page on GitHub