> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/documentation/start-here/ai-agents/podcasts-and-episodes/manage-episodes.md).

# Manage episodes

Find, read, create, copy, edit, schedule, take offline, and delete episodes with your assistant.

Your assistant can do these jobs with episodes:

* Find episodes in one show or in all shows, and read an episode.
* Create and copy drafts, and change texts and chapter marks.
* Schedule an episode, take it offline, and delete it.

Every change uses a preview and your yes, as [Preview and confirm changes](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/preview-and-confirm-changes.md) tells you.

To publish new media, see [Encode and publish episodes](https://docs.podigee.com/documentation/start-here/ai-agents/media-and-publishing/encode-and-publish-episodes.md). The tools are described in full in [Episode tools](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-tools/episodes.md). The scopes are in [Authorization and scopes](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/authorization-and-scopes.md).

## Episode states and fields

`published_at` sets the state of an episode:

| State     | `published_at`                 | In the feed         |
| --------- | ------------------------------ | ------------------- |
| Draft     | Empty. The episode is offline. | No                  |
| Scheduled | A time in the future.          | No, until that time |
| Published | A time in the past or now.     | Yes                 |

`publication_type` is a different field. It is the RSS episode type: `full`, `trailer`, or `bonus`.

Times: when Podigee knows your time zone, the episode also has `published_at_local`, for example "Sun, 11 Oct 2026, 09:00 (Europe/Berlin)". `doctor` returns your time zone as `time_zone` and your `local_time`. A time that you give without a zone, for example "Tuesday at 7am", is in your time zone, not in UTC. When `doctor` returns no `time_zone`, the assistant asks you for it before it schedules.

Media: an episode in a list has `has_media`, which tells if a playable recording is attached. `get_episode` has a `media` object instead:

| Field        | Meaning                                                                                                                                                              |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `state`      | `none` (no recording), `uploaded` (a file waits for a publish), `processing`, `ready`, or `failed`. A recording that stopped changing for hours also shows `failed`. |
| `kind`       | `audio` or `video`.                                                                                                                                                  |
| `changed_at` | The last change of the recording.                                                                                                                                    |
| `problem`    | When the recording failed: `code`, `sentence`, and `next_step`, in the words of the episode page.                                                                    |

`duration_text` gives the length of the recording in words, for example "25 min 0 s". An episode needs a recording before it can go live.

## Show notes fields

An episode keeps its show notes in two fields.

| Field           | Content  | Use                                                            |
| --------------- | -------- | -------------------------------------------------------------- |
| `show_notes_md` | Markdown | The source text. The Podigee editor opens this field.          |
| `show_notes`    | HTML     | The published text. The website and the feeds show this field. |

Send `show_notes_md`. This is the recommended field.

* When a request contains `show_notes_md` and no `show_notes`, Podigee makes the HTML from the Markdown and saves it in `show_notes`. The preview shows this HTML.
* When a request contains both fields, Podigee saves `show_notes` as you sent it.
* When a request contains only `show_notes`, Podigee saves the HTML and does not change `show_notes_md`. Then the editor can show a text that is different from the published text.
* When `show_notes_md` is empty and the request has no `show_notes`, Podigee also clears the published show notes.

This applies to `create_episode`, `update_episode`, `bulk_update_episodes`, and `publish_episode`. Tables, headings, lists, links, images, and text snippet placeholders are supported. For a code block, indent each line with four spaces. Put an empty line before a heading and before a list.

## Find and filter episodes

What you need:

* A connection with `mcp:podcasts:read`.
* Optional: the podcast ID. Without it, `list_episodes` lists the episodes of every show that you can access, and each row also names its show in `podcast_title`.

Steps:

1. Ask the assistant for the episodes. It calls `list_episodes`.
2. To find episodes by their title, the assistant sends words of the title in `query`.
3. To filter by state, the assistant sends `state` as `draft`, `scheduled`, or `published`.
4. To filter by the publication time, the assistant sends `published_from` and `published_to`.
5. To filter by the time of creation or of the last change, the assistant sends `created_from` and `created_to`, or `updated_from` and `updated_to`. A draft has no publication time, so use these filters for drafts.
6. To sort, the assistant sends `sort`: `newest` (the default), `oldest`, `title`, `recently_created`, or `recently_updated`.
7. Read the ID, title, `published_at`, and `has_media` of each episode.
8. If `pagination.next_offset` is present, the assistant requests the next page with that offset.

All times are ISO 8601 timestamps. The start of a window must be before or equal to its end. A page holds 25 episodes by default. The assistant can request up to 100 at once with `limit`.

Expected result: you have the IDs of the episodes that you mean.

If no episode agrees with the filters: remove one filter at a time. Check the podcast ID, the time format, the offset of the time zone, and the spelling of the title. Do not start a bulk change before you know why the list is empty.

Next step: read one episode.

## Find your latest work

For questions such as "my latest recordings", "what did I work on today", or "the drafts of this week", the assistant uses `list_recent_work`. One call covers every show.

What you need: a connection with `mcp:podcasts:read`.

1. Ask the assistant for your latest work.
2. The assistant calls `list_recent_work`. It can narrow the list with `types` (`episode`, `recording`, `content_asset`, `show`), `since` and `until`, and `podcast_id`.
3. The list shows the newest change first (`recently_updated`). With `sort: recently_created`, the newest item comes first.
4. If `next_cursor` is present, the assistant sends it as `cursor` to read on.

Expected result: a list of your latest episodes, recordings, content assets, and shows, with the newest first.

Episodes include drafts. A change can also come from Podigee when it processes a recording, not only from you. A Studio recording is not an episode until you make one from it. To read Studio recordings and their transcripts, see [Search and reuse episode content](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/search-and-reuse-episode-content.md).

## Inspect an episode

What you need:

* The episode ID.

Steps:

1. Ask the assistant for the episode. It calls `get_episode` with the episode ID. If the assistant also sends `podcast_id`, Podigee refuses a show that is not the show of the episode.
2. Check the episode ID and the podcast ID.
3. Read the title, subtitle, description, show notes, authors, number, season, and `publication_type`.
4. Read `published_at` and `published_at_local`, and find the state.
5. Read the `media` object, `production_id`, `duration`, and `duration_text`.
6. Read the permalink, the external URL, the cover image, the labels, and the keywords.
7. Read all chapter marks.
8. Read `transcription`: `available`, `segment_count`, and `updated_at`. The text itself comes from `get_episode_transcript`.
9. Keep the values. You compare them after a change.

Expected result: you know the exact episode, its state, and the fields that a change affects.

If the episode cannot be read: check the episode ID and the connected account. An ID of another account is refused with `not_found`.

Next step: change the episode.

## Create a draft episode

Use `create_episode` when you want an episode without a recording, for example to prepare the texts. To publish new media, use `publish_episode`; it can create the episode for you.

What you need:

* A connection with `mcp:podcasts:write` and the permission to create episodes in the show.
* The texts of the episode.

Steps:

1. Tell the assistant the texts of the new episode.
2. The assistant calls `create_episode` with the podcast ID, `attributes`, and `dry_run: true`.
3. Read the preview. `create_episode` returns no `confirm` value.
4. Say yes in a later message.
5. The assistant sends the same request with `idempotency_key`.
6. Keep the episode ID from the result.

To set the cover of the episode from an image file, see [Upload media and cover images](https://docs.podigee.com/documentation/start-here/ai-agents/media-and-publishing/upload-media-and-cover-images.md).

Expected result: Podigee creates one draft episode. `published_at` is empty, and the episode has no recording.

If the response was lost: send the same request with the same idempotency key. Podigee returns the episode that it already created.

Next step: add a recording and publish. See [Encode and publish episodes](https://docs.podigee.com/documentation/start-here/ai-agents/media-and-publishing/encode-and-publish-episodes.md).

## Copy an episode

`duplicate_episode` makes a draft copy of an episode under a new title, in the same show or in another show of the same account. For example, use it to make a version of an episode in another language.

The copy gets the subtitle, description, show notes, keywords, authors, explicit setting, episode type, and chapter marks of the original. It does not get the recording (audio or video), the artwork, or the transcript.

What you need:

* A connection with `mcp:podcasts:write`.
* The permission to create episodes in the show of the original and in the target show.
* The episode ID of the original and the title of the copy (1 to 255 characters).

Steps:

1. Tell the assistant which episode to copy, the new title, and the target show.
2. The assistant calls `duplicate_episode` with `episode_id`, `title`, and `dry_run: true`. For another show, it adds `target_podcast_id`.
3. Read the preview: the target show, the title, and the list of fields in `copies`.
4. Say yes in a later message.
5. The assistant sends the same request with `idempotency_key`. There is no `confirm` value.
6. Keep the episode ID of the copy. The result also has `source_episode_id`, and `recording_copied` and `artwork_copied` with the value `false`.
7. To translate the texts, the assistant previews `update_episode` on the copy with the new texts.

Expected result: a new draft without a recording. You add the recording on the episode page, or the assistant sends it with `create_upload` when it can read the file.

If the copy is refused: a show or episode of another account returns `not_found`. Without the permission to create episodes in both shows, Podigee returns `forbidden`. An empty title returns `validation_error`.

Next step: add the recording, then publish. See [Encode and publish episodes](https://docs.podigee.com/documentation/start-here/ai-agents/media-and-publishing/encode-and-publish-episodes.md).

## Update episode metadata

`update_episode` changes the texts and settings of an episode. It does not publish, schedule, or take an episode offline; use `publish_episode` for that. See [Change the publication state](#change-the-publication-state).

What you need:

* A connection with `mcp:podcasts:write` and the permission to edit episodes in the show.
* The current episode, read with `get_episode`.

Steps:

1. Tell the assistant what to change.
2. The assistant calls `update_episode` with the episode ID, only the changed fields in `attributes`, and `dry_run: true`.
3. Read the values in the preview. For a collection, make sure that the preview contains the complete set.
4. Say yes in a later message.
5. The assistant sends the same request with `idempotency_key` and the `confirm` value.
6. Read the episode again and compare the changed fields with the preview.

You can change these fields:

* The title, subtitle, description, show notes, and authors.
* The cover and social images.
* The number, season, slug, explicit setting, GUID, external URL, and episode type.
* The ad and video settings.
* The keywords, labels, contributors, chapter marks, and transcript segments.

The cover comes from an image address in `cover_image`, or from an image file that the assistant sent with `create_upload`, in `cover_image_upload_id`.

Expected result: only the fields that you sent change.

If the update is refused: correct the field that the error names, and request a new preview. Do not replace a value with a guess. `forbidden` means that you cannot edit episodes of this show.

Next step: read the episode again with `get_episode`.

## Replace chapter marks, keywords, or transcript data

Chapter marks, transcript segments, keywords, labels, and contributor IDs are collections. A collection in a request replaces the complete collection. It does not add items to it.

What you need:

* A connection with `mcp:podcasts:write`. To read the transcript first, also `mcp:content:read`.
* The permission to edit episodes in the show.
* The episode ID.

1. The assistant reads the episode, or the transcript with `get_episode_transcript`.
2. The assistant copies every item that must stay.
3. The assistant adds, changes, or removes the items that you want.
4. Chapter marks use `HH:MM:SS`, with optional milliseconds, for example `00:12:30.500`. Plain seconds are refused.
5. Transcript segments keep `start`, `end`, `text`, and `speaker_id`.
6. The assistant previews `update_episode` with the complete set.
7. Compare the full set in the preview with the current set. Say yes only when no item is missing.
8. After the change, read the episode or the transcript again.

An empty `chapter_marks` list clears the chapter marks. An empty `transcription` list does not change the transcript. A field that is not in the request does not change.

Expected result: the episode has the complete new set, and every item that you kept is still there.

If the preview is not complete: do not confirm it. Read the current set again, merge the change, and request a new preview.

## Update several episodes in one request

`bulk_update_episodes` changes up to 50 episodes of one show with one preview and one confirmation. Each episode has its own attributes, so one call can set the same value everywhere or change each episode differently.

What you need:

* A connection with `mcp:podcasts:write`.
* The IDs of the episodes, found with `list_episodes` filters. All episodes must belong to the same show.

Steps:

1. The assistant builds `updates`: 1 to 50 entries, each with one `episode_id` and its `attributes`. Each episode ID can appear one time only.
2. The assistant calls `bulk_update_episodes` with the podcast ID, `updates`, and `dry_run: true`.
3. Read `episode_count`, and the title, ID, and values of each episode.
4. Say yes in a later message.
5. The assistant sends the same request with `idempotency_key` and the `confirm` value.
6. Read `updated_count`, `failed_count`, and the `status` of each episode in `results`.
7. Correct the failed episodes in a new request with a new preview.

Each episode is updated alone. When one episode fails, the other updates stay. A bulk request cannot set a cover from an uploaded file; use `update_episode` for that.

Expected result: each episode reports `updated` or `failed`, with the error code and message of a failure.

If the preview is refused with `invalid_params`: remove a duplicate episode ID or an episode of another show, or split a list of more than 50.

## Change the publication state

`publish_episode` publishes an existing episode now, schedules it, or takes it offline.

What you need:

* A connection with `mcp:podcasts:write` and `mcp:media:write`. `publish_episode` needs both scopes in every mode, also `draft`.
* The episode, read with `get_episode`. To publish now or to schedule, it needs a recording.
* For a scheduled time: your time zone from `doctor`.

| Target state    | `publication`                                                          |
| --------------- | ---------------------------------------------------------------------- |
| Draft (offline) | `{ "mode": "draft" }`                                                  |
| Publish now     | `{ "mode": "now" }`                                                    |
| Schedule        | `{ "mode": "scheduled", "published_at": "2027-01-12T09:00:00+01:00" }` |

Steps:

1. Tell the assistant the target state, and for a schedule the date and time.
2. The assistant calls `publish_episode` with the podcast ID, the episode ID, `publication`, and `dry_run: true`. For a schedule, it writes `published_at` in ISO 8601 with the offset of your time zone.
3. Read the episode and the plan in the preview. The preview shows the scheduled time in UTC; compare it with your local time.
4. Say yes in a later message.
5. The assistant sends the same request with `idempotency_key` and the `confirm` value.
6. The assistant follows the operation with `get_operation` to a terminal state.
7. Read the episode again. Check `published_at` and `published_at_local`.

To reschedule, do these steps again with the new time and a new idempotency key.

Expected result: the operation ends in the state `succeeded` with this stage:

| Mode        | Stage       |
| ----------- | ----------- |
| `draft`     | `encoded`   |
| `now`       | `published` |
| `scheduled` | `scheduled` |

The operation can wait while Podigee processes the recording. While `continues_automatically` is `true`, you can leave. See [Follow and recover long-running operations](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/follow-and-recover-long-running-operations.md).

If the state does not change:

* `insufficient_scope`: the connection does not have a scope that `publish_episode` needs. Add it, then request a new preview. See [Choose the account and permissions](https://docs.podigee.com/documentation/start-here/ai-agents/connect-and-authorize/choose-the-account-and-permissions.md).
* A scheduled time in the past is refused. Correct the time or the offset, or use the mode `now`.
* The operation failed or stalled: follow its `recovery` action. See [Follow and recover long-running operations](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/follow-and-recover-long-running-operations.md).

Podcast directories refresh their copies on their own schedule. Check Podigee first, then the directories. See [Distribute a podcast](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/distribute-a-podcast.md).

## Take an episode offline without deleting it

To remove an episode from the feed and keep it, change its state to draft.

What you need: a connection with `mcp:podcasts:write` and `mcp:media:write`, and the right to publish on the show. `publish_episode` needs both scopes also for `draft`.

1. Read the episode and check its ID and state.
2. Follow [Change the publication state](#change-the-publication-state) with `{ "mode": "draft" }`.
3. After the operation ends with the stage `encoded`, read the episode. `published_at` is empty.

The episode, its recording, and its texts stay. You can publish it again later. Do not delete an episode only to take it offline.

If the episode stays live: read the operation. For `insufficient_scope` or a missing right to publish, see [Change the publication state](#change-the-publication-state). For a failed operation, follow its `recovery` action.

## Delete an episode permanently

`delete_episode` removes an episode permanently and starts its removal from connected platforms. There is no restore tool. Delete an episode only when a draft cannot meet your goal.

What you need:

* A connection with `mcp:podcasts:write` and the permission to delete episodes in the show.
* The episode ID, the title, and the state, read with `get_episode`.

Steps:

1. Tell the assistant which episode to delete.
2. The assistant calls `delete_episode` with the episode ID and `dry_run: true`.
3. Read the target in the preview. Make sure that the draft state is not enough.
4. Say yes in a later message.
5. The assistant sends `delete_episode` with the `confirm` value. Podigee refuses a confirmation that arrives less than 15 seconds after the preview, with `confirmation_too_early`; nothing is deleted then. See [Preview and confirm changes](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/preview-and-confirm-changes.md#wait-before-you-confirm-a-deletion).
6. Check that the result has `deleted: true` and the correct episode ID.

Expected result: Podigee removes the episode. `get_episode` with its ID returns `not_found`.

If the deletion is refused: do not try another ID. Check the access, the permission, and the age of the `confirm` value. Request a new preview when necessary.

Connected platforms remove the episode on their own schedule. Check the important platforms one by one.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/documentation/start-here/ai-agents/podcasts-and-episodes/manage-episodes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
