# ノートの本文の変更履歴

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

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

本文を変更したアクティビティを新しい順に返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | 必須 | ノートの ID |
| `beforeId` | query | integer |  | ページ送り用のカーソルです。この ID より小さい ID の履歴だけを返します。前回のレスポンスの `nextBeforeId` を渡してください。 |
| `limit` | query | integer |  | 返す件数 (1〜50)。省略すると 20 件です。 |

## リクエスト

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

## レスポンス

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

## レスポンスの例

```json
{
  "revisions": [
    {
      "id": 22395,
      "createdAt": 1793662619438,
      "user": {
        "id": 1101,
        "name": "aiko",
        "fullName": "Aiko Tanaka",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    },
    {
      "id": 22386,
      "createdAt": 1793662619238,
      "user": {
        "id": 1101,
        "name": "aiko",
        "fullName": "Aiko Tanaka",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    }
  ],
  "nextBeforeId": null
}
```
