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
- 200
- 401
- 406
- 500
The configured workspace roots.
Response Headers
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.
PEEN_API_TOKEN is set and the request's bearer token is missing or wrong. code is UNAUTHORIZED. A deployment with no token never returns this.
The request's Accept header allows neither application/json nor */*, and every response is JSON. code is BAD_REQUEST and message is unsupported response representation. Omit Accept or send application/json.
An unexpected server failure. code is INTERNAL_SERVER_ERROR and message is internal server error. The controller log has the details under the response's X-Request-ID.