Search⌘ K

Local Files

Explore how to use Slack API endpoints to manage local files within your workspace. Learn to upload files, retrieve lists and details, and delete files via API calls using Python to automate Slack file management.

Overview

We can use Slack API calls to regularly upload and share local files on our system.

Let’s look at the following endpoints in this lesson:

  1. files.upload: This endpoint uploads or creates a file.
  2. files.list: This endpoint list files for a team, in a channel, or from a user with applied filters.
  3. files.info: This endpoint gets information about a file.
  4. files.delete: This endpoint deletes a file.

Upload a file

To upload a file, we’ll access the https://slack.com/api/files.upload endpoint. First, we’ll go over how to upload a file using the ...