Media and permissions
Cut references assets in media libraries rather than putting external links directly on the timeline. Import first, then edit with {libraryId, assetId}.
New uploads, File/HTTPS imports and Cut imports/exports default to organization-private type=authenticated; originals and all derivatives require authorization. Only explicit Media type=upload permits anonymous reads. private is unsupported. Overwriting without type preserves the current type; rename source lookup still defaults to upload.
Import from File or URL
praxis.cut.projects.media.import accepts exactly one source: url, data_uri, or file_id. URLs must be publicly fetchable; File sources use existing platform file IDs. Select a writable destination with binding, or omit it for the default upload library. Set an optional display_name. Import returns library_id and asset_id; use camelCase inside scripts.
Existing library assets need no reimport: bind their library. Use read for source-only libraries and read_write for imports and exports. Exactly one writable binding must have default_upload: true. A binding does not expand the calling organization’s library permissions. Remove referencing clips before detaching a library.
Read authenticated assets
Originals and transformations of authenticated assets require a signature or delivery token. When retrieving a Media resource, use its server-signed secure_url. The signature is tied to its delivery path: do not edit the URL path to create a thumbnail. For your own transformations, issue a library delivery token; see the Media quickstart for issuing one.
In Cut, pass the bound asset reference rather than a signed URL to Insert. Previews read authorized media: images use the authorized original URL, and video frames use frame URLs issued by the media service. Exports read authorized sources and freeze their current versions. Do not rewrite authenticated URLs to public paths or supply signing secrets to a renderer.
Delivery tokens default to 900 seconds; private frame links last 300 seconds. Resolve fresh links from references after expiry. Never save tokens or token-bearing URLs or put them in logs. Persist library_id / asset_id / version / representation. Links are bearer credentials: share only with intended readers. Current original secure_url values may still contain permanent path signatures; persist references instead of those links too.
Recover unavailable media
Reads follow overwrites. If a replacement video is shorter, clips beyond its end become offline. Restore deleted media, missing bindings, or access before exporting. A preview warning alone does not establish a damaged file. Check bindings and access, retrieve the asset and a fresh frame, then retry export.