接口
POST/v1/auth/login
认证:无
请求体
string
required
用户注册的用户名。
string
required
用户的密码。
响应
string
本次会话的 JWT 令牌。
string
令牌过期的 ISO 8601 时间戳。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用用户名与密码认证 PIN 用户,获取 JWT 令牌及过期时间戳。无需 API 密钥。
/v1/auth/login
认证:无
curl -X POST http://localhost:8001/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"alice","password":"secret123"}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2025-02-10T14:30:00Z"
}
Was this page helpful?