Demos API

Create a demo

bash
curl -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

bash
curl https://littledemo.com/api/v1/demos/demo_abc123 \ -H "Authorization: Bearer ld_live_xxx"

Refresh

bash
curl -X POST https://littledemo.com/api/v1/demos/demo_abc123/refresh \ -H "Authorization: Bearer ld_live_xxx"

Restyle

bash
curl -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.

Ask a question... ⌘I