POST /files.upload
Uploads or creates a file.
Servers
- https://slack.com/api
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
channels |
String | No |
Comma-separated list of channel names or IDs where the file will be shared. |
initial_comment |
String | No |
The message text introducing the file in specified |
filename |
String | No |
Filename of file. |
token |
String | No |
Authentication token. Requires scope: |
content |
String | No |
File contents via a POST variable. If omitting this parameter, you must provide a |
title |
String | No |
Title of file. |
thread_ts |
Number | No |
Provide another message's |
filetype |
String | No |
A file type identifier. |
file |
String | No |
File contents via |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.