# ノートの本文の変更内容の取得

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

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

指定した変更の前後の本文を返します。差分はこの 2 つから作れます。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | 必須 | ノートの ID |
| `revisionId` | path | integer | 必須 | リビジョンの ID。リビジョン一覧で得た ID を渡します。 |

## リクエスト

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

## レスポンス

- 200: Revision bodies
- 401: Authentication is required
- 403: Not a project member
- 404: Revision not found

## レスポンスの例

```json
{
  "id": 22395,
  "createdAt": 1793662619438,
  "user": {
    "id": 1101,
    "name": "aiko",
    "fullName": "Aiko Tanaka",
    "avatarUrl": null,
    "state": "active",
    "extra": {
      "color": null
    }
  },
  "before": "## Before launch\n\n- Run the full regression suite",
  "after": "## Before launch\n\n- Run the full regression suite\n- Back up the old site"
}
```
