---
title: "Generate Project Scripts"
method: POST
path: "/api/v1/storyboard-projects/{id}/generate-scripts"
tags: ["Video: Storyboard"]
---

# Generate Project Scripts

`POST /api/v1/storyboard-projects/{id}/generate-scripts`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/api/v1/storyboard-projects/{id}/generate-scripts`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

Stage 2: Generate full scripts for all episodes in a project.

## Path parameters

- `id` integer, required

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

- StoryboardStepRequest
  - `webhook_url` string, nullable
  - `sync` boolean

## Response `200`

Successful Response

- StoryboardTaskResponse
  - `storyboard_id` integer, nullable
  - `project_id` integer, nullable
  - `request_id` string, nullable
  - `status` string

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