List your Slack workspace channels, public and private
slack.slack.channels.listList the channels in your Slack workspace, public and private
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/slack.slack.channels.listPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
the bot only sees private channels it has been /invite-d to, regardless of scopes
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
limit | 整数 | 任意 | default 100, must be under 1000 | 100 |
types | 文字列 | 任意 | comma-separated: public_channel, private_channel, mpim, im. Default public_channel only — private channels need this set explicitly | public_channel,private_channel |
cursor | 文字列 | 任意 | response_metadata.next_cursor from the previous page | |
team_id | 文字列 | 任意 | required only when the token belongs to an org-wide app | |
exclude_archived | 真偽値 | 任意 | default false — archived channels are included unless you opt out | true |
- クエリパラメータ
limit整数任意default 100, must be under 1000
例:
100types文字列任意comma-separated: public_channel, private_channel, mpim, im. Default public_channel only — private channels need this set explicitly
例:
public_channel,private_channelcursor文字列任意response_metadata.next_cursor from the previous page
team_id文字列任意required only when the token belongs to an org-wide app
exclude_archived真偽値任意default false — archived channels are included unless you opt out
例:
true
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/slack.slack.channels.list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/slack.slack.channels.list",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/slack.slack.channels.list", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。