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

# REST API

Overview of the Podigee hosting REST API v1, with the first request, errors, and endpoint groups.

Use the REST API v1 when you build your own integration with Podigee hosting. The API is available at `https://app.podigee.com/api/v1` and uses JSON for every request and response.

## Start here

* [Make your first API request](https://docs.podigee.com/api-reference/rest-api/make-your-first-api-request.md): get a credential, list your podcasts, and open the interactive API docs.
* [REST API authentication and errors](https://docs.podigee.com/api-reference/rest-api/authentication-and-errors.md): credentials, the request body, the error body, rate limits, and the request time limit.
* [Decide which system leads](https://docs.podigee.com/api-reference/rest-api/decide-which-system-leads.md): the three integration models, and why each field needs one system that holds the original.
* [Publish an episode from your own system](https://docs.podigee.com/api-reference/rest-api/publish-an-episode-from-your-own-system.md): the complete sequence from a new episode to a published episode.
* [REST API retries and timeouts](https://docs.podigee.com/api-reference/rest-api/retries-and-timeouts.md): the requests that are safe to repeat, and the recovery after a request without a response.

## Endpoint groups

* [REST API podcasts and episodes](https://docs.podigee.com/api-reference/rest-api/podcasts-and-episodes.md)
* [REST API media uploads and encoding](https://docs.podigee.com/api-reference/rest-api/media-uploads-and-encoding.md)
* [REST API episode content](https://docs.podigee.com/api-reference/rest-api/episode-content.md): chapter marks, contributors, text snippets, intro and outro audio, transcript imports
* [REST API listeners](https://docs.podigee.com/api-reference/rest-api/listeners.md): private feed listeners
* [REST API analytics](https://docs.podigee.com/api-reference/rest-api/analytics.md)
* [REST API account](https://docs.podigee.com/api-reference/rest-api/account.md): the `me` endpoint

## Detect changes

Podigee does not call your system when something changes. Your system reads the state.

| You want to know                    | Read                                                                |
| ----------------------------------- | ------------------------------------------------------------------- |
| Encoding is complete                | `GET /productions/{production_id}` until the state is `encoded`     |
| An episode is published             | `GET /episodes/{episode_id}` and the field `published_at`           |
| Episodes changed in Podigee         | `GET /episodes` with `sort_by=updated_at` and `sort_direction=desc` |
| A new episode is in the public feed | The RSS feed, or its WebSub and Podping announcements               |

## Conventions used on these pages

* Paths are relative to `https://app.podigee.com/api/v1`.
* The API is available on Scale and above, or on an older plan that includes it. The analytics endpoints have their own gate. See [REST API analytics](https://docs.podigee.com/api-reference/rest-api/analytics.md).
* Send the fields of a write request as one flat JSON object with the header `Content-Type: application/json`.
* Podigee stops a request that runs longer than 35 seconds. A stopped request can still have changed data.
* The REST API has no webhooks. Poll the endpoints to detect changes. Podigee also announces each new episode of the public Really Simple Syndication (RSS) feed through WebSub and Podping.
* The REST API has no separate test environment. Use a test podcast for the first requests of a new integration.
* The interactive API docs at `https://app.podigee.com/api-docs` show the request and response schemas of every published endpoint.


---

# 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.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.
