> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List Slack channels

> Lists every unarchived public and private channel of the organization's Slack workspace the bot can see, as Slack lists them now: the channels a route can take mentions from.

Use this tool when you need to:
- Find a channel's id to pass to createSlackRoute
- Check whether the bot can see a channel, and whether it is private

Examples:
- GET /orgs/{orgID}/slack/channels

Hints:
- orgID is the org's uuid; takes no other parameter and is not paged: items holds every channel, in Slack's order, each with id, name and is_private.
- Each call reads Slack, every page of its list, waiting out Slack's rate limits; a private channel appears only once the bot is a member of it.
- Use listSlackRoutes instead to read which channels are routed, and createSlackRoute to route one.
- Owners, admins and members of the org, with a session or a platform API key; a viewer or billing member is refused with 403 org_role_insufficient, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed.
- Refused with 404 not_connected when Slack is not installed; a Slack that fails to answer is a 502.



## OpenAPI

````yaml api-reference/openapi.json GET /orgs/{orgID}/slack/channels
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/slack/channels:
    get:
      tags:
        - slack
      summary: List Slack channels
      description: >-
        Lists every unarchived public and private channel of the organization's
        Slack workspace the bot can see, as Slack lists them now: the channels a
        route can take mentions from.


        Use this tool when you need to:

        - Find a channel's id to pass to createSlackRoute

        - Check whether the bot can see a channel, and whether it is private


        Examples:

        - GET /orgs/{orgID}/slack/channels


        Hints:

        - orgID is the org's uuid; takes no other parameter and is not paged:
        items holds every channel, in Slack's order, each with id, name and
        is_private.

        - Each call reads Slack, every page of its list, waiting out Slack's
        rate limits; a private channel appears only once the bot is a member of
        it.

        - Use listSlackRoutes instead to read which channels are routed, and
        createSlackRoute to route one.

        - Owners, admins and members of the org, with a session or a platform
        API key; a viewer or billing member is refused with 403
        org_role_insufficient, a non-member with 403 org_membership_required, an
        orgID that is not a uuid with 400, and an agent host's grant with 403
        agent_host_route_not_allowed.

        - Refused with 404 not_connected when Slack is not installed; a Slack
        that fails to answer is a 502.
      operationId: listSlackChannels
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSlackChannel'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackErrorResponse'
          description: Internal Server Error
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlackErrorResponse'
          description: Bad Gateway
components:
  schemas:
    ListSlackChannel:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/SlackChannel'
          type: array
      required:
        - items
      type: object
    SlackErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - agent_profile_not_found
            - bad_gateway
            - bad_request
            - conflict
            - default_actor_not_member
            - forbidden
            - gateway_timeout
            - gone
            - internal_error
            - method_not_allowed
            - not_acceptable
            - not_connected
            - not_found
            - not_implemented
            - org_membership_required
            - payment_required
            - precondition_failed
            - project_not_found
            - project_repo_disconnected
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - route_exists
            - route_not_found
            - service_unavailable
            - slack_channel_not_found
            - slack_identity_link_invalid
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    SlackChannel:
      additionalProperties: false
      properties:
        id:
          minLength: 1
          type: string
        is_private:
          type: boolean
        name:
          minLength: 1
          type: string
      required:
        - id
        - name
        - is_private
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.