Slack Files API
The Files API from Slack — 13 operation(s) for files.
Operations 11
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“What are the details of a file that was uploaded, like its name, size and who shared it?”
“Can I page through the comments on a file when I look it up?”
Tell an agent
Get details for file {file}.
Show file {file} with the next {limit} comments after cursor {cursor}.
Ask an LLM
“Which files has a given user uploaded?”
“Can I list only images or PDFs shared in one channel within a date range?”
Tell an agent
List files uploaded by user {user}.
List files of type {types} in {channel} shared between {ts_from} and {ts_to}.
Ask an LLM
“How do I look up a remote file I added from my own service?”
“Can I find a remote file by my own external ID instead of its file ID?”
Tell an agent
Get details of remote file {file}.
Look up the remote file with external ID {external_id}.
Ask an LLM
“Which remote files from external services have been added to Slack?”
“Can I list remote files shared in one channel during a time window?”
Tell an agent
List all remote files added to the workspace.
List remote files in {channel} added between {ts_from} and {ts_to}.
Ask an LLM
“Can I remove a remote file my app added once it is deleted on our side?”
“Is removing a remote file possible using only my external ID?”
Tell an agent destructive · confirm first
Remove remote file {file}.
Remove the remote file with external ID {external_id}.
Ask an LLM
“Can I change the title or URL of a remote file after adding it?”
“What remote file details, like the preview image or searchable contents, can I update?”
Tell an agent
Rename remote file {file} to {title}.
Point the remote file with external ID {external_id} to the new URL {external_url}.
POST
/files.revokePublicURL
Revoke a file's public sharing link · Slack Post Files Revokepublicurl
#
Ask an LLM
“How do I stop a file from being publicly accessible outside the workspace?”
“Can I turn off an external link I created for a file earlier?”
Tell an agent destructive · confirm first
Revoke public sharing for file {file}.
Disable the external public link on {file}.
Ask an LLM
“How do I upload a file and share it in a channel?”
“Can I create a text snippet from content instead of uploading a file?”
Tell an agent
Upload {filename} to channels {channels} titled {title}.
Create a snippet from {content} and post it in {channels}.
Ask an LLM
“How do I permanently delete a file from the workspace?”
“Can my app delete a file someone uploaded by mistake?”
Tell an agent destructive · confirm first
Delete file {file}.
Permanently remove uploaded file {file} from the workspace.
Documentation
Documentation
https://docs.slack.dev/admins
Documentation
https://docs.slack.dev/reference/methods
Documentation
https://docs.slack.dev/authentication
Documentation
https://docs.slack.dev/surfaces/canvases
Documentation
https://docs.slack.dev/apis/web-api/using-the-conversations-api
Documentation
https://docs.slack.dev/workflows/workflow-steps
Documentation
https://docs.slack.dev/surfaces/lists
Documentation
https://docs.slack.dev/authentication/sign-in-with-slack
Documentation
https://docs.slack.dev/legacy/legacy-rtm-api
Documentation
https://docs.slack.dev/workflows
Documentation
https://docs.slack.dev/apis/web-api
APIReference
https://docs.slack.dev/reference/methods
RateLimits
https://docs.slack.dev/apis/web-api/rate-limits
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/slack/json-schema/slack-message-schema.json
JSONSchema
https://artifacts.apis.io/slack/json-schema/slack-channel-schema.json