用户管理
curl -X GET "https://loading/api/user/self/groups"Empty
curl -X GET "https://loading/api/user/self"Empty
curl -X DELETE "https://loading/api/user/self"Empty
更新当前用户信息
Request Body
application/json
username?string
display_name?string
password?string
original_password?string
Response Body
curl -X PUT "https://loading/api/user/self" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X GET "https://loading/api/user/models"Empty
curl -X GET "https://loading/api/user/token"Empty
curl -X GET "https://loading/api/user/passkey"Empty
curl -X DELETE "https://loading/api/user/passkey"Empty
curl -X POST "https://loading/api/user/passkey/register/begin"Empty
curl -X POST "https://loading/api/user/passkey/register/finish"Empty
curl -X POST "https://loading/api/user/passkey/verify/begin"Empty
curl -X POST "https://loading/api/user/passkey/verify/finish"Empty
curl -X GET "https://loading/api/user/aff"Empty
curl -X POST "https://loading/api/user/aff_transfer" \ -H "Content-Type: application/json" \ -d '{}'Empty
更新用户设置
Request Body
application/json
notify_type?string
quota_warning_threshold?number
webhook_url?string
notification_email?string
Response Body
curl -X PUT "https://loading/api/user/setting" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X GET "https://loading/api/user/topup"Empty
curl -X GET "https://loading/api/user/"Empty
创建用户
Request Body
application/json
id?integer
username?string
display_name?string
role?integer
status?integer
email?string
group?string
quota?integer
used_quota?integer
request_count?integer
Response Body
curl -X POST "https://loading/api/user/" \ -H "Content-Type: application/json" \ -d '{}'Empty
更新用户
Request Body
application/json
id?integer
username?string
display_name?string
role?integer
status?integer
email?string
group?string
quota?integer
used_quota?integer
request_count?integer
Response Body
curl -X PUT "https://loading/api/user/" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X POST "https://loading/api/user/topup/complete"Empty
curl -X GET "https://loading/api/user/search"Empty
curl -X GET "https://loading/api/user/0"Empty
curl -X DELETE "https://loading/api/user/0"Empty
curl -X DELETE "https://loading/api/user/0/reset_passkey"Empty
curl -X DELETE "https://loading/api/user/0/2fa"Empty
管理用户状态
Request Body
application/json
id?integer
action?string
Value in
"disable" | "enable" | "delete" | "promote" | "demote"Response Body
curl -X POST "https://loading/api/user/manage" \ -H "Content-Type: application/json" \ -d '{}'Empty