files list
GET {{baseUrl}}/files.list?user=<string>&channel=<string>&ts_from=<number>&ts_to=<number>&types=<string>&count=<string>&page=<string>&show_files_hidden_by_limit=<boolean>
List for a team, in a channel, or from a user with applied filters.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
user | string | Filter files created by a single user. | |
channel | string | Filter files appearing in a specific channel, indicated by its ID. | |
ts_from | string | Filter files created after this timestamp (inclusive). | |
ts_to | string | Filter files created before this timestamp (inclusive). | |
types | string | Filter files by type (see below). You can pass multiple values in the types argument, like types=spaces,snippets .The default value is all , which does not filter the list. | |
count | string | ||
page | string | ||
show_files_hidden_by_limit | string | Show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit. |
RESPONSES
status: OK
{"ok":"\u003cboolean\u003e","files":[{"channels":["\u003cstring\u003e"],"comments_count":"\u003cinteger\u003e","created":"\u003cinteger\u003e","date_delete":"\u003cinteger\u003e","display_as_bot":"\u003cboolean\u003e","editable":"\u003cboolean\u003e","editor":"\u003cstring\u003e","external_id":"\u003cstring\u003e","external_type":"\u003cstring\u003e","external_url":"\u003curi\u003e","filetype":"\u003cstring\u003e","groups":["\u003cstring\u003e"],"has_rich_preview":"\u003cboolean\u003e","id":"\u003cstring\u003e","image_exif_rotation":"\u003cinteger\u003e","ims":["\u003cstring\u003e"],"is_external":"\u003cboolean\u003e","is_public":"\u003cboolean\u003e","is_starred":"\u003cboolean\u003e","is_tombstoned":"\u003cboolean\u003e","last_editor":"\u003cstring\u003e","mimetype":"\u003cstring\u003e","mode":"\u003cstring\u003e","name":"\u003cstring\u003e","non_owner_editable":"\u003cboolean\u003e","num_stars":"\u003cinteger\u003e","original_h":"\u003cinteger\u003e","original_w":"\u003cinteger\u003e","permalink":"\u003curi\u003e","permalink_public":"\u003curi\u003e","pinned_info":"\u003cobject\u003e","pinned_to":["\u003cstring\u003e","\u003cstring\u003e"],"pretty_type":"\u003cstring\u003e","preview":"\u003cstring\u003e","public_url_shared":"\u003cboolean\u003e","reactions":[{"name":"\u003cstring\u003e","users":["\u003cstring\u003e","\u003cstring\u003e"],"count":"\u003cinteger\u003e"},{"name":"\u003cstring\u003e","users":["\u003cstring\u003e","\u003cstring\u003e"],"count":"\u003cinteger\u003e"}],"shares":{"private":{},"public":{}},"size":"\u003cinteger\u003e","source_team":"\u003cstring\u003e","state":"\u003cstring\u003e","thumb_1024":"\u003curi\u003e","thumb_1024_h":"\u003cinteger\u003e","thumb_1024_w":"\u003cinteger\u003e","thumb_160":"\u003curi\u003e","thumb_360":"\u003curi\u003e","thumb_360_h":"\u003cinteger\u003e","thumb_360_w":"\u003cinteger\u003e","thumb_480":"\u003curi\u003e","thumb_480_h":"\u003cinteger\u003e","thumb_480_w":"\u003cinteger\u003e","thumb_64":"\u003curi\u003e","thumb_720":"\u003curi\u003e","thumb_720_h":"\u003cinteger\u003e","thumb_720_w":"\u003cinteger\u003e","thumb_80":"\u003curi\u003e","thumb_800":"\u003curi\u003e","thumb_800_h":"\u003cinteger\u003e","thumb_800_w":"\u003cinteger\u003e","thumb_960":"\u003curi\u003e","thumb_960_h":"\u003cinteger\u003e","thumb_960_w":"\u003cinteger\u003e","thumb_tiny":"\u003cstring\u003e","timestamp":"\u003cinteger\u003e","title":"\u003cstring\u003e","updated":"\u003cinteger\u003e","url_private":"\u003curi\u003e","url_private_download":"\u003curi\u003e","user":"\u003cstring\u003e","user_team":"\u003cstring\u003e","username":"\u003cstring\u003e"}],"paging":{"page":"\u003cinteger\u003e","total":"\u003cinteger\u003e","count":"\u003cinteger\u003e","pages":"\u003cinteger\u003e","per_page":"\u003cinteger\u003e","spill":"\u003cinteger\u003e"}}