Organization Service Account that Atlas creates for this organization. If omitted, Atlas doesn't create an organization Service Account for this organization. If specified, this object requires all body parameters. Note that API Keys cannot be specified in the same request.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-create-atlas-organization-api-key-schema.json",
"title": "CreateAtlasOrganizationApiKey",
"description": "Organization Service Account that Atlas creates for this organization. If omitted, Atlas doesn't create an organization Service Account for this organization. If specified, this object requires all body parameters. Note that API Keys cannot be specified in the same request.",
"x-generated": "2026-10-03",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/mongodb-programmatic-api-keys-api-openapi.yml#/components/schemas/CreateAtlasOrganizationApiKey",
"properties": {
"desc": {
"description": "Purpose or explanation provided when someone created this organization API key.",
"maxLength": 250,
"minLength": 1,
"type": "string"
},
"roles": {
"description": "List of roles to grant this API key. If you provide this list, provide a minimum of one role and ensure each role applies to this organization.",
"items": {
"enum": [
"ORG_OWNER",
"ORG_MEMBER",
"ORG_GROUP_CREATOR",
"ORG_BILLING_ADMIN",
"ORG_BILLING_READ_ONLY",
"ORG_STREAM_PROCESSING_ADMIN",
"ORG_READ_ONLY"
],
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"desc",
"roles"
],
"type": "object"
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.