Returns the ECP-owned active/paused status for every workspace in the project identified by the route id path parameter. Always fetches live from ECP (concurrent identical requests are deduplicated, not cached across requests). Soft-fails: if ECP is unreachable, or if a page beyond the first fails, returns the last known-good response (up to 10 minutes old) if one exists; otherwise returns 200 with an empty list (or, for a partial multi-page failure with no fallback available, the partial results collected so far).
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
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspace-statuses' \
--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"
}
{
"statuses": [
{
"status": "string",
"workspace_id": "string"
}
],
"total": 42
}
{
"statuses": [
{
"status": "string",
"workspace_id": "string"
}
],
"total": 42
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}