List a project's compositions
List every composition in a project with its format, ETag, and whether it is the active one. Call it to choose which timeline to edit, preview, or render when a project holds several videos or aspect ratios.
API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/projects/string/compositions"{ "data": [ { "compositionId": "string", "format": { "aspectRatio": "16:9", "fps": 24, "resolution": "hd", "platform": "string" }, "etag": "string", "isActive": true, "updatedAt": 0, "sceneCount": 0 } ]}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "x402Version": 2, "accepts": [ {} ], "error": "string"}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "contract": "string", "contractVersion": "string", "details": { "property1": null, "property2": null } }}Get a project's composition GET
Read the editable timeline of a video project, with its ETag in the response header for guarded writes. Call it before editing or rendering; pass compositionId or session_id to read a specific composition or a compose session's scratch copy.
Create a new composition (video) in a project POST
Add an empty composition to a project, for a second video or another format in the same project. Returns its id and ETag for the first edit; format defaults to the project's, and a project's first composition becomes the active one.