> This page is for version 2025-09-18 (default).
> For other versions, use one of these documentation indexes:
> - 2025-09-18 (default): https://apidocs.polytomic.com/2025-09-18/llms.txt
> - 2024-02-08: https://apidocs.polytomic.com/2024-02-08/llms.txt
> - 2023-04-25: https://apidocs.polytomic.com/2023-04-25/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.polytomic.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server.

# Lists eligible channels in an organization-linked Slack workspace.

GET https://app.polytomic.com/api/integrations/slack/workspaces/{installation_id}/channels

Lists eligible channels in an organization-linked Slack workspace.

Use an `installation_id` from the Slack workspace list in the path. This is the
Organization-specific installation UUID, not the Slack workspace ID.

Polytomic returns active public and private channels where it is invited.
Archived channels, direct messages, and shared or externally shared channels are
excluded. Invite Polytomic to a channel in Slack before selecting it.

Organization members can discover channels, including with read-only API keys.
This includes eligible private channels visible to Polytomic. Listing channels
does not grant permission to change notification settings. Saving a channel still
requires Edit permission on the sync or on Organization settings for the global
default. Organization-scoped credentials are also supported. Slack must be
enabled for your Organization and configured for your deployment.

Each request reads one Slack page of up to 200 channels before filtering. A page
can be empty and still have a `next_page_token`. Pass that token as `page_token`
and continue until it is empty. Keep the same installation across requests.

A missing installation returns `404`. A disconnected installation returns
`409`; reconnect it in Organization settings. Slack rate limits return `429`
with a `Retry-After` header. An unavailable Slack connection returns `503`.

Reference: https://apidocs.polytomic.com/api-reference/integrations/slack/workspaces/list-channels

## Authentication

- `Authorization` header (bearer token, required) — Bearer user API key
- `Authorization` header (basic auth, required) — Basic organization-scoped API key

## Request

### Path parameters

- `installation_id` (string, required) — Organization-specific installation ID from the Slack workspace list

### Query parameters

- `page_token` (string, optional) — Opaque continuation token from the previous page; omit on the first request

## Response

### 200

OK

- `data` (list of SlackChannel, optional, nullable) — Eligible channels on this page; may be empty even when another page exists
- `pagination` (PaginationDetails, optional) — Continue until next_page_token is empty

## Errors

### 400 Bad Request Error

Bad Request

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 401 Unauthorized Error

Unauthorized

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 403 Forbidden Error

Forbidden

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 404 Not Found Error

Not Found

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 409 Conflict Error

Conflict

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 429 Too Many Requests Error

Too Many Requests

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 500 Internal Server Error

Internal Server Error

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

### 503 Service Unavailable Error

Service Unavailable

- `key` (string, optional) — Machine-readable error key, when the error has one
- `message` (string, optional) — Error message
- `metadata` (map from string to any, optional) — Structured details about the error, when available
- `status` (integer, optional) — HTTP status code

## Types

### SlackChannel

- `id` (string, optional) — Slack channel ID
- `name` (string, optional) — Slack channel name
- `visibility` (enum, optional) — Channel visibility
  - Allowed values: `public`, `private`

### PaginationDetails

- `next_page_token` (string, optional) — Token for fetching the next page of results

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "visibility": "public"
    }
  ],
  "pagination": {
    "next_page_token": "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K=="
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/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);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.polytomic.com/api/integrations/slack/workspaces/248df4b7-aa70-47b8-a036-33ac447e668d/channels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```