Integrations
List Slack channels
GET /v1/integrations/slack/channels- Permission
read:integrations- Tokens
- API key, CLI user token, Session token
List the channels of the connected Slack workspace, read live from Slack. Returns 404 when Slack is not connected.
{
"team_id": str,
"team_name": str
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.integrations.slack.channels()
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.integrations.slack.channels();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/integrations/slack/channels" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
channelsarray<SlackChannel>required
The workspace's channels.
team_idstringrequired
The Slack workspace (team) id.
team_namestringrequired
The Slack workspace name.