接口
GET/v1/auth/me
认证:Bearer API 密钥
响应
string
唯一的用户标识符。
string
注册的用户名。
string
用户的邮箱地址。
string
用户角色。取值之一:
admin、user。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取当前 PIN 用户的资料,包括 id、用户名、邮箱与角色。需要有效的 Bearer API 密钥。
/v1/auth/me
认证:Bearer API 密钥
admin、user。curl -H "Authorization: Bearer $ARIA_PIN_KEY" \
http://localhost:8001/v1/auth/me
{
"id": "usr_2vPqN9xL5wR8",
"username": "alice",
"email": "[email protected]",
"role": "admin"
}
Was this page helpful?