I was looking for the same info. The documentation is, unfortunately, not too clear on this subject.
I would also suggest that the API docs explicitly state that by default the body is not returned when querying for a note. This would make the very useful API more user-friendly
The normal expectation of a user is that, unless otherwise specified, GET-ting a note returns all fields/content.
Ok its solved. The problem was that curl was cutting url on ampersand.
Url should be in quotes: curl 'http://localhost:41184/notes/1a05728a2c00479XXXXXXXXX?token=XXXXXX&fields=body'
Is there any plugin API to retrieve parsed note content? I add body_html in fields, but got
Uncaught (in promise) Error: Error: SQLITE_ERROR: no such column: body_html: SELECT `body_html` FROM `notes` WHERE `id` = ?: 70e543a12e30490abd0162f45ffc5403
I would recommend updating the documentation for the GET /note/:id API to indicate that the body is not included by default. I found this post by Googling for how to retrieve the actual note contents.
From a user perspective, I would generally expect that retrieving a note, with a specific ID, would return the payload / body of the note as well. Right now, the description doesn't indicate that this doesn't happen, or where to go from there.
It's strange that you take the time to create a post, make a screenshot, highlight some specific random information in it... and apparently ignore the rest of the doc? There's something before and after that red rectangle... Information about filtering data for instance that says "By default API results will contain the following fields: id, parent_id, title" and that explains how to get more data.
It's a very small doc actually, it takes 10 minutes to read the important information.