# List activity history for a note

`GET /api/note/{noteId}/history`

URL: https://repsona.com/api/get-note-noteid-history

Returns the activity feed filtered to this note.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | required | ID of the note. |
| `beforeId` | query | integer |  | Cursor for paging. Returns only entries with an ID lower than this; use `nextBeforeId` from the previous response. |
| `limit` | query | integer |  | Number of entries to return (1 to 50). Defaults to 20. |

## Request

```sh
curl -X GET "https://<space>.repsona.com/api/note/{noteId}/history" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

- 200: Activity history
- 400: Invalid query parameters
- 401: Authentication is required
- 403: Not a project member
- 404: Note not found

## Example response

```json
{
  "activities": [
    {
      "id": 22395,
      "createdAt": 1793662619438,
      "model": "Note",
      "modelId": 187,
      "property": "description",
      "isMultiple": false,
      "action": "update",
      "message": "ノートの詳細を更新しました",
      "user": {
        "id": 1101,
        "name": "aiko",
        "fullName": "Aiko Tanaka",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      },
      "project": {
        "id": 288,
        "name": "Website renewal",
        "fullName": "Website renewal"
      },
      "ref": {
        "link": {
          "text": null,
          "path": null
        },
        "fromContent": null,
        "toContent": null,
        "content": null
      }
    },
    {
      "id": 22390,
      "createdAt": 1793662619333,
      "model": "Note",
      "modelId": 187,
      "property": "staredUsers",
      "isMultiple": false,
      "action": "update",
      "message": "ノートのスターを更新しました",
      "user": {
        "id": 1101,
        "name": "aiko",
        "fullName": "Aiko Tanaka",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      },
      "project": {
        "id": 288,
        "name": "Website renewal",
        "fullName": "Website renewal"
      },
      "ref": {
        "link": {
          "text": "Release checklist (v1)",
          "path": "/p/288/note/187"
        },
        "fromContent": null,
        "toContent": null,
        "content": null
      }
    }
  ]
}
```
