How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

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.

MongoDB Service Accounts API is one of 53 APIs that MongoDB publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Service Accounts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, rate-limit docs, and a changelog.

This API exposes 22 operations across 14 paths, and defines 19 schemas. It is described by OpenAPI 3.2.0, at version 2.0.

Requests are made against a single base URL, https://cloud.mongodb.com.

22 operations 14 paths 19 schemas 6 DELETE7 GET2 PATCH7 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.0
Base URL
https://cloud.mongodb.com/api/atlas/v2
Authentication
HTTP Digest, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 2

MongoDB Service Accounts API declares 2 security schemes for authenticating requests. It uses HTTP digest authentication (DigestAuth). It supports OAuth 2.0 (ServiceAccounts) using the clientCredentials flow. By default, every request must be authenticated.

  • ServiceAccounts — Learn more about [Service Accounts](https://www.mongodb.com/docs/atlas/api/service-accounts-overview).

Paths & Operations 22

Across 14 paths, the API surfaces 22 operations — 6 DELETE, 7 GET, 2 PATCH, 7 POST. Each is listed below with its method, path, parameters, and response codes.

Service Accounts 22

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.

GET
/api/atlas/v2/groups/{groupId}/serviceAccounts
Return All Project Service Accounts
listGroupServiceAccounts 5 params → 200401403404429500
POST
/api/atlas/v2/groups/{groupId}/serviceAccounts
Create One Project Service Account
createGroupServiceAccount 3 params body → 201400401403404429500
DELETE
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}
Remove One Project Service Account
deleteGroupServiceAccount 4 params → 204401403404429500
GET
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}
Return One Project Service Account
getGroupServiceAccount 4 params → 200401403404429500
PATCH
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}
Update One Project Service Account
updateGroupServiceAccount 4 params body → 200400401403404429500
GET
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList
Return All Access List Entries for One Project Service Account
listGroupServiceAccountAccessList 7 params → 200401403404429500
POST
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList
Add Access List Entries for One Project Service Account
createGroupServiceAccountAccessList 7 params body → 200400401403404409429500
DELETE
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList/{ipAddress}
Remove One Access List Entry from One Project Service Account
deleteGroupServiceAccountAccessListEntry 5 params → 204400401403404429500
POST
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets
Create One Project Service Account Secret
createGroupServiceAccountSecret 4 params body → 201400401403404429500
DELETE
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets/{secretId}
Delete One Project Service Account Secret
deleteGroupServiceAccountSecret 5 params → 204401403404429500
POST
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}:invite
Assign One Service Account to One Project
inviteGroupServiceAccount 4 params body → 200401403404429500
GET
/api/atlas/v2/orgs/{orgId}/serviceAccounts
Return All Organization Service Accounts
listOrgServiceAccounts 5 params → 200401403404429500
POST
/api/atlas/v2/orgs/{orgId}/serviceAccounts
Create One Organization Service Account
createOrgServiceAccount 3 params body → 201400401403404429500
DELETE
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}
Delete One Organization Service Account
deleteOrgServiceAccount 4 params → 204401403404429500
GET
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}
Return One Organization Service Account
getOrgServiceAccount 4 params → 200401403404429500
PATCH
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}
Update One Organization Service Account
updateOrgServiceAccount 4 params body → 200400401403404429500
GET
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList
Return All Access List Entries for One Organization Service Account
listOrgServiceAccountAccessList 7 params → 200401403404429500
POST
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList
Add Access List Entries for One Organization Service Account
createOrgServiceAccountAccessList 7 params body → 200400401403404409429500
DELETE
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList/{ipAddress}
Remove One Access List Entry from One Organization Service Account
deleteOrgServiceAccountAccessListEntry 5 params → 204400401403404429500
GET
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/groups
Return All Service Account Project Assignments
getOrgServiceAccountGroups 6 params → 200401403404429500
POST
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets
Create One Organization Service Account Secret
createOrgServiceAccountSecret 4 params body → 201400401403404429500
DELETE
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets/{secretId}
Delete One Organization Service Account Secret
deleteOrgServiceAccountSecret 5 params → 204401403404429500

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are OrgServiceAccount (6 properties), GroupServiceAccount (6 properties), ServiceAccountIPAccessListEntry (6 properties), ServiceAccountSecret (6 properties). Each schema is shown below with its type and property counts.

GroupServiceAccount
object
6 properties
OrgServiceAccountRequest
object
Organization Service Account that Atlas creates for this organization. If omitted, Atlas doesn't create an organization Service Account for this organization.…
4 properties 4 required
PaginatedOrgServiceAccounts
object
A list of Organization Service Accounts.
3 properties 1 required
ServiceAccountGroup
object
1 property
OrgServiceAccount
object
Organization Service Account that Atlas created for the organization.
6 properties
ApiError
object
6 properties 2 required
Link
object
2 properties
FieldViolation
object
2 properties 2 required
ServiceAccountIPAccessListEntry
object
6 properties
GroupServiceAccountUpdateRequest
object
3 properties
OrgServiceAccountUpdateRequest
object
3 properties
GroupServiceAccountRequest
object
4 properties 4 required
ServiceAccountSecretRequest
object
1 property 1 required
ServiceAccountSecret
object
6 properties 3 required
PaginatedServiceAccountGroup
object
A list of projects associated with the Service Account.
3 properties 1 required
BadRequestDetail
object
Bad request detail.
1 property
PaginatedServiceAccountIPAccessEntryView
object
3 properties 1 required
PaginatedGroupServiceAccounts
object
A list of Project Service Accounts.
3 properties 1 required
GroupServiceAccountRoleAssignment
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mongodb-service-accounts-api-openapi.yml Raw ↑

Other APIs MongoDB publishes across the network.

MongoDB Atlas Data API
MongoDB Atlas App Services Admin API
MongoDB Access Tracking API
MongoDB Activity Feed API
MongoDB Alert Configurations API
MongoDB Alerts API
MongoDB Atlas Search API
MongoDB Auditing API
MongoDB AWS Clusters DNS API
MongoDB Cloud Backups API
MongoDB Cloud Migration Service API
MongoDB Cloud Provider Access API
Where this information came from

This is an independent, third-party profile of MongoDB Service Accounts API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.