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.

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 and preview status.