Skip to main content

List the workspace roots this controller may open

GET 

/workspace-roots

Lists the workspace roots configured for this controller, so a client can offer a valid directory before it opens its first session instead of guessing a host path. It takes no X-Session-ID header.

Peen currently supports one root: PEEN_WORKSPACE_ROOT, or the controller's working directory when that is unset, resolved through its symbolic links. POST /sessions/open accepts any existing directory beneath it, apart from the controller's own state and configuration directories.

This is the deliberate, authenticated disclosure of the controller's workspace boundary. A refused POST /sessions/open never names a root.

Responses​

The configured workspace roots.

Response Headers
    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.