Skip to main content
uploadFile uses Slack’s external upload flow. Leave conversationId unset to keep the file private to the installed app, or share it in a conversation or thread.

Example

automations/upload-slack-report.automation.ts

Inputs

Output

Returns a normalized Slack file with id and optional name, title, mimeType, fileType, size, permalink, authenticated urlPrivate, uploader userId, creation time, and sharing channelIds. The action fails if Slack cannot issue an upload ticket, the file transfer returns a non-success HTTP status, or Slack completes the flow without a file.