List every session
GET/sessions
Lists every session this controller holds, newest updated first (ties broken by session ID, descending). This includes one session for each opened workspace and the system session when one exists. It takes no X-Session-ID header, because it is how a client discovers which sessions exist.
Each item has the same shape as GET /session, except that activeTurnFeedSequence is never set here. Page with limit and offset; hasMore is true when at least one more session follows this page.
Returns 400 VALIDATION_FAILED for a limit or offset outside its range.
Request
Responses
- 200
- 400
- 401
- 406
- 500
Page of sessions, newest updated first.
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.
The request is invalid. code is VALIDATION_FAILED for a bad parameter, body field, page bound, base64 value or file size, or a body that is not one JSON value or exceeds the body limit, and INVALID_SESSION_ID for a malformed X-Session-ID header.
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.