Skip to main content
POST
Create a template

Authorizations

Authorization
string
header
required

A Motion API key. Access is limited to its stored organization, workspace, scopes and the creator’s current permissions.

Scopes

motion:projects:read

Read projects, generations and exports.

motion:templates:write

Create, edit, share, and archive prompt templates.

Headers

Idempotency-Key
string<uuid>

Optional UUID for identical REST retries. Reuse the same key and body after a lost response.

Motion-API-Version
enum<string>
default:2026-11-19

Optional API version override for this request. When omitted, Motion uses the API version pinned to your API key or OAuth connection.

Available options:
2026-11-19

Body

application/json
title
string
required
Maximum string length: 120
generation_id
string<uuid>
required

Generation ID to save as a template.

mode
enum<string>
default:layout_and_style
Available options:
style,
layout_and_style
instructions
string
Maximum string length: 12000

Response

Saved resource

template
object
required

Saved template, current version, source generation ID and preview status.