Common
Ping
GET
/
Login
POST
/login
Request Body
email*
String
password*
String
SMS Login Code
GET
/login/sms
SMS Login
POST
/login/sms
Request Body
phone*
String
code*
String
sms login code
TOTP Login
POST
/login/totp
Request Body
email*
String
code*
String
Totp Code
Reset Password Code
GET
/forget_code
Query Parameters
email*
String
Reset Password
POST
/forget_reset
Request Body
email*
String
code*
String
Reset password code
password*
String
Reset password
Verify
GET
/verify
Token Refresh Code
GET
/refresh_code
- Body
- **code** `string`
Refresh Token
GET
/refresh_token
Request Body
code*
String
Token refresh code
Logout
POST
/logout
User Info
GET
/user
- Body
- **_id** `string` User ID
- **email** `string` User email
- **name** `string` User name
- **avatar** `string` User avatar
- **phone** `string` Phone settings status
- **sessions** `number` Total number of sessions
- **history** `object` Recent login history
- **totp** `string` TOTP settings status
- **lark** `object` Lark info
- **status** `bool` User status
- **create_time** `date`
- **update_time** `date`
Set User
PATCH
/user
Request Body
key*
String
Email|Name|Avatar
Specify updated field
String
RequiredIf: key=Email
name
String
RequiredIf: key=Name
avatar
String
RequiredIf: key=Avatar
Set Password
POST
/user/password
Request Body
old*
String
Old password
password*
String
New password
User SMS Code
GET
/user/phone_code
Bind User's Phone
POST
/user/phone
Request Body
phone*
String
Phone number
code*
String
SMS code
Generate TOTP URL
GET
/user/totp
- Body
- **totp** `string` TOTP URL
Bind TOTP
POST
/user/totp
Request Body
totp*
String
TOTP URL
tss*
String[]
Two consecutive code
Unset User
DELETE
/user/:key
Path Parameters
key*
String
phone|totp|lark
Specify updated field
Load Option
GET
/options
Query Parameters
type*
String
Type, include: upload、collaboration、generate-secret
Last updated
Was this helpful?