Retorna apenas organizações onde o chamador tem uma associação. Quando a concessão do Atlas estiver inutilizável, as últimas organizações registradas ainda são retornadas como somente leitura com atlas_reauth_required=true.
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
-
Erro interno do servidor
GET /api/v1/organização
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/organizations' \
--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)
{
"atlas_reauth_required": true,
"limit": 42,
"offset": 42,
"organizations": [
{
"admins": [
{
"email": "string",
"name": "string"
}
],
"atlas": {
"environment": "string",
"id": "string"
},
"created_at": "string",
"description": "string",
"id": "string",
"name": "string",
"source": "atlas",
"updated_at": "string"
}
],
"total": 42
}
Exemplos de resposta (200)
{
"atlas_reauth_required": true,
"limit": 42,
"offset": 42,
"organizations": [
{
"admins": [
{
"email": "string",
"name": "string"
}
],
"atlas": {
"environment": "string",
"id": "string"
},
"created_at": "string",
"description": "string",
"id": "string",
"name": "string",
"source": "atlas",
"updated_at": "string"
}
],
"total": 42
}
Exemplos de resposta (500)
{
"code": "string",
"error": "string",
"success": true
}
Exemplos de resposta (500)
{
"code": "string",
"error": "string",
"success": true
}