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.
Responses
-
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.
-
OK
-
Bad Request
-
Unauthorized
-
Forbidden
-
Not Found
-
Workspace orchestration engine is not ready
-
Internal Server Error
-
Bad Gateway
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspaces/{workspace_id}/runtime-sessions' \
--header "Authorization: $API_KEY"
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"sessions": [
{
"is_test_session": true,
"last_activity_at": "string",
"scheduled_release_at": "string",
"session_id": "string",
"status": "string"
}
]
}
{
"sessions": [
{
"is_test_session": true,
"last_activity_at": "string",
"scheduled_release_at": "string",
"session_id": "string",
"status": "string"
}
]
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}