get https://api.copilot.com/v1/files
This API endpoint retrieves the list of files in a file channel.
When fetching files with the path
parameter, the results will include files located in folders that matches the path
and their subfolders.
This recursive behavior is designed to give you all of the files within a folder easily. If you'd like to exclude subfolders you can access the path
parameter within the fields
object in the response and filter out the files you don't need.