Skip to main content

List Folder Contents By ID

This endpoint lists the contents of a folder, identified by the folder's internal ID in the path rather than by a folder path in a request parameter.

Endpoint

GET https://mysite.files.com/api/v2/resources/list/{id}

Replace mysite.files.com with your site address.

Path Parameters

ParameterDescription
idThe internal ID number of the resource.

Request Parameters

NameData TypeDescription
typestringUsed for filtering results to include only files or only folders. Possible values: file or dir
offsetintegerUsed for paginating responses. Skip this number of results.
limitintegerUsed for paginating responses. Limit the total number of returned results.
sortstringWhich field to use for sorting the users list. Valid options are name, size, type, or date.

Pagination

The legacy ExaVault API does not include cursor-based pagination. Instead, you can use the limit and offset request parameters to restrict the number of results returned, and make multiple requests to retrieve subsequent pages of results.

The limit parameter is the maximum number of results that can be returned, starting from the beginning of the list or from the offset parameter value, if that was provided. The value of limit cannot be larger than 10,000.

The offset parameter represents how many records to skip before returning up to limit number of results.

Sorting

The sort parameter controls the order of the results. Valid options are name, size, type, or date. All sorting is case-insensitive.

The sort order is ascending by default. To sort in descending order, prefix the sort value with - (a minus/hyphen character), for example: -date.