---
title: "List Slack Channels in a workspace."
method: POST
path: "/listChannels"
tags: ["channel"]
---

# List Slack Channels in a workspace.

`POST /listChannels`

Returns a list of public & private channels each containing the ID and name of a channel in the workspace.

## Request body

- object
  - `body` object — Body of the getChannelsIds sls call
    - `arguments` object, required — Container for function arguments.
      - `cursor` string — A cursor to the next page of results.
      - `limit` number — The maximum number of channels to return. Defaults to 50.

## Response `200`

Successful response

- object
  - `channels` object[]
    - `id` string, required — The ID of the channel.
    - `name` string, required — The name of the channel.
  - `nextCursor` string — A cursor to the next page of results

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/microfox-ai/apis/slack-d.md) · [All operations](https://skmtc.net/microfox-ai/apis/slack-d/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/microfox-ai/slack-d/versions/cd0edf0c2cdf/schema)
