2.3 KiB
2.3 KiB
接口列表
公共
GET /healthz:健康检查
账号认证(/api/auth)
POST /api/auth/register:注册POST /api/auth/register/send:发送邮箱验证码POST /api/auth/register/verify:验证邮箱验证码POST /api/auth/login:登录POST /api/auth/token/exchange:一次性 OAuthexchange_code换取真实会话 tokenPOST /api/auth/token/refresh:刷新 access token
需要会话(或受保护)
GET /api/auth/session:获取当前会话用户DELETE /api/auth/session:注销GET /api/auth/xworkmate/profile:获取 XWorkmate 非敏感 profile / locator / tokenConfiguredPUT /api/auth/xworkmate/profile:更新 XWorkmate 非敏感 profile / locatorGET /api/auth/xworkmate/secrets:获取 XWorkmate Vault-backed secret 状态(不返回原文)PUT /api/auth/xworkmate/secrets/:target:写入指定 XWorkmate secret 到 Vault(不返回原文)DELETE /api/auth/xworkmate/secrets/:target:删除指定 XWorkmate secret,同时保留 locator 元数据POST /api/auth/mfa/totp/provision:申请 MFA TOTP secretPOST /api/auth/mfa/totp/verify:验证 MFA TOTPPOST /api/auth/mfa/disable:关闭 MFAGET /api/auth/mfa/status:查询 MFA 状态POST /api/auth/password/reset:发起密码重置(需要登录)POST /api/auth/password/reset/confirm:确认密码重置GET /api/auth/subscriptions:订阅列表POST /api/auth/subscriptions:订阅 upsertPOST /api/auth/subscriptions/cancel:取消订阅POST /api/auth/config/sync:配置同步(当前返回未实现)GET /api/auth/admin/settings:获取权限矩阵POST /api/auth/admin/settings:更新权限矩阵GET /api/auth/admin/users/metrics:用户指标GET /api/auth/admin/agents/status:Agent 状态
说明:
/api/auth/admin/*需要管理员或运维角色。
Agent API(/api/agent-server/v1)
-
GET /api/agent-server/v1/nodes:获取已注册节点列表(用户会话鉴权) -
GET /api/agent-server/v1/users:获取 Xray 客户端列表 -
POST /api/agent-server/v1/status:上报 Agent 状态 -
GET /nodes使用用户会话(xc_session/ Bearer session token) -
GET /users与POST /status使用 Agent Token:Authorization: Bearer <agent-token>