> ## 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 Channels

List channels in a Slack workspace via native OAuth integration. Supports filtering by type (public, private, DM) and pagination. Ideal for: channel discovery, workspace auditing, dynamic channel selection.

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

List channels in a Slack workspace via native OAuth integration. Supports filtering by type (public, private, DM) and pagination. Ideal for: channel discovery, workspace auditing, dynamic channel selection.


## At a Glance

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

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `types` | `string` | No | Comma-separated channel types: public_channel, private_channel, mpim, im \(default: public_channel,private_channel\) |
| `exclude_archived` | `boolean` | No | Exclude archived channels \(default: true\) |
| `limit` | `number` | No | Max channels to return \(default: 200, max: 1000\) |
| `cursor` | `string` | No | Pagination cursor for next page |

## Result Schema

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

## Examples

**Workflow node**

```json
{
  "type": "slack-list-channels",
  "payload": {
    "types": "public_channel,private_channel",
    "exclude_archived": true,
    "limit": 200,
    "cursor": "example-cursor"
  },
  "children": [],
  "connector": {
    "type": "slack",
    "id": "conn_slack"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/slack-list-channels/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "types": "public_channel,private_channel",
    "exclude_archived": true,
    "limit": 200,
    "cursor": "example-cursor"
  }
}'
```

**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.