The channels the Slack bot can post to, by name. Store a channel's `id` on a Slack channel row.
GET
/integration/slack/{integration_id}/channels
const url = 'https://api.siteqwality.com/integration/slack/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/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://api.siteqwality.com/integration/slack/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/channels \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” integration_id
required
string format: uuid
The Slack integration
Responses
Section titled “ Responses ”The channels, or reconnect for an install made before the channel picker
Media type application/json
object
result
required
string
channels
required
By name.
Array<object>
object
id
required
What a Slack channel row stores.
string
name
required
string
is_private
required
boolean
truncated
required
The workspace has more channels than the list holds; enter the others by id.
boolean
detail
string | null
Example
{ "result": "listed"}Missing or invalid authentication
No Slack integration with this id
Slack refused the install or did not answer
The list could not be fetched; try again