files.list
method
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
This method returns a list of files within the team. It can be filtered and sliced in various ways.
The team_id
is only relevant when using an org-level token. This field will be ignored if the API call is sent using a workspace-level token.
Response
The response contains a list of file objects, followed by paging information.
In order to gather information on tombstoned files in Free workspaces, so that you can delete or revoke them, pass the show_files_hidden_by_limit
parameter. While the yielded files will still be redacted, you'll gain the id
of the files so that you can delete or revoke them.
Types
The file types you may encounter include (but are not limited to):
all
- All filesspaces
- Postssnippets
- Snippetsimages
- Image filesgdocs
- Google docszips
- Zip filespdfs
- PDF files