List the agent spaces a client may name
GET/agent-spaces
Lists the agent spaces a session may run in, sorted by name, and the default a session gets when it is opened without naming one. It takes no X-Session-ID header, because a client reads it before it has a session.
controlruns the agent where the controller runs. It is listed only when the controller cannot reach a Docker daemon.docker:<profile>runs the agent in its own container, one space per Docker profile the operator configured, plus the built-indefaultprofile (no Docker access, bridge network, no sudo) unless the operator redefines it.
A client names an agent space when it opens a workspace or reconfigures a session, and never sends an image, mount, network setting, or capability: the operator's configuration decides what each name means. Each Docker space reports its grants (docker, network, sudo), and capabilityWarnings carries one sentence for each risky grant.
Responses
- 200
- 401
- 406
- 500
The offered agent spaces and the deployment default.
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.