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:sessions:read

Read permitted chats, job status and saved 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-10-22

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-10-22

Body

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

Saved project version used as the source. Null when not recorded.

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.