Retorna todos os workspaces no projeto identificado pelo parâmetro de caminho ID da rota. Requer um Bearer token válido e uma função de projeto válida.
Respostas
-
Versão da API não compatível ou malformada, uma operação não disponível no contrato publicado selecionado ou uma representação inaceitável (incluindo parâmetros de tipo de mídia não compatíveis ou SSE excluída). As falhas de autenticação, autorização e limite de taxa existentes têm precedência.
-
OK
-
Solicitação inválida
-
Não autorizado
-
Erro interno do servidor
GET /api/v1/projeto/{id}/espaços de trabalho
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspaces' \
--header "Authorization: $API_KEY"
Exemplos de resposta (406)
Operação indisponível
{
"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"
}
Exemplos de resposta (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"
}
Exemplos de resposta (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"
}
]
}
Exemplos de resposta (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"
}
]
}
Exemplos de resposta (400)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (400)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (401)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (401)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (500)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (500)
{
"code": "string",
"error": "string",
"success": true
}