API referenceScenes

Merge two adjacent scenes

The earlier scene keeps its composition and takes the summed length; the later is removed.

Across two adjacent blocks the second block's text is joined onto the first (a voiced block then needs its voice again). Free.

POST
/scenes/merge

Authorization

bearerAuth
AuthorizationBearer <token>

Typecut API key. Generate one in app.typecut.ai → Settings → API keys. Send as Authorization: Bearer tc_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/scenes/merge" \  -H "Content-Type: application/json" \  -d '{    "scene_ids": [      "551aba97-dff5-4325-9508-1b33246eb8f2"    ]  }'
{
  "data": {
    "project_id": "string",
    "changeset_id": "string",
    "dry_run": true,
    "summary": "string",
    "refs": {
      "property1": "string",
      "property2": "string"
    },
    "needs_resolve": {
      "chapters": [
        "string"
      ],
      "scenes": 0
    },
    "new_scene_id": "string"
  }
}
{
  "data": {
    "project_id": "string",
    "changeset_id": "string",
    "dry_run": true,
    "summary": "string",
    "refs": {
      "property1": "string",
      "property2": "string"
    },
    "needs_resolve": {
      "chapters": [
        "string"
      ],
      "scenes": 0
    },
    "new_scene_id": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}