Search Slack Workspace Channels
GET
/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/channels
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/slack-bots/example/workspace/channels';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/slack-bots/example/workspace/channels \ --header 'Authorization: Bearer <token>'Searches channels in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
botId
required
string
The Slack bot ID
Query Parameters
Section titled “Query Parameters”q
string
Search query to filter channels by name
Responses
Section titled “Responses”Workspace channels retrieved successfully
Media typeapplication/json
object
results
Array<object>
object
id
string
name
string
Examplegenerated
{ "results": [ { "id": "example", "name": "example" } ]}Access denied
Slack bot not found or not connected
Failed to search channels
