Skip to main content

Module agent_preview

Module agent_preview 

Source
Expand description

Controllers for requests starting with /api/v0/main-frontend/agent-preview: the login-free, read-only preview of a page as an AI agent staged it, or as published.

Structsยง

AgentPreviewQuery
MainFrontendAgentPreviewApiDoc ๐Ÿ”’

Functionsยง

_add_routes
get_preview ๐Ÿ”’
GET /api/v0/main-frontend/agent-preview/{token} - The page a preview token points at, staged or published, or for a token of several pages the page page with the list of pages. No login: the short-lived random token stands in for it, while its user may still edit the course.