Use the list method to retrieve the all files of the user.

try {
  const response = await sdk.file.list()
  console.log(response.data) // all user files
} catch (error) {
  console.error(error.message)
}

Required API Key Permission

  • Read File