# メンバー一覧

`GET /api/member`

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

スペースのメンバーを、役割と課金状態つきで返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `includeDeactivated` | query | boolean |  | `true` にすると、無効化されたメンバーも含めて返します。省略すると `false` です。 |

## リクエスト

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

## レスポンス

- 200: Members with role and billing status
- 400: Invalid query parameters
- 401: Authentication is required
- 403: Admin only

## レスポンスの例

```json
[
  {
    "id": 1126,
    "name": "reon",
    "fullName": "Reon Walls",
    "avatarUrl": null,
    "color": null,
    "role": "owner",
    "billingStatus": "active",
    "state": "active",
    "email": null,
    "hasEmail": true,
    "emailVerified": true
  },
  {
    "id": 1128,
    "name": "mia",
    "fullName": "Mia Chen",
    "avatarUrl": null,
    "color": null,
    "role": "member",
    "billingStatus": "active",
    "state": "active",
    "email": null,
    "hasEmail": true,
    "emailVerified": true
  }
]
```
