# Get one body revision of a note

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

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

Returns the body before and after this revision. The diff is built from the pair.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | required | ID of the note. |
| `revisionId` | path | integer | required | ID of the revision, taken from the revisions list. |

## Request

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

## Responses

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

## Example response

```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"
}
```
