Skip to main content

Upload file

Share one or more local files in a channel or direct conversation, with an optional comment or as a thread reply.

Command in the Slack toolkit · id ooa.slack/upload_file · 6 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Bot tokenCredentialYesSlack bot token (xoxb-...) from the vault; needs the files:write scope.
ChannelStringYesChannel id, or a channel name such as #ops-alerts (looked up first).
FilesListYesLocal file paths.
CommentStringNoMessage posted with the files.
Thread tsStringNoShare in the thread of this message.
Endpoint addressStringNohttps://slack.com/apiAPI endpoint; change only for testing.

Outputs​

OutputTypeWhat it is
file_idsListSlack file ids.