---
title: "Add Episode"
method: POST
path: "/api/v1/storyboard-episodes/add"
tags: ["Video: Storyboard"]
---

# Add Episode

`POST /api/v1/storyboard-episodes/add`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/api/v1/storyboard-episodes/add`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

Add a new episode at a specific position in a project.

## Query parameters

- `team_id` integer, nullable

## Headers

- `x-api-key` string
- `x-embed-code` string, nullable
- `x-agent-embed-code` string, nullable
- `x-whitelabel-studio` string, nullable
- `authorization` string, nullable

## Request body

- AddEpisodeRequest
  - `project_id` integer, required: ID of the project to add the episode to
  - `episode_index` integer, required: Position to insert the episode (1-based index)
  - `description` string, nullable: Optional text description of the desired episode
  - `target_duration` number: Target duration in minutes
  - `grid_mode` boolean: Whether to use grid mode for shot generation
  - `webhook_url` string, uri, nullable

## Response `200`

Successful Response

- EpisodeOperationResponse
  - `request_id` string, required
  - `episode_id` integer, nullable
  - `project_id` integer, required
  - `status` string
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/muapi/apis/muapi-api.md) · [All operations](https://skmtc.dev/muapi/apis/muapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muapi/apis/muapi-api/revisions/e4b7374381e5?raw)
