> 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/transfer-media-encode-and-publish/create-an-episode-production-from-uploaded-media.md).

# Create an episode production from uploaded media

Attach one completed Podigee upload to an episode and create its media production.

Create a production after the upload session reaches `completed`.

## Before you start

* Keep the episode ID and completed upload ID.
* Confirm that both belong to the same connected user, account, and tenant.
* Confirm edit access to the episode.
* Prepare one stable idempotency key.

## Create the production

1. Preview `create_production` with the episode ID, upload ID, idempotency key, and `dry_run: true`.
2. Review the exact episode and upload references.
3. Confirm the preview with `dry_run: false`, the same idempotency key, and the `confirm` value from the preview.
4. Keep the returned production ID.
5. Read the production and confirm its episode ID.

A completed upload can attach to only one production. An idempotent retry for the same episode is allowed.

## Expected result

Podigee creates one production for the intended episode and returns its current state and status.

## If creation is rejected

Confirm that the upload is completed, unexpired, unused by another production, and owned by the same user and account as the episode.

## Next step

[Start, stop, and monitor encoding](/documentation/start-here/ai-agents/transfer-media-encode-and-publish/start-stop-and-monitor-encoding.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 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.podigee.com/documentation/start-here/ai-agents/transfer-media-encode-and-publish/create-an-episode-production-from-uploaded-media.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.
