Demos API
Generate, poll, update, refresh, restyle, and delete demos.
Demos API
Create a demo
bashcurl -X POST https://littledemo.com/api/v1/demos \ -H "Authorization: Bearer ld_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "project_id": "proj_abc123", "prompt": "Show creating a workspace and inviting a teammate", "format": "mp4", "duration_target": "10s", "presentation": { "recordingTemplate": { "id": "auto" } } }'
Response
json{ "id": "demo_abc123", "status": "pending", "jobId": "job_abc123", "pollUrl": "/api/v1/demos/demo_abc123", "wsUrl": "/api/ws/demo_abc123"}
Poll status
bashcurl https://littledemo.com/api/v1/demos/demo_abc123 \ -H "Authorization: Bearer ld_live_xxx"
Refresh
bashcurl -X POST https://littledemo.com/api/v1/demos/demo_abc123/refresh \ -H "Authorization: Bearer ld_live_xxx"
Restyle
bashcurl -X POST https://littledemo.com/api/v1/demos/demo_abc123/restyle \ -H "Authorization: Bearer ld_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "presentation": { "background": "midnight", "recordingTemplate": { "id": "cinematic" } } }'
Restyle is for presentation changes. Create a new demo when the story changes.