list_shares
List file and folder shares from Nextcloud, either owned by you or shared with you by others. Filter by path, include reshares or subfiles, and paginate results.
Instructions
List file/folder shares from Nextcloud.
Without arguments, returns all shares owned by the current user. With a path, returns shares for that specific file or folder. With shared_with_me, returns the shares other users gave the current user instead.
Args: path: Optional file/folder path to filter shares (e.g. "/Documents/report.pdf"). reshares: If true, include shares by other users on the same files. subfiles: If true and path is a folder, list shares of files inside it (not the folder itself). shared_with_me: If true, list the shares the current user received from others (directly, through a group, a team or a Talk conversation, or from another server). "path" is then where the item shows up in the current user's files and uid_owner/displayname_owner say who shared it; federated shares have federated: true and the other server in "remote". Shares still waiting to be accepted are not included (see list_pending_shares). Cannot be combined with reshares or subfiles. limit: Maximum number of shares to return (1-200, default 50). offset: Number of shares to skip for pagination (default 0).
Returns: JSON with "data" (list of share objects) and "pagination" (count, offset, limit, has_more). share_type values: 0=user, 1=group, 3=public link, 4=email, 6=federated, 7=team, 9=federated group, 10=talk room, 12=deck card.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| limit | No | ||
| offset | No | ||
| reshares | No | ||
| subfiles | No | ||
| shared_with_me | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |