Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nexalayer.net/llms.txt

Use this file to discover all available pages before exploring further.

账号

ZTProxy 账号对应平台用户。管理员和代理商可以通过 API 创建用户。代理商可以创建并管理自己的下级用户,管理员可以管理更大范围内的账号。

创建用户

curl -X POST "https://api.wanyuagent.com/api/open/app/user/v2" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "sub_user_001",
    "password": "password123",
    "email": "user@example.com",
    "phone": "13812345678",
    "remark": "Created from API",
    "is_agent": false,
    "balance": 0
  }'

请求字段

字段类型必填说明
usernamestring3-50 个字符,必须唯一。
passwordstring6-50 个字符。
emailstring邮箱地址。
phonestring11 位手机号。
remarkstring备注。
is_agentboolean是否创建代理商账号。
balancenumber初始余额。
agent_idnumber管理员可指定所属代理商。
auth_typenumber代理商认证类型:123
auth_namestring需要认证时填写认证名称。
nostring需要认证时填写证件号码。

当前余额

curl -X GET "https://api.wanyuagent.com/api/open/app/user/balance/current" \
  -H "Authorization: Bearer <token>"

仪表盘概览

curl -X GET "https://api.wanyuagent.com/api/open/app/dashboard/info/v2" \
  -H "Authorization: Bearer <token>"
管理员在权限允许时可以传入 target_user_id 查询指定用户的仪表盘概览。