---
# System prepended metadata

title: '`GET` /api/currentUser'
tags: [API-doc]

---

# `GET` /api/currentUser  

## API 功能  
取得當前登入者資料。  


## 前端傳入資料  
### parameters  
None  

### req.body  
None

## 後端回傳資料  
### 驗證成功  
```json
// status code: 200
{
    "id": 14,
    "name": "user1",
    "account": "user1",
    "avatar": "<url>",
    "email": "user1@example.com",
    "role": "user"
}
```

## 相關連結  
* [回首頁](https://hackmd.io/@twitter-2022/index)  
* [API 總表](/Gl56cI2LQ5ObBpmQnbnphw)

###### tags: `API-doc`