Proxies Atlas Admin API GET /orgs. Humans and API keys use the caller's delegated OAuth token; an Agent Engine ORG/PROJECT service account with an active Atlas pairing uses that service account's own credential.
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
-
PLATFORM_OAUTH_REQUIRED or PLATFORM_OAUTH_RESOURCE_REJECTED — delegated Atlas authorization unusable; do not replay
-
ATLAS_SERVICE_ACCOUNT_NOT_PAIRED — machine principal has no active pairing; FORBIDDEN — ineligible type or machine feature flag off
-
INTERNAL_ERROR — pairing lookup failed
-
ATLAS_SERVICE_ACCOUNT_CREDENTIAL_UNAVAILABLE or Atlas unreachable / non-OK response
-
PLATFORM_OAUTH_NOT_CONFIGURED — platform OAuth or machine credential path not configured; SERVICE_UNAVAILABLE — delegated token refresh already in progress
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/atlas/orgs' \
--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"
}
{
"results": [
{
"id": "string",
"is_deleted": true,
"name": "string"
}
],
"total_count": 42
}
{
"results": [
{
"id": "string",
"is_deleted": true,
"name": "string"
}
],
"total_count": 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
}
{
"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
}