> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# List Channels

- Component: `appmixer.slack.list.ListChannels`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.slack 6.0.7](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.ListChannels>

Returns all public and private channels of the workspace (paginated internally, archived channels are excluded).

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `channels`

Variables are loaded dynamically from `/component/appmixer/slack/list/ListChannels?outPort=channels&ignoreAuth=true`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.slack.list.ListChannels",
  "label": "List Channels",
  "icon": "(data URI omitted)",
  "description": "Returns all public and private channels of the workspace (paginated internally, archived channels are excluded).",
  "auth": {
    "service": "appmixer:slack",
    "scope": [
      "channels:read",
      "groups:read"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "outputType": {
            "type": "string"
          }
        },
        "required": []
      },
      "inspector": {
        "inputs": {
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 1,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method.",
            "options": [
              {
                "label": "First Found",
                "value": "first"
              },
              {
                "label": "All at once",
                "value": "array"
              },
              {
                "label": "One at a time",
                "value": "object"
              },
              {
                "label": "File",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "channels",
      "source": {
        "url": "/component/appmixer/slack/list/ListChannels?outPort=channels&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ]
}
```
