The blank native component source
The blank native (version 4) component source every new component starts from. Rename it by setting componentId and the template root's data-composition-id together, then create it with create_component.
API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/components/blank-source"{ "version": 4, "componentId": "blank-component", "template": "<template><div id=\"root\" data-composition-id=\"blank-component\" data-width=\"1920\" data-height=\"1080\" data-no-timeline data-composition-variables='[{\"id\":\"background\",\"type\":\"color\",\"label\":\"Background\",\"default\":\"#101014\"}]'><div data-cf-scene></div></div><script>\nconst { h, MediaTileScene } = __cfScene;\nfunction Blank({ params }) {\n return h(MediaTileScene, { streams: {}, tiles: [], background: params.background ?? '#101014' });\n}\n__cfScene.mount({ root: document.getElementById('root'), component: Blank, variables: __hyperframes.getVariables() });\n</script></template>", "manifest": { "version": 4, "runtime": "hyperframes", "hfContract": 1, "kind": "scene", "assets": {}, "graphics": { "api": "webgl2", "required": true, "accelerationPreference": "software-allowed" }, "alphaPolicy": "allows-opaque" }, "definition": { "inputSchema": { "type": "object", "additionalProperties": false, "properties": { "background": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$", "default": "#101014", "title": "Background" } } }, "defaults": {}, "brandBindings": [], "timing": { "defaultDuration": { "frames": 90, "fps": 30 } }, "capabilities": [ { "kind": "clip" } ] }}{ "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 } }}Author (create) a component POST
Add a custom motion-graphics component to this account's library from native source, ready to place in compositions. Start from GET /v1/components/blank-source; an id that already exists returns 409, so update it with PUT.
Get a component entry GET
Read a component's metadata and prop schema, whether it is installed in this account or built in. Call it before placing a graphic on the timeline to see which inputs it accepts.