Slack Info

Slack Info

Certified

Get Slack file metadata

Fetches file details (name, title, uploader, timestamps, links). Requires files: read and the file ID.

yaml
type: io.kestra.plugin.slack.app.files.Info

Get information about a file

yaml
id: slack_file_info
namespace: company.team

tasks:
  - id: get_file_info
    type: io.kestra.plugin.slack.app.files.Info
    token: "{{ secret('SLACK_TOKEN') }}"
    fileId: "F1234567890"

Get file info after uploading

yaml
id: slack_upload_and_get_info
namespace: company.team

tasks:
  - id: upload_file
    type: io.kestra.plugin.slack.app.files.Upload
    token: "{{ secret('SLACK_TOKEN') }}"
    channels: ["#general"]
    from: "{{ inputs.file }}"
    filename: "report.pdf"
    title: "Report"

  - id: get_file_info
    type: io.kestra.plugin.slack.app.files.Info
    token: "{{ secret('SLACK_TOKEN') }}"
    fileId: "{{ outputs.upload_file.id }}"
Properties

File ID

Slack file ID (e.g., F123...); obtain from Upload output or Slack API.

Slack token

Reference (ref) of the pluginDefaults to apply to this task.

SubTypestring

Channels where shared

Formatdate-time

Created at

External file ID

External file type

External file URL

File type

SubTypestring

Groups where shared

File ID

SubTypestring

IMs where shared

Is editable

Is external

Is public

MIME type

File mode

File name

Public permalink (alt)

Pretty file type

File size (bytes)

Source team ID

File subject

Thumbnail

Definitions
thumb160string

Thumbnail 160x160

thumb360string

Thumbnail 360x360

thumb480string

Thumbnail 480x480

thumb64string

Thumbnail 64x64

thumb80string

Thumbnail 80x80

Formatdate-time

File timestamp

File title

Private download URL

Private forced-download URL

Uploader user ID

Uploader team ID