# List note comments as a tree

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

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

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | required | ID of the note. |

## Request

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

## Responses

- 200: Comments (children nested)
- 401: Authentication is required
- 403: Not a project member
- 404: Note not found

## Example response

```json
{
  "comments": [
    {
      "id": 36,
      "parentId": null,
      "comment": "Looks good. Can we also add a rollback step?",
      "createdAt": 1793662619344,
      "updatedAt": 1793662619344,
      "user": {
        "id": 1101,
        "name": "aiko",
        "fullName": "Aiko Tanaka",
        "avatarUrl": null,
        "color": null,
        "state": "active"
      },
      "files": [],
      "deleted": false,
      "reactions": [],
      "children": []
    }
  ]
}
```
