POST /api/v1/demos/{id}/restyle
Uses the existing action script and records the demo again with a new presentation config. This is useful for changing background, mockup, cursor, click effects, fade, or template metadata without re-planning the whole demo.

Authentication

Bearer Token API Key (cookie: better-auth.session_token)

Path Parameters

id string required path

Request Body

application/json
presentation object REQUIRED
background string | object | object
Any of:
Option 1string
Option 2
from string REQUIRED
to string REQUIRED
angle number
Option 3
imageUrl string (uri) REQUIRED
Max length 2048
mockup string
Values macos-light macos-dark minimal none
zoom object
enabled boolean REQUIRED
intensity number
Min 1Max 3
transitionMs number
Min 100Max 2000
padding number
Min 0Max 0.3
cursor object
style string
Values dot arrow crosshair circle none
color string
Max length 50
size number
Min 8Max 64
clickEffect object
style string
Values pulse ripple glow none
color string
Max length 50
scale number
Min 0.2Max 3
fade object
inMs number
Min 0Max 3000
outMs number
Min 0Max 3000
color string
Values black white
windowAnimation object
intro boolean
outro boolean
introDurationMs number
Min 200Max 2000
outroDurationMs number
Min 200Max 2000
recordingTemplate object
id string REQUIRED
Values auto cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scroll
sectionHint string
Min length 1Max length 120
effectiveId string
Values cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scroll
autoSelection object
selectedId string REQUIRED
Values cinematic guided-tour plain-scroll section-focus hero-spotlight feature-sweep conversion-flow pricing-focus proof-scroll
sectionHint string
Min length 1Max length 120
confidence number REQUIRED
Min 0Max 1
reason string REQUIRED
Min length 1Max length 500
source string REQUIRED
Values heuristic ai fallback
signals string[]
Item min length 1Item max length 240
debugHud boolean

Responses

202 Restyle recording started
application/json
id string REQUIRED
status string REQUIRED
Values refreshing recording
jobId string REQUIRED
400 Demo has no recorded script or validation failed
404 Not found
429 Quota exceeded
curl -X POST 'https://littledemo.com/api/v1/demos/string/restyle' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{  "presentation": {    "background": "string",    "mockup": "macos-light",    "zoom": {      "enabled": true,      "intensity": 1,      "transitionMs": 100    },    "padding": 0,    "cursor": {      "style": "dot",      "color": "string",      "size": 8    },    "clickEffect": {      "style": "pulse",      "color": "string",      "scale": 0.2    },    "fade": {      "inMs": 0,      "outMs": 0,      "color": "black"    },    "windowAnimation": {      "intro": true,      "outro": true,      "introDurationMs": 200,      "outroDurationMs": 200    },    "recordingTemplate": {      "id": "auto",      "sectionHint": "string",      "effectiveId": "cinematic",      "autoSelection": {        "selectedId": "cinematic",        "sectionHint": "string",        "confidence": 0,        "reason": "string",        "source": "heuristic",        "signals": [          "string"        ]      }    },    "debugHud": true  }}'
const response = await fetch('https://littledemo.com/api/v1/demos/string/restyle', {  method: 'POST',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({    "presentation": {      "background": "string",      "mockup": "macos-light",      "zoom": {        "enabled": true,        "intensity": 1,        "transitionMs": 100      },      "padding": 0,      "cursor": {        "style": "dot",        "color": "string",        "size": 8      },      "clickEffect": {        "style": "pulse",        "color": "string",        "scale": 0.2      },      "fade": {        "inMs": 0,        "outMs": 0,        "color": "black"      },      "windowAnimation": {        "intro": true,        "outro": true,        "introDurationMs": 200,        "outroDurationMs": 200      },      "recordingTemplate": {        "id": "auto",        "sectionHint": "string",        "effectiveId": "cinematic",        "autoSelection": {          "selectedId": "cinematic",          "sectionHint": "string",          "confidence": 0,          "reason": "string",          "source": "heuristic",          "signals": [            "string"          ]        }      },      "debugHud": true    }  })});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://littledemo.com/api/v1/demos/string/restyle', headers=headers, json={  "presentation": {    "background": "string",    "mockup": "macos-light",    "zoom": {      "enabled": true,      "intensity": 1,      "transitionMs": 100    },    "padding": 0,    "cursor": {      "style": "dot",      "color": "string",      "size": 8    },    "clickEffect": {      "style": "pulse",      "color": "string",      "scale": 0.2    },    "fade": {      "inMs": 0,      "outMs": 0,      "color": "black"    },    "windowAnimation": {      "intro": true,      "outro": true,      "introDurationMs": 200,      "outroDurationMs": 200    },    "recordingTemplate": {      "id": "auto",      "sectionHint": "string",      "effectiveId": "cinematic",      "autoSelection": {        "selectedId": "cinematic",        "sectionHint": "string",        "confidence": 0,        "reason": "string",        "source": "heuristic",        "signals": [          "string"        ]      }    },    "debugHud": true  }})print(response.json())
202 Response
{  "id": "<string>",  "status": "refreshing",  "jobId": "<string>"}
Ask a question... ⌘I