# List body revisions for a note

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

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

Returns the activities that changed the body, newest first.

## 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}/revisions" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

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

## Example response

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