> For the complete documentation index, see [llms.txt](https://docs.rad.live/rad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rad.live/rad/rad-tv-developer-api/channels-and-playlists.md).

# Channels and Playlists

Channels are creator spaces that hold catalog content (features, series, episodes, streams) and playlists. This guide covers how the API exposes them.

## Channels

### Getting a channel

* **Single channel:** `channel(id: DID!)` — Returns the channel or `null` if not found or not accessible.
* **List channels:** `channels(limit, start)` — Paginated list of all channels (auth required).

**MCP:** `get_channel` (with `id`), `list_channels` (with optional `limit`, `start`).

### Channel fields

A channel has:

* **id** (DID), **metadata** (name, summary, shortSummary, keywords, categories)
* **assets** — Images (and empty videos) for the channel
* **playlists(limit, start)** — Playlists belonging to the channel
* **followersCount**, **isFollowed** — Follower count and whether the current user follows
* **Catalog** — Use these fields to list content; there is **no** legacy `content` field:
  * **features(limit, start)** — Feature-length content
  * **series(limit, start)** — TV series
  * **miniseries(limit, start)** — Miniseries
  * **seasons(limit, start)** — Seasons
  * **episodes(limit, start)** — Episodes
  * **streams(limit, start)** — Streams

Always use `channel.features(...)`, `channel.series(...)`, etc., not a single `content` field.

### Example: channel with catalog and likes

```graphql
query {
  channel(id: "did:rad.live:channel/<uuid>") {
    id
    metadata { name summary }
    followersCount
    isFollowed
    features(limit: 10, start: 0) {
      id
      metadata { title }
      likes { count isLiked }
    }
  }
}
```

## Playlists

### Creating and updating playlists

* **Create:** `createPlaylist(channel: DID, input: PlaylistInput)` — Optionally pass a channel DID.
* **Update:** `updatePlaylist(id: DID!, input: PlaylistInput)` — Update metadata (title, summary).

**MCP:** `create_playlist` (title, summary, optional channel), `update_playlist` (id, title, summary).

### Playlist image upload

{% stepper %}
{% step %}
Call `createPlaylistAsset(id, input)` (GraphQL) or `create_playlist_asset` (MCP) with playlist DID, filename, and optional size.
{% endstep %}

{% step %}
POST the image to the returned `endpoint` with Bearer auth and multipart/form-data.
{% endstep %}
{% endstepper %}

### Playlist fields

* **id** (DID), **metadata** (title, summary, etc.), **assets**
* **items(limit, start)** — Playlist items (each has content reference and index)

## Categories

Content and channel metadata can include **categories** for filtering. Query all categories with:

* **GraphQL:** `categories(limit, start)` (auth required)
* **MCP:** `list_categories` (optional `limit`, `start`)

Categories have `id` (DID), and metadata (name, summary, shortSummary). Use them in filters and UI.

## Follow / unfollow

* **GraphQL:** `followChannel(channel: DID!)`, `unfollowChannel(channel: DID!)`
* **MCP:** `follow_channel`, `unfollow_channel` with `channel` (DID)

The current user’s followed channels: `me.followedChannels` (GraphQL) or `list_followed_channels` (MCP).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rad.live/rad/rad-tv-developer-api/channels-and-playlists.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
