File Operations
resource: file — 3 operations for uploading and looking up files
Underlying API: Slack's
files.* Web API methods. The SlackFileService HTTP client is configured with a 120-second timeout (double the standard 30s) because uploads can be large — see Configuration.
upload
Uploads a file and shares it into a channel via Slack's three-step file upload flow.
| Field | Required | Notes |
|---|---|---|
fileName | Yes | File name including extension, e.g. report.pdf. |
fileContentBase64 | Yes | Base64-encoded file bytes. |
channelId | No | Channel to share the uploaded file into. |
title | No | Display title for the file in Slack. |
get
Looks up file metadata via files.info. Requires fileId.
getMany
Lists files via files.list.
| Field | Required | Default | Notes |
|---|---|---|---|
channel | No | — | Filter to files shared in a specific channel. |
userId | No | — | Filter to files uploaded by a specific user. |
returnAll | No | true | Paginate through all result pages. |
limit | No | 20 | Results per page. |