接口
认证
发送从登录获取的会话 Cookie,或携带Authorization: Bearer <api-key>。
响应
string
用户的唯一标识符。
string
账户的用户名。
string | null
若已设置则为邮箱,否则为 null。
string
用户角色,例如
"user" 或 "admin"。boolean
账户当前是否被禁用。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://router.example.com:8080/v1/router/auth/me \
-H "Authorization: Bearer <api-key>"
{
"id": "user-abc123",
"username": "alice",
"email": "[email protected]",
"role": "user",
"disabled": false
}
GET /v1/router/auth/me 返回当前认证用户的资料,包括 id、用户名、邮箱、角色与禁用状态。
curl https://router.example.com:8080/v1/router/auth/me \
-H "Authorization: Bearer <api-key>"
{
"id": "user-abc123",
"username": "alice",
"email": "[email protected]",
"role": "user",
"disabled": false
}
GET /v1/router/auth/me
Authorization: Bearer <api-key>。
"user" 或 "admin"。curl https://router.example.com:8080/v1/router/auth/me \
-H "Authorization: Bearer <api-key>"
{
"id": "user-abc123",
"username": "alice",
"email": "[email protected]",
"role": "user",
"disabled": false
}
Was this page helpful?