Endpoint index

The OpenAPI spec is loaded from ./openapi.json in docs.json. Use this page as a quick map, then use the spec for exact schemas.

Projects

MethodPathPurpose
GET/api/v1/projectsList projects.
POST/api/v1/projectsCreate a project.
GET/api/v1/projects/{id}Get project details.
PATCH/api/v1/projects/{id}Update a project.
DELETE/api/v1/projects/{id}Delete a project.
POST/api/v1/projects/{id}/refreshRefresh all ready demos in a project.

Demos

MethodPathPurpose
GET/api/v1/demosList demos.
POST/api/v1/demosCreate and queue a demo.
GET/api/v1/demos/{id}Get demo details and status.
PATCH/api/v1/demos/{id}Update demo metadata.
DELETE/api/v1/demos/{id}Delete a demo.
POST/api/v1/demos/{id}/refreshRe-record a demo.
POST/api/v1/demos/{id}/restyleRe-record with new presentation settings.

Media

MethodPathPurpose
GET/api/v1/demos/{id}/videoStream video.
GET/api/v1/demos/{id}/gifFetch GIF preview.
GET/api/v1/demos/{id}/thumbnailFetch thumbnail.
GET/api/v1/demos/{id}/snapshots/{index}Fetch analysis snapshot.
GET/api/v1/demos/{id}/debug-stills/{index}Fetch recorder still.

Account and usage

MethodPathPurpose
GET/api/v1/api-keysList API keys.
POST/api/v1/api-keysCreate live or publishable key.
DELETE/api/v1/api-keys/{id}Revoke key.
GET/api/v1/usageRead plan and usage.
GET/api/v1/creditsRead credit balance and packs.
POST/api/v1/credits/purchasePurchase a credit pack.
GET/api/v1/credits/auto-topoffRead auto top-off settings.
PUT/api/v1/credits/auto-topoffUpdate auto top-off settings.
GET/api/v1/credits/transactionsList credit transactions.

Presentation, embeds, progress, and auth

MethodPathPurpose
GET/api/v1/backgroundsList backgrounds.
POST/api/v1/backgrounds/uploadUpload background.
GET/api/v1/backgrounds/custom/{key}Serve uploaded background.
POST/api/v1/embed/generateGenerate or reuse a dynamic embed demo.
GET/api/v1/embed/runtimeRender a signed runtime iframe for trusted integrations.
GET/api/progress/{demoId}Poll generation progress.
GET/api/ws/{demoId}Subscribe to generation progress over WebSocket.
POST/api/v1/webhooks/projects/{id}/refreshRefresh project demos from CI/CD.
POST/api/v1/device/codeStart CLI device authorization.
POST/api/v1/device/tokenPoll for CLI access token.
POST/api/v1/device/authorizeApprove a device code from the browser.
GET/api/healthHealth check.
Ask a question... ⌘I