# List runtime sessions **GET /api/v1/projects/{id}/workspaces/{workspace_id}/runtime-sessions** Lists runtime sessions that reserve agent or tool sandbox capacity for the workspace, including sessions still releasing capacity. Runtime sessions are separate from durable conversation sessions, which store conversation history. Status is active while the session holds capacity and stopping while release is in progress. last_activity_at and scheduled_release_at follow the workspace idle timeout. scheduled_release_at is omitted while a component is still releasing. is_test_session identifies Playground and CLI test sessions. The list is empty when no runtime capacity is reserved. An accepted stop or unconfirmed release remains visible after a restart and from every runtime replica. Concurrent list requests share one executor status refresh. A successful refresh is reused for about one second. If the two-second refresh fails or returns incomplete data, the endpoint uses the current replica's cached snapshot. last_activity_at uses the serving replica's clock. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **id** (string) Project ID - **workspace_id** (string) Workspace ID ## Responses ### 406 Unsupported or malformed API version, an operation unavailable in the selected published contract, or an unacceptable representation (including unsupported media-type parameters or excluded SSE). Existing authentication, authorization, and rate-limit failures take precedence. #### Body: application/json (object) - **badRequestDetail** (object) Optional validation details defined by the standard error schema; API negotiation errors do not emit this field. - **detail** (string) Human-readable error details. - **error** (integer) HTTP status code. - **errorCode** (string) Machine-readable error code. - **parameters** (array[string]) Request parameter names associated with the error; omitted when none apply. - **reason** (string) HTTP status reason phrase. ### 200 OK #### Body: application/json (object) - **sessions** (array[object]) ### 400 Bad Request #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 401 Unauthorized #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 403 Forbidden #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 404 Not Found #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 425 Workspace orchestration engine is not ready #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 500 Internal Server Error #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 502 Bad Gateway #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) [Powered by Bump.sh](https://bump.sh)