Common
Ping
GET
/
Login
POST
/login
Request Body
Name | Type | Description |
---|---|---|
email* | String | |
password* | String |
SMS Login Code
GET
/login/sms
SMS Login
POST
/login/sms
Request Body
Name | Type | Description |
---|---|---|
phone* | String | |
code* | String | sms login code |
TOTP Login
POST
/login/totp
Request Body
Name | Type | Description |
---|---|---|
email* | String | |
code* | String | Totp Code |
Reset Password Code
GET
/forget_code
Query Parameters
Name | Type | Description |
---|---|---|
email* | String |
Reset Password
POST
/forget_reset
Request Body
Name | Type | Description |
---|---|---|
email* | String | |
code* | String | Reset password code |
password* | String | Reset password |
Verify
GET
/verify
Token Refresh Code
GET
/refresh_code
Refresh Token
GET
/refresh_token
Request Body
Name | Type | Description |
---|---|---|
code* | String | Token refresh code |
Logout
POST
/logout
User Info
GET
/user
Set User
PATCH
/user
Request Body
Name | Type | Description |
---|---|---|
key* | String |
|
String | RequiredIf: key=Email | |
name | String | RequiredIf: key=Name |
avatar | String | RequiredIf: key=Avatar |
Set Password
POST
/user/password
Request Body
Name | Type | Description |
---|---|---|
old* | String | Old password |
password* | String | New password |
User SMS Code
GET
/user/phone_code
Bind User's Phone
POST
/user/phone
Request Body
Name | Type | Description |
---|---|---|
phone* | String | Phone number |
code* | String | SMS code |
Generate TOTP URL
GET
/user/totp
Bind TOTP
POST
/user/totp
Request Body
Name | Type | Description |
---|---|---|
totp* | String | TOTP URL |
tss* | String[] | Two consecutive code |
Unset User
DELETE
/user/:key
Path Parameters
Name | Type | Description |
---|---|---|
key* | String |
|
Load Option
GET
/options
Query Parameters
Name | Type | Description |
---|---|---|
type* | String | Type, include: upload、collaboration、generate-secret |
Last updated