# ユーザー一覧

`GET /api/user`

URL: https://repsona.com/ja/api/get-user

スペース内のユーザーの公開してよい情報を返します。メンバーは、共通のプロジェクトに参加しているユーザーだけが見えます。

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/user" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Users in the current space
- 401: Authentication is required or the session does not match the current space
- 403: Admin or owner only

## レスポンスの例

```json
[
  {
    "id": 1128,
    "name": "mia",
    "fullName": "Mia Chen",
    "avatarUrl": null,
    "color": null,
    "state": "active"
  },
  {
    "id": 1129,
    "name": "noah",
    "fullName": "Noah Rivera",
    "avatarUrl": "",
    "color": null,
    "state": "inviting"
  }
]
```
