Common
Ping
GET /
- Body
- **message** `string`Login
POST /login
Request Body
email*
String
password*
String
- Body
- **message** `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
Refresh Token
GET /refresh_token
Request Body
code*
String
Token refresh code
Logout
POST /logout
User Info
GET /user
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
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?