MongoDB Service Accounts API

Endpoints for managing Service Accounts and secrets. Service Accounts are used for programmatic access to the Atlas Admin API through the OAuth 2.0 Client Credentials flow.

Operations 22

GET /api/atlas/v2/groups/{groupId}/serviceAccounts Return All Project Service Accounts #
POST /api/atlas/v2/groups/{groupId}/serviceAccounts Create One Project Service Account #
DELETE /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId} Remove One Project Service Account #
GET /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId} Return One Project Service Account #
PATCH /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId} Update One Project Service Account #
GET /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList Return All Access List Entries for One Project Service Account #
POST /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList Add Access List Entries for One Project Service Account #
DELETE /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList/{ipAddress} Remove One Access List Entry from One Project Service Account #
POST /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets Create One Project Service Account Secret #
DELETE /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets/{secretId} Delete One Project Service Account Secret #
POST /api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}:invite Assign One Service Account to One Project #
GET /api/atlas/v2/orgs/{orgId}/serviceAccounts Return All Organization Service Accounts #
POST /api/atlas/v2/orgs/{orgId}/serviceAccounts Create One Organization Service Account #
DELETE /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId} Delete One Organization Service Account #
GET /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId} Return One Organization Service Account #
PATCH /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId} Update One Organization Service Account #
GET /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList Return All Access List Entries for One Organization Service Account #
POST /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList Add Access List Entries for One Organization Service Account #
DELETE /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList/{ipAddress} Remove One Access List Entry from One Organization Service Account #
GET /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/groups Return All Service Account Project Assignments #
POST /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets Create One Organization Service Account Secret #
DELETE /api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets/{secretId} Delete One Organization Service Account Secret #

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-service-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

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

OpenAPI Specification

mongodb-service-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The MongoDB Atlas Administration API allows developers to manage all components in MongoDB Atlas.
  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
  title: MongoDB Atlas Administration Service Accounts API
  version: '2.0'
  x-xgen-sha: 3d70e065843c008b9871ea7836c98c9de6f202f9
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (103 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mongodb/refs/heads/main/openapi/mongodb-service-accounts-api-openapi.yml