---
section: json-syntax
source: api/endpoints/00_common/json2video-api.json
last_reviewed: 2026-05-12
---

# JSON syntax

This section documents every field accepted in the Movie JSON submitted to [`POST /v2/movies`](@/reference/api-endpoints/movies-create).

## Top-level structures

- [Movie](@/reference/json-syntax/movie) — the root object.
- [Scene](@/reference/json-syntax/scene) — one segment of the movie's timeline.
- [Element](@/reference/json-syntax/element) — the renderable units that sit inside scenes.

## Elements

The element type is set by the `type` discriminator. Documented types:

- [`image`](@/reference/json-syntax/element/image) — static image.
- [`video`](@/reference/json-syntax/element/video) — video clip.
- [`text`](@/reference/json-syntax/element/text) — styled text overlay.
- [`html`](@/reference/json-syntax/element/html) — HTML snippet or full webpage capture.
- [`component`](@/reference/json-syntax/element/component) — animated component from the library.
- [`audio`](@/reference/json-syntax/element/audio) — audio track.
- [`voice`](@/reference/json-syntax/element/voice) — text-to-speech voiceover.
- [`audiogram`](@/reference/json-syntax/element/audiogram) — audio waveform visualisation.
- [`subtitles`](@/reference/json-syntax/element/subtitles) — automatic or manual subtitles.

> The `template` element type is deprecated. Use the [`template` movie-level field](@/reference/json-syntax/movie#template) to reference a saved template instead.

## Conventions

- Property names use kebab-case where they predate JSON Schema strict naming (`client-data`, `fade-in`, `pan-distance`, …). Other names are flat camelCase or simple identifiers.
- Variable interpolation: `{{name}}` substitutes the value of a variable found in the nearest enclosing scope (element → scene → movie).
- Boolean defaults: every `cache` flag defaults to `true`. Set it to `false` to bypass the render cache.
- Time values: all durations and offsets are in seconds; supports decimals.
