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。登录
使用 Token
所有需要认证的接口都需要在请求头中携带:常见认证错误
| HTTP | 提示 | 说明 |
|---|---|---|
| 401 | 未提供认证令牌 | 未携带 Authorization 请求头。 |
| 401 | 无效的认证令牌 | Token 无效或已过期。 |
| 401 | 用户不存在 | Token 对应用户已不存在。 |
| 403 | 账号未激活,请先前往邮箱点击激活链接 | 账号存在但未激活。 |