Get File Info

slack.get_file_info
ActionChat & messagingconnection required

Calls the Slack Web API with the connection's bot token.

Read one file's metadata and a page of the comments on it.

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

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
file
The Slack file id (F…), as emitted by slack.upload_file or slack.list_files.
stringYes———
limit
Maximum comments to return on this page (1-1000).
numberNo1001–1000—
cursor
The next_cursor from a previous page.
stringNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "limit": 100
}

Output

One shape.

result

FieldTypeExample
id
The Slack file id (F…).
string—
name
The file name as uploaded.
string—
title
The title shown above the file in Slack.
string—
mimetype
The content type Slack detected.
string—
size
The file size in bytes.
number—
created
When the file was created (Unix seconds).
number—
user
The user id that uploaded it.
string—
permalink
The https URL of the file in Slack.
string—
file
The whole file object Slack returned, unmodified.
object—
comments
The comments on the file, oldest first.
array—
next_cursor
Cursor for the next page of comments.
string—
{
  "comments": [],
  "created": 0,
  "file": {},
  "id": "",
  "mimetype": "",
  "name": "",
  "next_cursor": "",
  "permalink": "",
  "size": 0,
  "title": "",
  "user": ""
}

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.

See Get File Info 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.