# ログインユーザーの情報取得

`GET /api/me`

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

ログインユーザーと、参加しているプロジェクトの ID・メンバーとしての情報を返します。

## リクエスト

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

## レスポンス

- 200: Session context
- 401: Authentication is required

## レスポンスの例

```json
{
  "me": {
    "id": 1126,
    "name": "reon",
    "fullName": "Reon Walls",
    "avatarUrl": null,
    "backgroundUrl": null,
    "color": null,
    "role": "owner"
  },
  "locale": "ja",
  "dateFormat": "M/D",
  "firstDay": 1,
  "autoTimeZone": true,
  "timeZoneCode": "Asia/Tokyo",
  "joinedProjectIds": [
    297
  ],
  "memberships": [
    {
      "userId": 1126,
      "projectIds": [
        297
      ]
    },
    {
      "userId": 1128,
      "projectIds": [
        297
      ]
    }
  ],
  "space": {
    "name": "eee",
    "fullName": "Acme Inc.",
    "avatarUrl": null
  },
  "plan": {
    "tier": "standard",
    "activityRetentionMonths": 12,
    "memberLimitExceeded": false,
    "ipRestrictionBlocked": false,
    "trialEligible": true
  }
}
```
