MongoDB/getOrgAiModelApiKey

Online calls unavailable · details below

MongoDBMongoDB Atlas Administration API v2

GET/api/atlas/v2/orgs/{orgId}/aiModelApiKeys/{apiKeyId}

Read get Org Ai Model Api Key.

Contract-preserving GET endpoint for get Org Ai Model Api Key in the MongoDB Atlas Administration API. Resource-specific values are supplied by the caller at runtime.

All 540 MongoDB Atlas administration endpoints from a fixed Apache-2.0 OpenAPI revision. Hub provides documentation and an independent SDK/CLI, but never proxies account, organization, project, network, backup, or operational data; callers connect directly with local credentials.

Request

operationId
getOrgAiModelApiKey
Server
https://cloud.mongodb.com
Authentication
ServiceAccounts, DigestAuth

Request parameters

orgId

pathstringrequired

org Id value in the Atlas Administration API contract.

4888442a3354817a7320eb61

envelope

queryboolean

envelope value in the Atlas Administration API contract.

pretty

queryboolean

pretty value in the Atlas Administration API contract.

apiKeyId

pathstringrequired

api Key Id value in the Atlas Administration API contract.

Responses

200

AiModelApiKeyResponseapplication/vnd.atlas.2025-03-12+json

Successful supplier response.

Properties: apiKeyIdcloudcreatedAtcreatedByendpointgeographygroupIdlastUsedAtmaskedSecretnamesecretstatus

401

ApiErrorapplication/json

Supplier response with HTTP status 401.

Properties: badRequestDetaildetailerrorerrorCodeparametersreason

403

ApiErrorapplication/json

Supplier response with HTTP status 403.

Properties: badRequestDetaildetailerrorerrorCodeparametersreason

404

ApiErrorapplication/json

Supplier response with HTTP status 404.

Properties: badRequestDetaildetailerrorerrorCodeparametersreason

429

ApiErrorapplication/json

Supplier response with HTTP status 429.

Properties: badRequestDetaildetailerrorerrorCodeparametersreason

500

ApiErrorapplication/json

Supplier response with HTTP status 500.

Properties: badRequestDetaildetailerrorerrorCodeparametersreason

{
  "apiKeyId": "a86r5kwrfsk5r5ku5tgvhmpj",
  "cloud": "ANY",
  "createdAt": "2026-01-15T16:47:49.855000+00:00",
  "createdBy": "John Doe",
  "endpoint": "ai.mongodb.com",
  "geography": "ANY",
  "groupId": "69681d39c9e8cfd375386316",
  "lastUsedAt": "2026-01-15T16:47:49.855000+00:00"
}