App Logo
slack.com

Upload Slack text file

Upload a text file/snippet (its content given inline) to a channel via Slack's file-upload flow. For sharing logs, code or notes; binary files are out of scope. Returns the file id, name and permalink. Requires login.

Input

channel required

Channel name/#name or id (C…).

content required

The text content of the file.

title optional

Display title. Defaults to the filename.

comment optional

Optional message posted with the file.

filename optional

File name, e.g. 'notes.txt'. Default 'file.txt'.

workspaceDomain optional

Workspace host, e.g. acme.slack.com. Defaults to the active workspace.

Output

id required
ok required
name optional
title optional
permalink optional

Start building not clicking