MongoDB Programmatic API Keys API

Returns, adds, edits, and removes access tokens to use the MongoDB Cloud API. MongoDB Cloud applies these keys to organizations. These resources can return, assign, or revoke use of these keys within a specified project.

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/groups/{groupId}/apiKeys List API keys assigned to a project · Return All Organization API Keys Assigned to One Project #
Ask an LLM
“Which organization API keys are assigned to a particular project?”
“Can I see every API key a project has been given?”
Tell an agent
List the API keys assigned to project {groupId}.
Show all organization API keys for project {groupId}.
POST /api/atlas/v2/groups/{groupId}/apiKeys Create an API key for a project · Create and Assign One Organization API Key to One Project #
Ask an LLM
“How do I create a new API key for one project?”
“What roles must a project API key have?”
Tell an agent
Create an API key for project {groupId} with roles {roles} described as {desc}.
Add a new organization API key to project {groupId}.
DELETE /api/atlas/v2/groups/{groupId}/apiKeys/{apiUserId} Unassign an API key from a project · Unassign One Organization API Key from One Project #
Ask an LLM
“How do I take an API key off a project?”
“Can I revoke an organization API key from a project?”
Tell an agent destructive · confirm first
Unassign API key {apiUserId} from project {groupId}.
Revoke organization API key {apiUserId} from project {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/apiKeys/{apiUserId} Change an API key's roles in a project · Update Organization API Key Roles for One Project #
Ask an LLM
“Can I change the roles granted to an API key in a project?”
“What happens to roles I leave out when updating a project API key?”
Tell an agent
Set the roles of API key {apiUserId} in project {groupId} to {roles}.
Update organization API key {apiUserId} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/apiKeys/{apiUserId} Assign an existing API key to a project · Assign One Organization API Key to One Project #
Ask an LLM
“Can I assign an organization API key I already created to a project?”
“How do I give an existing API key access to one project?”
Tell an agent
Assign API key {apiUserId} to project {groupId}.
Give organization API key {apiUserId} access to project {groupId}.
GET /api/atlas/v2/orgs/{orgId}/apiKeys List an organization's API keys · Return All Organization API Keys #
Ask an LLM
“What organization API keys exist across my whole organization?”
“Can I list every API key an organization owns?”
Tell an agent
List all organization API keys for organization {orgId}.
Show every API key in organization {orgId}.
POST /api/atlas/v2/orgs/{orgId}/apiKeys Create an organization API key · Create One Organization API Key #
Ask an LLM
“How do I generate a programmatic API key for my whole organization?”
“Can an org API key log in to the Atlas UI?”
Tell an agent
Create an organization API key in {orgId} for {desc} with roles {roles}.
Generate a new org key {desc} with roles {roles}.
DELETE /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId} Remove an organization API key · Remove One Organization API Key #
Ask an LLM
“How do I delete an organization API key?”
“Does removing an organization API key also take it off projects?”
Tell an agent destructive · confirm first
Remove organization API key {apiUserId} from {orgId}.
Delete organization API key {apiUserId} in {orgId}.
GET /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId} Get one organization API key · Return One Organization API Key #
Ask an LLM
“Can I look up a single organization API key by its ID?”
“What roles does one organization API key have?”
Tell an agent
Get organization API key {apiUserId} in {orgId}.
Show the details of API key {apiUserId} for organization {orgId}.
PATCH /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId} Update an organization API key · Update One Organization API Key #
Ask an LLM
“Can I change the roles on an organization API key?”
“How do I rename an organization API key?”
Tell an agent
Set the roles of organization API key {apiUserId} in {orgId} to {roles}.
Update organization API key {apiUserId} in {orgId}.
GET /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId}/accessList List an API key's access list entries · Return All Access List Entries for One Organization API Key #
Ask an LLM
“Which IP addresses are allowed to use an organization API key?”
“Can I see the access list for one organization API key?”
Tell an agent
List the access list entries for organization API key {apiUserId} in {orgId}.
Show which IPs can call API key {apiUserId} in organization {orgId}.
POST /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId}/accessList Add an IP to an API key's access list · Create One Access List Entry for One Organization API Key #
Ask an LLM
“How do I restrict an organization API key to requests from a specific IP?”
“Can I add a CIDR block to an API key's access list?”
Tell an agent
Add an access list entry to organization API key {apiUserId} in {orgId}.
Allow requests from a new IP on API key {apiUserId} for organization {orgId}.
DELETE /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId}/accessList/{ipAddress} Remove an IP from an API key's access list · Remove One Access List Entry for One Organization API Key #
Ask an LLM
“How do I stop an IP address from using an organization API key?”
“Can I remove an access list entry from an API key?”
Tell an agent destructive · confirm first
Remove access list entry {ipAddress} from organization API key {apiUserId} in {orgId}.
Block IP {ipAddress} on API key {apiUserId} for organization {orgId}.
GET /api/atlas/v2/orgs/{orgId}/apiKeys/{apiUserId}/accessList/{ipAddress} Get one access list entry for an API key · Return One Access List Entry for One Organization API Key #
Ask an LLM
“Is a particular IP address on an organization API key's access list?”
“Can I check one access list entry for an API key?”
Tell an agent
Get access list entry {ipAddress} for organization API key {apiUserId} in {orgId}.
Check whether IP {ipAddress} is allowed on API key {apiUserId} in {orgId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-programmatic-api-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-programmatic-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Programmatic API Keys API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Programmatic API Keys across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (81 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-programmatic-api-keys-api-openapi.yml