> 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/api-reference/rest-api/podcasts-and-episodes.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# REST API podcasts and episodes

Endpoints, parameters, fields, and errors of the podcasts and episodes resources in the REST API v1.

Use this reference when you need the exact endpoints and parameters for podcasts and episodes. Paths are relative to `https://app.podigee.com/api/v1`.

## Podcasts

| Method   | Path                     | Purpose                                       | Notable parameters                                                                                                  | Response notes                                                                                             |
| -------- | ------------------------ | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `GET`    | `/podcasts`              | List the podcasts that the credential can see | `fields_filter[]`, `collaborator` (default `true`), `partner` (default `true`), `filter` with the value `analytics` | No pagination.                                                                                             |
| `GET`    | `/podcasts/{podcast_id}` | Read one podcast                              | none                                                                                                                | Returns `304` when the `ETag` did not change.                                                              |
| `POST`   | `/podcasts`              | Create a podcast                              | Create fields, see below                                                                                            | `422` with the validation message when a field is invalid. Plan limits on podcasts are enforced on create. |
| `PUT`    | `/podcasts/{podcast_id}` | Update a podcast                              | Update fields, see below                                                                                            | `422` with the validation message.                                                                         |
| `DELETE` | `/podcasts/{podcast_id}` | Delete a podcast                              | none                                                                                                                | `422` with a message when the podcast cannot be deleted.                                                   |

### Podcast fields

Create fields: `analytics_code`, `authors`, `category_id`, `category_ids[]`, `copyright_text`, `cover_image`, `create_stats_reports`, `description`, `domain`, `explicit`, `external`, `external_site_url`, `facebook`, `feed_items`, `flattr_id`, `keywords[]`, `language`, `owner_email`, `publication_type`, `quality`, `subdomain`, `subtitle`, `title`, `transcriptions_enabled`, `twitter`, `website_url`.

Update fields: the create fields without `external`, plus `published_at`.

The API stores a `category_id` value as `category_ids`. The API stores `analytics_code`, `domain`, and `external_site_url` in the website settings of the podcast. The response of a podcast includes its feeds and the `podcast_namespace_guid`.

The fields `domain` and `external_site_url` depend on the plan of the podcast owner: `domain` needs custom domains, and `external_site_url` needs external websites. The API checks only a change. A request that clears the value, or that sends the stored value again, is accepted.

An update that contains `published_at` needs the permission to publish the podcast. A user with the show role **Contributor** does not have this permission. Without the permission, the response is `422` with `Not permitted`.

### Podcast errors

| Status | Message                                                                                                                                                                                                                                        |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `404`  | `The podcast with id <id> could not be found.`                                                                                                                                                                                                 |
| `422`  | The validation message of the failed create, update, or delete.                                                                                                                                                                                |
| `422`  | A message that contains `Use of a custom domain is not available with your plan.` or `Use of external websites is not available with your plan.` The plan of the podcast owner does not include the website option of the field that you sent. |
| `422`  | A message that contains `Not permitted`. The update contains `published_at`, and the user of the credential may not publish the podcast.                                                                                                       |

## Episodes

| Method   | Path                     | Purpose                 | Notable parameters            | Response notes                                                                                             |
| -------- | ------------------------ | ----------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `GET`    | `/episodes`              | List or search episodes | See the list parameters below | Newest episodes first. Offset pagination; no total count.                                                  |
| `GET`    | `/episodes/{episode_id}` | Read one episode        | none                          |                                                                                                            |
| `POST`   | `/episodes`              | Create an episode       | Create fields, see below      | `422` with the validation message when a field is invalid. Plan limits on episodes are enforced on create. |
| `PUT`    | `/episodes/{episode_id}` | Update an episode       | Update fields, see below      | `422` with the validation message.                                                                         |
| `DELETE` | `/episodes/{episode_id}` | Delete an episode       | none                          | `422` with the organization permission message when the credential may not delete the episode.             |

### Episode list parameters

| Parameter           | Meaning                                           | Values and limits                                               |
| ------------------- | ------------------------------------------------- | --------------------------------------------------------------- |
| `podcast_id`        | One podcast                                       | Podcast id                                                      |
| `podcast_ids[]`     | Several podcasts                                  | Podcast ids                                                     |
| `limit_per_podcast` | Episodes per podcast when `podcast_ids[]` is used | Maximum `10`                                                    |
| `limit`             | Episodes per page                                 | Default `50`, maximum `50`                                      |
| `offset`            | Episodes to skip                                  | Number                                                          |
| `published`         | Only published episodes                           | `true`                                                          |
| `publication_type`  | Only one episode type                             | `full`, `trailer`, or `bonus`. Omit the parameter for all types |
| `sort_by`           | Sort field                                        | `number`, `title`, `updated_at`, `created_at`                   |
| `sort_direction`    | Sort direction                                    | `asc` (default) or `desc`                                       |
| `search`            | Title search                                      | Text; matches the title only                                    |
| `fields_filter[]`   | Returned fields                                   | Field names. `id` and `title` are always included               |

### Episode fields

Create fields: `podcast_id`, `title`, `subtitle`, `description`, `show_notes`, `show_notes_md`, `authors`, `cover_image`, `facebook_image`, `number`, `season`, `slug`, `explicit`, `guid`, `external_url`, `publication_type`, `bypass_ad_insertion`, `ad_provider`, `intro_outro_include`, `video_content_rating`, `video_thumbnail_source`, `keywords[]`, `labels[]`, `contributor_ids[]`, `transcription[]` with `start`, `end`, `text`, and `speaker_id`, and `chapter_marks[]` with `title`, `start_time`, `url`, and `image`.

Update fields: the create fields without `podcast_id`, plus `published_at`.

A create request ignores `published_at`. To publish or schedule an episode, send `published_at` in an update. See [Publish, schedule, and unpublish](#publish-schedule-and-unpublish).

### Show notes

An episode keeps its show notes in two fields. The podcast website and the feeds show the HTML in `show_notes`. The Podigee editor opens the Markdown in `show_notes_md`.

The REST API saves each field as you send it. It does not make one field from the other. To publish show notes, send the HTML in `show_notes`. Send the Markdown source in `show_notes_md` in the same request, so that the editor shows the same text. An episode that has only `show_notes_md` shows no show notes on the website and in the feeds.

### Episode defaults and identifiers

| Field    | Behavior                                                                                                                                                                                                         |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `title`  | Without a title, the API creates the episode with the title `New Episode`.                                                                                                                                       |
| `number` | Without a number, the API uses the highest number of the same season and episode type, plus one. With a number that an episode of the same podcast, season, and episode type already has, the response is `422`. |
| `guid`   | Without a GUID, Podigee creates one. Podcast apps use the GUID to recognize an episode. Do not change the GUID of a published episode.                                                                           |
| `id`     | Podigee assigns the `id`. Store it in your system together with your own identifier of the episode. Every later request needs it.                                                                                |

The API does not check if an equal episode exists. Two create requests with the same title create two episodes. See [REST API retries and timeouts](https://docs.podigee.com/api-reference/rest-api/retries-and-timeouts.md).

### Cover images

The fields `cover_image` and `facebook_image` accept the URL of an image as text. The URL must be public, or it must be the `file_url` of an upload. See [REST API media uploads and encoding](https://docs.podigee.com/api-reference/rest-api/media-uploads-and-encoding.md).

If Podigee cannot load the image from the URL, the update still answers `200`, and the episode has no cover of its own afterwards. After each request that sets a cover, read `cover_image` in the response. If it is `null`, send the request again with a URL that Podigee can load.

### Read episodes in pages

The episode list returns at most 50 episodes for each request and has no total count.

1. Send `sort_by=updated_at` and `sort_direction=desc`, with `limit=50` and `offset=0`.
2. Add 50 to `offset` for each next page.
3. Stop when a page contains an episode that your system already knows in the same state, or when a page has fewer than 50 episodes.

Do not read all pages of a large podcast on each run. A request with a high `offset` is slow, and each page counts against the rate limit.

The fields `bypass_ad_insertion` and `ad_provider` control the ad insertion of the episode. An update with one of these fields needs the permission to edit ad markers. The update must contain only that field.

### Publish, schedule, and unpublish

Send `published_at` in `PUT /episodes/{episode_id}`. Use an ISO 8601 time, for example `2026-11-02T06:00:00Z`.

| Value of `published_at`                 | Result                                                       |
| --------------------------------------- | ------------------------------------------------------------ |
| A time in the past, or the current time | The episode is published.                                    |
| A time in the future                    | The episode is scheduled. Podigee publishes it at that time. |
| `null`                                  | The episode is not published.                                |

Send `published_at` after the production of the episode has the state `encoded`. Before that, the episode has no encoded media for the feed. See [REST API media uploads and encoding](https://docs.podigee.com/api-reference/rest-api/media-uploads-and-encoding.md#wait-for-encoding).

Podcast directories and apps read the feed on their own schedule. A published episode can appear there later than in the feed.

### Permission to publish

A request that contains `published_at` needs the permission to publish the episode. This also applies when the value is `null`. These users do not have the permission:

* A user with the show role **Contributor**. A contributor can create and edit episodes, but cannot publish, schedule, or unpublish them.
* An organization member without the organization permission to publish episodes. The Podigee workspace calls it **Publish and unpublish episodes**. The classic view calls it **Publish / un-publish episodes**.
* A user whose subscription is paused, has an expired trial, or has an overdue payment after the warning period. For a show editor, the subscription of the show owner decides.

### Episode errors

| Status | Message                                                                                                                                                                                       |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `404`  | `The episode with id <id> could not be found.`                                                                                                                                                |
| `409`  | The transcript or the recording of the episode changed while the API wrote the transcript. The API saves nothing from the request. Read the episode again, then repeat the update.            |
| `422`  | The validation message of the failed create, update, or delete.                                                                                                                               |
| `422`  | The request contains `published_at`, and the user of the credential may not publish the episode. The message does not explain the cause. See [Permission to publish](#permission-to-publish). |
| `422`  | A message that contains `You've reached the episode publish limit`. The request contains `published_at`, and the plan has no episode publications left in the current billing period.         |

## Related pages

* [Publish an episode from your own system](https://docs.podigee.com/api-reference/rest-api/publish-an-episode-from-your-own-system.md) shows the complete sequence.
* [REST API media uploads and encoding](https://docs.podigee.com/api-reference/rest-api/media-uploads-and-encoding.md) attaches audio to an episode.
* [REST API episode content](https://docs.podigee.com/api-reference/rest-api/episode-content.md) manages chapter marks, contributors, and more.
* [REST API authentication and errors](https://docs.podigee.com/api-reference/rest-api/authentication-and-errors.md)


---

# 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/api-reference/rest-api/podcasts-and-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.
