List files

Files and folders inside one folder, with size, type and last change.

GET https://cotlet.dev/api/v1/nextcloud/files

read

Lists the direct contents of one folder of your Nextcloud, folders first. Each item has its path, size, MIME type and last modified time. Use the paths it returns in the other tools. Pass the root path to see the top level of your files.

Parameters

Parameters: list_files
NameTypeDescription
path string required string Folder path, e.g. '/Clients/Acme'. Use '/' for the top level.

Request

cURL
curl "https://cotlet.dev/api/v1/nextcloud/files?path=%2FClients%2FAcme" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("nextcloud", "list_files", {"path":"/Clients/Acme"})
Node.js
const result = await cotlet.call('nextcloud', 'list_files', {"path":"/Clients/Acme"});
CLI
cotlet call nextcloud list_files --data '{"path":"/Clients/Acme"}'

Example response

JSON

{
  "items": [
    {
      "path": "/Clients/Acme/proposal-q3.pdf",
      "type": "file",
      "size": 388102,
      "mime": "application/pdf",
      "modified_at": "2026-09-18T14:20:00Z"
    },
    {
      "path": "/Clients/Acme/Contracts",
      "type": "folder",
      "size": 1204411,
      "mime": "httpd/unix-directory",
      "modified_at": "2026-10-02T09:05:00Z"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.