ApiIntegrations
List Slack Channels
List public Slack channels available to the workspace's connected bot.
List public Slack channels available to the workspace's connected bot.
Returns connected: false with an empty channel list when the workspace has no
active Slack integration. When connected, channels are fetched live from the
Slack API and sorted alphabetically.
Requires the channels:read bot scope. Workspaces whose Slack integration
predates this scope must reconnect via POST /api/v1/integrations/slack/connect
to grant it.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Header Parameters
X-API-Key?string|null
Response Body
application/json
application/json
curl -X GET "https://api.levainlabs.com/api/v1/integrations/slack/channels"{
"connected": true,
"channels": [
{
"id": "string",
"name": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}