List Files
slack.list_files
ActionChat & messagingconnection required
Calls the Slack Web API with the connection's bot token.
Page through the files in the workspace, filtered by channel, user or date.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Slack
- Secret shape
- the Slack bot token (xoxb-…), or {"token": "xoxb-…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
channel Only files shared into this channel id. | string | No | — | — | — |
user Only files uploaded by this user id. | string | No | — | — | — |
ts_from Only files created at or after this Unix timestamp. | string | No | — | — | — |
ts_to Only files created at or before this Unix timestamp. | string | No | — | — | — |
types Comma-separated file types to keep, e.g. images,pdfs. Defaults to all. | string | No | — | — | — |
count How many files to return on this page (1-1000). | number | No | 100 | 1–1000 | — |
page Which page of results to return, starting at 1. | number | No | 1 | 1–1000 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"count": 100,
"page": 1
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
files[].id The Slack file id (F…). | string | — |
files[].name The file name as uploaded. | string | — |
files[].title The title shown above the file in Slack. | string | — |
files[].mimetype The content type Slack detected. | string | — |
files[].size The file size in bytes. | number | — |
files[].created When the file was created (Unix seconds). | number | — |
files[].user The user id that uploaded it. | string | — |
files[].permalink The https URL of the file in Slack. | string | — |
count How many files this page carries. | number | — |
total How many files match the filter in total. | number | — |
page The page number this result is. | number | — |
pages How many pages the filter has. | number | — |
{
"count": 0,
"files": [
{
"created": 0,
"id": "",
"mimetype": "",
"name": "",
"permalink": "",
"size": 0,
"title": "",
"user": ""
}
],
"page": 0,
"pages": 0,
"total": 0
}Notes
- The bot must be a member of a private channel before it can act there (Slack answers not_in_channel otherwise).
- Slack rate-limits each Web API method on its own tier; a throttled call fails with the number of seconds to wait and is safe for the node's retry policy to repeat.
- files.list pages by number, not by cursor — increment 'page' to walk it.
Templates that use Slack
See List Files run in a workflow.
In a technical demo we add the Slack connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.