# List inbox notifications (threaded)

`GET /api/inbox`

URL: https://repsona.com/api/get-inbox

Groups notifications by their Task/Note and returns the latest per thread with subIds (legacy-compatible).

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `status` | query | unread \| archived |  | Which notifications to list: `unread` or `archived`. Defaults to `unread`. |
| `page` | query | integer |  | Page number, starting at 1. Each page has 10 threads. Defaults to 1. |
| `until_id` | query | integer |  | Return only notifications with an ID lower than this value. Use it to keep paging stable while new notifications arrive. |
| `mention_only` | query | boolean |  | Set to `true` to list only notifications that mention you. Defaults to `false`. |

## Request

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

## Responses

- 200: Threaded inbox notifications
- 401: Authentication is required

## Example response

```json
{
  "inboxNotifications": [
    {
      "id": 79,
      "status": "unread",
      "createdAt": 1794385627737,
      "activity": {
        "id": 92553,
        "createdAt": 1794385627700,
        "model": "TaskComment",
        "modelId": 9158,
        "property": "comment",
        "isMultiple": false,
        "action": "create",
        "via": null,
        "message": "コメントを作成しました",
        "user": {
          "id": 981,
          "name": "mia",
          "fullName": "Mia Chen",
          "avatarUrl": null,
          "state": "active",
          "extra": {
            "color": null
          }
        },
        "project": {
          "id": 9756,
          "name": "beta-launch",
          "fullName": "Beta Launch"
        },
        "ref": {
          "link": {
            "text": "Fix login redirect",
            "path": "/p/9756/task/92163#comment-9158"
          },
          "fromContent": null,
          "toContent": "Looks good to me. Shipping on Friday.",
          "content": "Looks good to me. Shipping on Friday."
        }
      },
      "reaction": {
        "targetType": "taskComment",
        "targetId": 9158,
        "reactions": []
      },
      "subIds": []
    },
    {
      "id": 78,
      "status": "unread",
      "createdAt": 1794385627677,
      "activity": {
        "id": 92548,
        "createdAt": 1794385627634,
        "model": "TaskComment",
        "modelId": 9157,
        "property": "comment",
        "isMultiple": false,
        "action": "create",
        "via": null,
        "message": "コメントを作成しました",
        "user": {
          "id": 981,
          "name": "mia",
          "fullName": "Mia Chen",
          "avatarUrl": null,
          "state": "active",
          "extra": {
            "color": null
          }
        },
        "project": {
          "id": 9756,
          "name": "beta-launch",
          "fullName": "Beta Launch"
        },
        "ref": {
          "link": {
            "text": "Write release notes",
            "path": "/p/9756/task/92162#comment-9157"
          },
          "fromContent": null,
          "toContent": "Looks good to me. Shipping on Friday.",
          "content": "Looks good to me. Shipping on Friday."
        }
      },
      "reaction": {
        "targetType": "taskComment",
        "targetId": 9157,
        "reactions": []
      },
      "subIds": []
    }
  ]
}
```
