🚧 Docs Under Construction. Please bear with us! 🚧

Files API

The Files API allows you to interact with files in a user's Slack workspace.

GET /api/files

Fetches a paginated list of files for the authenticated user.

Query Parameters

  • `page` (optional): The page number to fetch.
  • `limit` (optional): The number of files to fetch per page.

Example Response

$ {
  "files": [
    {
      "_id": "...",
      "fileName": "...",
      "fileSize": "...",
      "fileType": "...",
      "uploads": [
        {
          "provider": "...",
          "providerFileId": "..."
        }
      ]
    }
  ],
  "hasMore": true
}

DELETE /api/files

Deletes one or more files from the user's Slack workspace.

Request Body

$ {
  "files": [
    {
      "fileId": "...",
      "deleteFlag": "app" // or "both"
    }
  ]
}