Skip to main content
A Template is a reusable creative blueprint saved directly from a finalized project Generation. Instead of repeating layout, typography, pacing, and animation rules in every prompt, save a generation once via POST /templates and pass template_ids: ["TEMPLATE_ID"] on future Projects or follow-up messages. Because POST /templates saves straight from generation_id, you do not need to render an MP4 first—all compositions in that generation are captured automatically, and later edits to the source project never mutate the template.
Required scopes: motion:templates:read to list or read saved templates; motion:templates:write to create, update, or delete templates. Creating a template from a project generation (POST /templates) also requires motion:projects:read.

Template modes

  • layout_and_style (default) — Preserves both scene structure/layout and visual styling (typography, palette, motion language). Ideal for recurring formats like product launches, daily news clips, or ad series.
  • style — Transfers typography, color palette, and motion feel while letting Motion design new layouts for each brief.

Safe retries & concurrency control

  • Idempotent creation: Pass an Idempotency-Key header on POST /templates so retries return the same template instead of creating duplicates.
  • Optimistic locking: PATCH /templates/{slug} requires the template’s current UUID version_id; concurrent edits fail cleanly with 409.

The Template object

string
Stable template identifier. Pass as {slug} on GET, PATCH, and DELETE, and inside template_ids on POST /projects or POST /projects/{id}/messages.
enum
Media kind of the template: video or image.
enum
layout_and_style or style—determines whether new projects inherit both structure and look or visual style only.
string | null
UUID of the immutable saved Generation this template was created from.
string | null
UUID optimistic concurrency token. Pass this exact version_id when calling PATCH /templates/{slug}.
string
Reusable guidance explaining which elements to swap (copy, screenshots, data) and which visual rules to keep consistent.
enum
preparing, ready, or failed—tracks preparation of the template’s preview_url and thumbnail_url.
string | null
Optional default Brand kit linked to this template.

Endpoints