> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack: List Files

List files in a Slack workspace via native OAuth integration. Supports filtering by channel, user, and file type. Ideal for: file auditing, storage analysis, content discovery.

![Slack: List Files logo](https://ai-icon.b3.fun/logo/slack)
Catalog action Integrations slack

List files in a Slack workspace via native OAuth integration. Supports filtering by channel, user, and file type. Ideal for: file auditing, storage analysis, content discovery.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `slack-list-files` |
| Category | Integrations |
| Connector | `slack` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `slack`, `integration`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | `string` | No | Filter by channel ID |
| `user` | `string` | No | Filter by user ID |
| `types` | `string` | No | Filter by file types \(comma-separated: all, spaces, snippets, images, gdocs, zips, pdfs\) |
| `count` | `number` | No | Number of files per page \(default: 100, max: 1000\) |
| `page` | `number` | No | Page number \(default: 1\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | - |
| `data` | `object` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "slack-list-files",
  "payload": {
    "channel": "example-channel",
    "user": "example-user",
    "types": "all",
    "count": 100,
    "page": 1
  },
  "children": [],
  "connector": {
    "type": "slack",
    "id": "conn_slack"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/slack-list-files/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "channel": "example-channel",
    "user": "example-user",
    "types": "all",
    "count": 100,
    "page": 1
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.