How to pull file comments with curl?

I’m using curl to pull file and tag information over from NC in order to produce a JSON feed for a web server. I’d like to be able to pull the Comments (from the Comments app) attached to each file as well, but can’t figure out the right incantation.

I can get this far which will show two HREF objects for comments:
curl -s -X PROPFIND -u ${username}:${password} -H "Content-Type: text/xml" https://cloud.com/remote.php/dav/comments/

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns">
 <d:response>
  <d:href>/remote.php/dav/comments/</d:href>
  <d:propstat>
   <d:prop>
    <d:resourcetype>
     <d:collection/>
    </d:resourcetype>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>
 <d:response>
  <d:href>/remote.php/dav/comments/files/</d:href>
  <d:propstat>
   <d:prop>
    <d:resourcetype>
     <d:collection/>
    </d:resourcetype>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

If I try to add /files to the end of the comments URL, I get an error. Is this correct?:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\MethodNotAllowed</s:exception>
  <s:message>No permission to list folder contents</s:message>
</d:error>

If so, where do I find the permissions to allow my user making the query to pull those comments?

Hope it helps someone else. Had to get the fileid (such as 1676) and feed it along with a template to curl:

propfind-comments.xml

<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns">
<a:prop>
   <oc:isUnread/>
   <oc:message/>
   <oc:creationDateTime/>
</a:prop>
</a:propfind>

curl:
$ curl -s -X PROPFIND -u ${username}:${password} -H "Content-Type: text/xml" -i --data-binary "@propfind-comments.xml" https://cloud.com/remote.php/dav/comments/files/1676/