Create a session
Group existing media into a named session by role, with one 'audio' file and any other role treated as video. This is the step before POST /v1/sessions/{id}/mux-job, which merges the audio onto each video.
API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
POST /sessions body.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/sessions" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "files": [ { "mediaId": "string", "role": "string" } ] }'{ "id": "string", "name": "string", "files": [ { "mediaId": "string", "role": "string", "status": "string" } ], "mux": { "status": "string", "jobId": "string", "muxedItems": { "property1": "string", "property2": "string" }, "error": "string", "startedAt": "string", "completedAt": "string" }, "createdAt": "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 } }}{ "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 } }}{ "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 } }}Cancel one mux attempt while retaining the session POST
Stop the named audio-onto-video mux attempt and keep the session so the job can be retried. Send its jobId; a job that is no longer current returns 409.
Delete a session DELETE
Delete a session, first cancelling any mux still running for it. Refused while a project composition references the session, so remove those references first; call it when the grouping is no longer needed.