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

# List available channels

> List available channels/chats for a connected integration.

Also returns the connection's currently-selected IDs so a picker can
render the right boxes pre-checked without a second round trip.



## OpenAPI

````yaml https://app.stainlessapi.com/api/spec/documented/hyperspell.yaml get /integrations/{integration_id}/channels
openapi: 3.1.0
info:
  title: Hyperspell API
  summary: >-
    Hyperspell is the memory layer for AI apps and agents. Through the API, you
    can add memories, connect data sources to index them in real-time, and
    search memories with our natural language query engine.
  termsOfService: https://hyperspell.com/blog/tos
  contact:
    name: Hyperspell
    url: https://hyperspell.com/
    email: hello@hyperspell.com
  version: 0.32.1
servers:
  - url: https://api.hyperspell.com
    description: Production
security:
  - APIKey: []
    AsUser: []
paths:
  /integrations/{integration_id}/channels:
    get:
      tags:
        - Integrations
        - Integrations
      summary: List available channels
      description: |-
        List available channels/chats for a connected integration.

        Also returns the connection's currently-selected IDs so a picker can
        render the right boxes pre-checked without a second round trip.
      operationId: list_channels_integrations__integration_id__channels_get
      parameters:
        - name: integration_id
          in: path
          required: true
          schema:
            type: string
            title: Integration Id
        - name: connection_id
          in: query
          required: true
          schema:
            type: string
            description: The connection ID to use for listing channels
            title: Connection Id
          description: The connection ID to use for listing channels
        - name: parent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              For hierarchical providers (e.g. Microsoft Teams): omit to list
              root containers (workspaces); pass a container's id to list its
              children (sub-channels). Selected ids in the response always
              reflect the leaf values stored in user_options.channels regardless
              of which level is queried.
            title: Parent Id
          description: >-
            For hierarchical providers (e.g. Microsoft Teams): omit to list root
            containers (workspaces); pass a container's id to list its children
            (sub-channels). Selected ids in the response always reflect the leaf
            values stored in user_options.channels regardless of which level is
            queried.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListChannelsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKey: []
        - AsUser: []
components:
  schemas:
    ListChannelsResponse:
      properties:
        channels:
          items:
            $ref: '#/components/schemas/ChannelInfo'
          type: array
          title: Channels
        selected:
          items:
            type: string
          type: array
          title: Selected
          description: >-
            IDs currently in connection.user_options.channels — pre-checked in
            pickers.
        pending:
          type: boolean
          title: Pending
          description: >-
            True while the provider's channel list is being walked in the
            background (large workspaces can take a minute) — poll again
            shortly; channels is empty and NOT the workspace's real state while
            pending.
          default: false
      type: object
      required:
        - channels
      title: ListChannelsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ChannelInfo:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        type:
          type: string
          title: Type
          default: channel
      type: object
      required:
        - id
        - name
      title: ChannelInfo
      description: A selectable channel/chat from an integration provider.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKey:
      type: http
      description: >-
        API Key or JWT User Token. If using an API Key, set the X-As-User header
        to act as a specific user. A JWT User Token is always scoped to a
        specific user.
      scheme: bearer
      bearerFormat: Bearer <token>
    AsUser:
      type: apiKey
      description: >-
        Optionally set this header to act as a specific user when using an API
        Key, equivalent to first exchanging the API Key for a User Token
      in: header
      name: X-As-User

````