Create a canvas version

A canvas version is a named cut on a shared video pool. Creating the canvas does not create v1. You add the first cut after create, then later cuts on the same pool. That is different from another take of a generate route — see New service versions.

Why a separate step

POST /v1/canvases writes videoAssets[] (and a name). It does not open a cut. Generate, import, and active-version calls need a canvasVersionId plus a required canvasVideoId from the pool. An empty pool is allowed — you can still create a cut, then add videos with PATCH /v1/canvases/:id.

The cut does not pin a video. Same pool, many cuts. Reference fields: Canvases → Create a canvas version.

1. First cut after canvas create

Body is optional label only (the snippet sends v1 so the name is visible; omit it and the API assigns v1, v2, …). Do not send videoSource, videoSources, sourceLanguage, canvasVideoId, or activeCanvasVideoId — those return 422.

POST /v1/canvases/{canvasId}/versions
curl -X POST "{BASE_URL}/v1/canvases/{CANVAS_ID}/versions" \
  -H "Authorization: Bearer {PROJECT_KEY}" \
  -H "Content-Type: application/json" \
-d '{ "label": "v1" }'

2. Another cut on the same pool

Same route. New canvasVersionId, new versionNumber. Artifacts on v1 stay on v1. Run generate again on the new id when you want a fresh iteration of the whole cut.

POST /v1/canvases/{canvasId}/versions
curl -X POST "{BASE_URL}/v1/canvases/{CANVAS_ID}/versions" \
  -H "Authorization: Bearer {PROJECT_KEY}" \
  -H "Content-Type: application/json" \
-d '{ "label": "cut-2" }'

3. List cuts

GET /v1/canvases/:canvasId/versions is the lightweight list (no nested artifacts). GET /v1/canvases/:canvasId returns the full tree — use that when you need versions[].artifacts.

GET /v1/canvases/{canvasId}/versions
curl "{BASE_URL}/v1/canvases/{CANVAS_ID}/versions" \
  -H "Authorization: Bearer {PROJECT_KEY}"

# Lightweight list (no artifacts). For the full tree:
# curl "{BASE_URL}/v1/canvases/{CANVAS_ID}" -H "Authorization: Bearer {PROJECT_KEY}"

4. Rename a cut

PATCH /v1/canvases/:canvasId/versions/:canvasVersionId accepts label only. It does not change the pool or artifacts. Canvases → Update a canvas version.

PATCH /v1/canvases/{canvasId}/versions/{canvasVersionId}
curl -X PATCH "{BASE_URL}/v1/canvases/{CANVAS_ID}/versions/{CANVAS_VERSION_ID}" \
  -H "Authorization: Bearer {PROJECT_KEY}" \
  -H "Content-Type: application/json" \
-d '{ "label": "cut-2-final" }'

Cut vs another service take

  • New canvas version — a new named cut. Same videos. Service results start empty on that cut.
  • New service version — same cut and canvasVideoId. POST the generate route again. Omit overwrite to add another result; overwrite: true replaces the active one. Map: New service versions.