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 使用 JWT Bearer Token 认证。先使用用户名和密码调用登录接口,之后在需要认证的请求中携带返回的 token。

登录

curl -X POST "https://api.wanyuagent.com/api/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "your_username",
    "password": "your_password"
  }'

使用 Token

所有需要认证的接口都需要在请求头中携带:
Authorization: Bearer <token>
示例:
curl -X GET "https://api.wanyuagent.com/api/open/app/dashboard/info/v2" \
  -H "Authorization: Bearer <token>"

常见认证错误

HTTP提示说明
401未提供认证令牌未携带 Authorization 请求头。
401无效的认证令牌Token 无效或已过期。
401用户不存在Token 对应用户已不存在。
403账号未激活,请先前往邮箱点击激活链接账号存在但未激活。
请把账号、密码和 token 保存在服务端或密钥管理系统中,不要写入前端代码或日志。