API Reference

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

try {
  const [data, error] = await sdk.file.list();
  
  // Check for success
  if (error) {
    console.error('Failed to retrieve file list:', error);
  } else {
    console.log('All user files:', data);
  }
} catch (error) {
  console.error('An unexpected error occurred:', error.message);
}

Required API Key Permission

  • Read File