chat_url) where you prompt Motion to create and revise videos and images across one or more turns.
Every project is built around four linked concepts:
- Project (
id) — Persistent workspace holding settings (effort,fast_mode,connectors,export_formats), transcript messages, saved generations, and export jobs. - Turn (
turn_id) — One execution cycle started byPOST /projectsorPOST /projects/{id}/messages(including any mid-run steering attached while that turn is running). - Generation (
generation_id) — An immutable saved snapshot of the project’s authored compositions committed when a turn finalizes—no MP4 encode required. Ordered newest-first (generations[0]is the latest) and used as the stable input to Exports, Templates, and Social posting. - Composition (
compositions[].id) — One individual video or image output inside a generation (for examplec72e9f10-4b3a-4d8e-a123-567890abcdef:launch-film).
Required scopes:
motion:projects:read to list or read projects, turns, and messages; motion:projects:write to create projects, send messages, or stop active work. (motion:sessions:read and motion:sessions:write remain accepted as aliases.)Typical lifecycle
- Create: Call
POST /projectswithpromptand optionalattachments,template_ids,brand_kit_ids,connectors,effort,fast_mode, andexport_formats. Saveproject_idandturn_id. - Poll (or steer): Poll
GET /projects/{id}every 5–10 seconds untilstatusis terminal (completed,failed,cancelled,awaiting_user_input, orawaiting_credits). Whilerunning, send steering viaPOST /projects/{id}/messagesor cancel viaPOST /projects/{id}/stop. - Use outputs: Once
completed, readgenerations[0]for the savedgeneration_id,compositions[], and attributionsources[], and pollexports[](or trigger on-demand renders via Exports). - Iterate: Send follow-up edits with
POST /projects/{id}/messages. Each finalized turn commits a new immutable generation while keeping earlier generations available for re-export or template creation.
The Project object
Unique UUID for the project. Pass as
{id} on all project, turn, message, stop, and export endpoints.Lifecycle state of the latest turn:
queued, running, completed, failed, cancelled, awaiting_user_input, or awaiting_credits. completed means the agent finished authoring and committed a generation; linked exports may still be rendering asynchronously.Live customer-facing progress for the current turn:
stage (queued, starting, planning, gathering_media, authoring, reviewing, finalizing, rendering, completed), monotonic percent (0–100), and a sanitized one-line message.UUID of the most recent turn on this project. Matches
turn_id across messages[], generations[], exports[], and GET /projects/{id}/turns.standard (default, faster turnaround) or extended (deeper planning for complex briefs). Fixed at project creation.Whether Fast mode is enabled (Pro and above). Set at creation or toggled between turns; changing mid-run returns
409.Active connection scoping for the project.
null uses workspace defaults; [] disables all connectors.Automatic export formats dispatched by infrastructure as soon as an API turn finalizes a generation. Inherited by later API turns unless overridden;
[] disables automatic exports.Immutable saved project versions ordered newest-first (
generations[0] is the latest). See The Generation object.Export jobs created automatically or manually for this project. See Exports.
Conversation transcript ordered oldest-first (
sequence_num ascending). Check messages_has_more and paginate with after_sequence, or filter to one turn with GET /projects/{id}/messages?turn_id=....The Generation object
Think of a Generation like a Git commit for your video project: each finalized turn saves one immutable snapshot of the project’s authored compositions—without waiting for an MP4 encode—so you can pass itsgeneration_id (or compositions[].id) directly to Exports, Templates, or Social posting.
UUID of the project turn that committed this generation. Matches
messages[].turn_id, exports[].turn_id, and GET /projects/{id}/turns.Always
"ready" once persisted on a project—indicating the editable source snapshot is ready for exports, templates, or social posting.Editable video and image outputs included in this generation. Each entry contains
id (pass to POST /projects/{id}/exports in composition_ids), kind (video or image), width, height, and duration_seconds (null for images).Immutable media attribution records referenced by compositions in this generation, including
composition_ids, source_kind (licensed_library, article, web_search, web, connector, upload, project, generated, unknown), provider, provider_asset_id, source_url, source_domain, media_type, title, credit, and rights_status.