> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取当前咏唱引擎 ROUTER 用户

> GET /v1/router/auth/me 返回当前认证用户的资料，包括 id、用户名、邮箱、角色与禁用状态。

获取当前认证用户的资料。此接口可用于校验你的会话或 API 密钥，并检查你的角色与账户状态。

## 接口

```http theme={null}
GET /v1/router/auth/me
```

## 认证

发送从登录获取的会话 Cookie，或携带 `Authorization: Bearer <api-key>`。

## 响应

<ResponseField name="id" type="string">
  用户的唯一标识符。
</ResponseField>

<ResponseField name="username" type="string">
  账户的用户名。
</ResponseField>

<ResponseField name="email" type="string | null">
  若已设置则为邮箱，否则为 null。
</ResponseField>

<ResponseField name="role" type="string">
  用户角色，例如 `"user"` 或 `"admin"`。
</ResponseField>

<ResponseField name="disabled" type="boolean">
  账户当前是否被禁用。
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://router.example.com:8080/v1/router/auth/me \
    -H "Authorization: Bearer <api-key>"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "user-abc123",
    "username": "alice",
    "email": "alice@example.com",
    "role": "user",
    "disabled": false
  }
  ```
</ResponseExample>
