## GET /v1/integrations/slack/channels

List the channels of the connected Slack workspace, read live from Slack. Returns 404 when Slack is not connected.

Required permissions: read:integrations.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "channels": [
    {
      "id": str,
      "is_member": bool,
      "is_private": bool,
      "name": str
    }
  ],
  "team_id": str,
  "team_name": str
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.integrations.slack.channels()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.integrations.slack.channels();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/integrations/slack/channels" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "channels": {
      "items": {
        "properties": {
          "id": {
            "type": "string"
          },
          "is_member": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "team_id": {
      "type": "string"
    },
    "team_name": {
      "type": "string"
    }
  },
  "required": [
    "team_id",
    "team_name",
    "channels"
  ],
  "type": "object"
}
```
