curl -s http://localhost:41184/notes/867fb533b07c4607a5b117b6e02eba88?fields=body&token=redacted
{"error":"Missing \"token\" parameter: \n\nError: Missing \"token\" parameter\n at Api.checkToken_ (/app/joplin-desktop/resources/app/node_modules/@joplin/lib/services/rest/Api.js:183:19)\n at Api.<anonymous> (/app/joplin-desktop/resources/app/node_modules/@joplin/lib/services/rest/Api.js:148:18)\n at Generator.next (<anonymous>)\n at /app/joplin-desktop/resources/app/node_modules/@joplin/lib/services/rest/Api.js:8:71\n at new Promise (<anonymous>)\n at __awaiter (/app/joplin-desktop/resources/app/node_modules/@joplin/lib/services/rest/Api.js:4:12)\n at Api.route (/app/joplin-desktop/resources/app/node_modules/@joplin/lib/services/rest/Api.js:100:16)\n at ClipperServer.<anonymous> (/app/joplin-desktop/resources/app/node_modules/@joplin/lib/ClipperServer.js:168:58)\n at Generator.next (<anonymous>)\n at /app/joplin-desktop/resources/app/node_modules/@joplin/lib/ClipperServer.js:8:71"}
curl -s http://localhost:41184/notes/867fb533b07c4607a5b117b6e02eba88?token=redacted&fields=body
{"id":"867fb533b07c4607a5b117b6e02eba88","parent_id":"764fef5c48694fa99ef766eb55556188","title":"autolist","type_":1}
you need to put the URL in single quotes
facepalm
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.