You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All file system endpoints require local-only access.
Method
Path
Description
GET
/api/fs/ls
List files in a directory. Query: path, hidden?
POST
/api/fs/pick
Pick/select a file. Body: { path }
POST
/api/fs/save-to
Save output to a chosen location. Body: { path }
GET
/api/fs/drives
List available drives (Windows)
GET
/api/fs/home
Get user home directory paths
GET
/api/fs/assets
List gallery assets
DELETE
/api/fs/assets/:filename
Delete a specific asset by filename
GET
/api/fs/view
View a file's contents. Query: path, encoding?
Agentic Pipeline (REST)
Mounted under /api/agentic. These are additive — they do not touch the legacy /api routes.
Method
Path
Description
POST
/api/agentic/run
Trigger a full agentic video generation. Body: { topic, title, orientation?, voice?, backend?, musicQuery?, preferVisual? }. Returns { jobId, gate, voiceoverDriven, rendered, videoUrl }
GET
/api/agentic/jobs/:id
Get agentic job status, gate result, decisions, and manifest
GET
/api/agentic/jobs/:id/scenes
Get scene audit trail (parsed scene-data.json)
GET
/api/agentic/jobs/:id/video
Stream the rendered MP4 video file
GET
/api/agentic/jobs/:id/contact-sheet
Serve the contact-sheet PNG showing every approved asset
GET
/api/agentic/jobs/:id/decisions
Read the plain-text decisions report
View Routes (HTML pages & static files)
Method
Path
Description
GET
/
Home page
GET
/video-download
Video download tool page
GET
/videos/:videoId
Watch a published video
GET
/jobs/:jobId
Job detail/review page
GET
/robots.txt
Robots exclusion file
GET
/sitemap.xml
XML sitemap
GET
/og-image.svg
Open Graph default image (SVG)
GET
/llms.txt
LLM-friendly summary (llms.txt standard)
GET
/llms-full.txt
Full LLM-friendly project context
Rate Limiting
POST /generate-video and POST /api/jobs share a rate limit defined by RATE_LIMIT_MAX / RATE_LIMIT_WINDOW_MS.
POST /api/ai/generate-script has a separate rate limiter.
Validation
All endpoints that accept structured input are validated against Zod schemas defined in src/schemas/api.schemas.ts. Invalid requests receive a 400 error with details.
Authentication
Endpoints marked Local only require requireLocalAccess middleware (typically restricts to localhost / 127.0.0.1).
All other endpoints are publicly accessible when the server is reachable.