Common
Ping
GET /
- Body
    - **message** `string`Login
POST /login
Request Body
email*
String
password*
String
- Body
    - **message** `string`SMS Login Code
GET /login/sms
- Body
    - **message** `string`SMS Login
POST /login/sms
Request Body
phone*
String
code*
String
sms login code
- Body
    - **message** `string`TOTP Login
POST /login/totp
Request Body
email*
String
code*
String
Totp Code
- Body
    - **message** `string`Reset Password Code
GET /forget_code
Query Parameters
email*
String
- Body
  - **message** `string`Reset Password
POST /forget_reset
Request Body
email*
String
code*
String
Reset password code
password*
String
Reset password
- Body
  - **message** `string`Verify
GET /verify
- Body
    - **message** `string`Token Refresh Code
GET /refresh_code
- Body
    - **code** `string`- Body
    - **message** `string`Refresh Token
GET /refresh_token
Request Body
code*
String
Token refresh code
- Body
    - **message** `string`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`- Body
    - **message** `string`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
- Body
    - **message** `string`Set Password
POST /user/password
Request Body
old*
String
Old password
password*
String
New password
- Body
    - **message** `string`User SMS Code
GET /user/phone_code
- Body
    - **message** `string`Bind User's Phone
POST /user/phone
Request Body
phone*
String
Phone number
code*
String
SMS code
- Body
    - **message** `string`Generate TOTP URL
GET /user/totp
- Body
    - **totp** `string` TOTP URL- Body
    - **message** `string`Bind TOTP
POST /user/totp
Request Body
totp*
String
TOTP URL
tss*
String[]
Two consecutive code
- Body
    - **message** `string`Unset User
DELETE /user/:key
Path Parameters
key*
String
phone|totp|lark Specify updated field
- Body
    - **message** `string`Load Option
GET /options
Query Parameters
type*
String
Type, include: upload、collaboration、generate-secret
- Body
    - **message** `string`Last updated
Was this helpful?
