---
title: "Write a clone-format script from a pattern or a mix"
method: POST
path: "/api/v1/video-library/generate/breakdown"
tags: ["videoLibrary"]
---

# Write a clone-format script from a pattern or a mix

`POST /api/v1/video-library/generate/breakdown`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/video-library/generate/breakdown`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/brandbooster/apis/brandbooster-api/docs/api/v1/video-library/generate/breakdown/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- GenerateBreakdownDTO
  - `pattern_id` string, nullable
  - `footage_rules` FootageRulesDTO: How library footage is picked for each beat of a new video (asked when creating one).
    - `source` 'prefer_library' | 'fallback' | 'library_only' | 'never'
    - `roll` 'a_first' | 'b_first' | 'mix'
    - `generate_missing` boolean
    - `threshold` number
    - `character` 'strict' | 'loose'
    - `instructions` string
  - `mix` MixDTO: Which library video supplies each part of the new video.
    - `hook_from` string, required
    - `style_from` string, required
    - `structure_from` string, required
  - `product_url` string, nullable
  - `footage_item_ids` string[]
  - `duration_seconds` integer
  - `brief` string, nullable
  - `language` string
  - `domain_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-11-10** `f01e0665e1e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brandbooster/apis/brandbooster-api/changes/api/v1/video-library/generate/breakdown/post.md)

---

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