sessions

Serve a static browser preview file from a session workspace or artifact directory

Changed on
get/api/v1/sessions/{sessionId}/preview/files/*

Request

  • Base URL
    http://127.0.0.1:3001
  • URL
    http://127.0.0.1:3001/api/v1/sessions/{sessionId}/preview/files/*
  • Auth
    none declared

Path parameters

sessionIdstring required

Session identifier, e.g. project-1.

Query parameters

source'workspace' | 'artifact'

File root to serve from. Defaults to the session workspace; artifact selects the session artifact directory.

rawboolean

When true, serve Markdown files as raw source instead of rendering them to HTML for Browser preview.

Response

OK

Changes

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      removed the agent_switch_saga enum value from the response property for the response status

    • info

      added the new optional query request parameter raw

    • info

      added the new optional query request parameter source