---
title: "Get list of subchannels within the channel"
method: GET
path: "/channels/{channel_name}/subchannels"
tags: ["channels"]
---

# Get list of subchannels within the channel

`GET /channels/{channel_name}/subchannels`

## Request

- Base URL: `https://api.anaconda.cloud/api`
- URL: `https://api.anaconda.cloud/api/channels/{channel_name}/subchannels`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anaconda/apis/anaconda-server-api/docs/channels/:channel_name/subchannels/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `channel_name` string, required

## Query parameters

- `offset` integer
- `limit` integer
- `q` string
- `ids` string[]
- `sort` string[]

## Response `200`

get the subchannels of the channel

- object
  - `total_count` number
  - `items` Subchannel[]
    - `id` string
    - `name` string: This can be any string based name
    - `description` string
    - `parent` string: name of parent channel
    - `privacy` 'private' | 'authenticated' | 'public': channel privacy channel
    - `channel_type` 'default' | 'virtual': channel type
    - `indexing_behavior` 'default' | 'frozen': channel indexing behavior
    - `sources` VirtualChannelSource[]
      - `name` string, required
      - `parent_name` string
    - `created` string: date created
    - `updated` string: date of last update

## Other responses

- `401`: Unauthenticated, no token is provided or token is invalid
- `403`: Access is forbidden
- `404`: The specified resource was not found
- `500`: Internal server error

---

[API](https://skmtc.dev/anaconda/apis/anaconda-server-api.md) - [All operations](https://skmtc.dev/anaconda/apis/anaconda-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anaconda/apis/anaconda-server-api/revisions/6aef0cb7a151?raw)
