Returns all workspaces in the project identified by the route id path parameter. Requires a valid Bearer token and project role.
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
-
Internal Server Error
GET
/api/v1/projects/{id}/workspaces
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspaces' \
--header "Authorization: $API_KEY"
Response examples (406)
Operation unavailable
{
"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"
}
Response examples (406)
{
"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"
}
Response examples (200)
{
"total": 42,
"workspaces": [
{
"aer_http_endpoint": "string",
"agent_card": {
"a2a_allowed_callers": [
"string"
],
"a2a_enabled": true,
"capabilities": [
"string"
],
"input_modes": [
"string"
],
"output_modes": [
"string"
],
"skills": [
{
"description": "string",
"example_input": "string",
"example_output": "string",
"name": "string"
}
],
"summary": "string"
},
"agent_grpc_endpoint": "string",
"agent_http_endpoint": "string",
"auto_deploy": true,
"completion_rate": 42.0,
"created_date": "string",
"current_deployment_id": "string",
"current_payload_ref": "string",
"description": "string",
"features": {
"guardrails": true,
"memory": true,
"playground": true,
"use_custom_parser": true
},
"framework": "string",
"github_installation_id": 42,
"gitops": {
"branch": "string",
"connection_ref": "string",
"github_installation_id": 42,
"manifest_path": "string",
"provider": "string",
"repo_url": "string"
},
"id": "string",
"instances": {
"active": 42,
"pooled": true,
"standby": 42,
"starting": 42
},
"invocations": 42,
"language": "string",
"last_invoked_at": "2026-05-04T09:42:00Z",
"metrics_computed_at": "2026-05-04T09:42:00Z",
"metrics_window_start": "2026-05-04T09:42:00Z",
"name": "string",
"org_id": "string",
"p95_latency_ms": 42.0,
"project_id": "string",
"release_mode": "string",
"status": "active",
"subdirectory": "string",
"updated_date": "string",
"workspace_id": "string",
"workspace_name": "string"
}
]
}
Response examples (200)
{
"total": 42,
"workspaces": [
{
"aer_http_endpoint": "string",
"agent_card": {
"a2a_allowed_callers": [
"string"
],
"a2a_enabled": true,
"capabilities": [
"string"
],
"input_modes": [
"string"
],
"output_modes": [
"string"
],
"skills": [
{
"description": "string",
"example_input": "string",
"example_output": "string",
"name": "string"
}
],
"summary": "string"
},
"agent_grpc_endpoint": "string",
"agent_http_endpoint": "string",
"auto_deploy": true,
"completion_rate": 42.0,
"created_date": "string",
"current_deployment_id": "string",
"current_payload_ref": "string",
"description": "string",
"features": {
"guardrails": true,
"memory": true,
"playground": true,
"use_custom_parser": true
},
"framework": "string",
"github_installation_id": 42,
"gitops": {
"branch": "string",
"connection_ref": "string",
"github_installation_id": 42,
"manifest_path": "string",
"provider": "string",
"repo_url": "string"
},
"id": "string",
"instances": {
"active": 42,
"pooled": true,
"standby": 42,
"starting": 42
},
"invocations": 42,
"language": "string",
"last_invoked_at": "2026-05-04T09:42:00Z",
"metrics_computed_at": "2026-05-04T09:42:00Z",
"metrics_window_start": "2026-05-04T09:42:00Z",
"name": "string",
"org_id": "string",
"p95_latency_ms": 42.0,
"project_id": "string",
"release_mode": "string",
"status": "active",
"subdirectory": "string",
"updated_date": "string",
"workspace_id": "string",
"workspace_name": "string"
}
]
}
Response examples (400)
{
"code": "string",
"error": "string",
"success": true
}
Response examples (400)
{
"code": "string",
"error": "string",
"success": true
}
Response examples (401)
{
"code": "string",
"error": "string",
"success": true
}
Response examples (401)
{
"code": "string",
"error": "string",
"success": true
}
Response examples (500)
{
"code": "string",
"error": "string",
"success": true
}
Response examples (500)
{
"code": "string",
"error": "string",
"success": true
}