Render a composition
Renders one HTML document you wrote (a Hyperframes composition) and
spends credits equal to its data-duration. Mosio checks it first:
only local assets, a sized root element with a duration, and no
Hyperframes lint errors. Google Fonts links and GSAP from a CDN are
allowed; Mosio stores local copies. Registry components can be loaded
with data-composition-src="compositions/components/<name>.html".
See the composition guide for the rules. Needs the videos:create
permission.
Every video belongs to a project (project_id in the response): its
source, which opens in Studio in the dashboard, and its renders. Send
project_id with html to render a new version of that video, or
project_id alone to render it as it is now, including edits made
in Studio. A new version is refused with project_edited when the
video changed after base_version.
The brand's logo is available at assets/brand/logo.<ext> (its exact
path is in the brand). Name the brand with brand_id when the
workspace has more than one; a new version of a video uses the brand
it was made for.
https://app.mosio.me/v1/compositionsAuthorization
Request bodyJSONrequired
Returns
200
A video with this idempotency_key and the same body already exists; it is returned unchanged.
201
The video was created and queued.