If your business runs on a database, there is a long list of chores that come with it. Somebody has to add and remove the people who can get at the data, make sure backups are happening and can actually be restored, spin up more capacity when things get busy, keep an eye on the logs, and reconcile the bill at the end of the month. Most teams do this by clicking around a dashboard. MongoDB lets you do all of it through an API instead, which means a script, your internal tools, or an AI assistant can take care of those chores for you on a schedule or on request.
An API is just a way for software to ask another piece of software to do something. Every button in the MongoDB Atlas dashboard has a matching request behind it, and once you know that, the dashboard stops being the only way in.
What MongoDB does
MongoDB provides a document-model database platform that can be deployed on any cloud or on your own infrastructure. A “document” database stores records as flexible, nested objects rather than rows in rigid tables, which suits applications whose data does not fit neatly into a spreadsheet. Its hosted service, MongoDB Atlas, handles multi-cloud data management, vector search for AI applications, and real-time operational workloads, and it ships tools like Compass for people who prefer a visual interface.
What you can get done
Control who can access your data
The most important question for any database is who can get into it. MongoDB exposes 95 operations for managing database users, custom roles, teams, service accounts and federated sign-in, so onboarding and offboarding can follow your HR process instead of someone remembering to do it.
POST /api/atlas/v2/groups/{groupId}/databaseUserscreates a new database user in a project.GET /api/atlas/v2/groups/{groupId}/databaseUserslists every database user in a project, handy for an access review.DELETE /api/atlas/v2/groups/{groupId}/databaseUsers/{databaseName}/{username}removes a user the day they leave.POST /api/atlas/v2/groups/{groupId}/customDBRoles/rolesdefines a custom role with exactly the permissions a job needs.
Back up and restore when something goes wrong
Backups only matter on the day you need one. With 64 operations covering snapshots, export buckets and restore jobs, you can check that backups exist, ship copies to your own storage, and kick off a restore without waiting on a person to log in.
GET /api/atlas/v2/groups/{groupId}/backup/exportBucketslists the storage buckets your snapshots are exported to.POST /api/atlas/v2/groups/{groupId}/backup/exportBucketssets up a new place to export snapshots.POST /api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobsstarts a restore for a cluster.GET /api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobsshows the status of past and running restores.
Add or change database capacity
A cluster is the group of servers your database runs on. MongoDB’s 53 infrastructure operations let you create clusters, see what you are running across every project, and upgrade a small shared cluster when your business outgrows it.
GET /api/atlas/v2/clustersreturns every cluster you are authorized to see, across all projects.POST /api/atlas/v2/groups/{groupId}/clusterscreates a new cluster in a project.GET /api/atlas/v2/groups/{groupId}/clusters/provider/regionslists the cloud regions you can deploy into.POST /api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeupgrades a shared-tier cluster.
Watch logs and metrics
Observability is the practice of knowing what your systems are doing without guessing. There are 41 operations here for sending metrics to the monitoring tools you already use and pulling down logs when you need to investigate.
POST /api/atlas/v2/groups/{groupId}/metricIntegrationsconnects your database metrics to an outside monitoring service.GET /api/atlas/v2/groups/{groupId}/metricIntegrationslists the integrations that are active.GET /api/atlas/v2/groups/{groupId}/clusters/{hostName}/logs/{logName}.gzdownloads the logs for one server.
Keep an eye on the bill
Finance teams want the numbers without asking engineering. Thirteen operations cover invoices and usage, so a monthly report can pull itself.
GET /api/atlas/v2/orgs/{orgId}/invoicesreturns all invoices for your organization.GET /api/atlas/v2/orgs/{orgId}/invoices/pendingshows what is accruing this period.GET /api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csvreturns an invoice as a CSV file ready for a spreadsheet.POST /api/atlas/v2/orgs/{orgId}/billing/costExplorer/usagestarts a cost breakdown query.
There is more beyond these five. MongoDB’s performance advisor will return suggested indexes and schema advice through GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/suggestedIndexes, and its security architecture operations let you manage encryption at rest with your own keys through PATCH /api/atlas/v2/groups/{groupId}/encryptionAtRest.
Getting started
MongoDB is freemium with self-serve signup, and it is a hosted service, so you call their endpoint rather than running anything yourself. For what it costs, see the pricing section of the MongoDB profile; the entry plan, Free (M0), is listed at $0/hour.
Start with how to authenticate in the authentication guide, then work from the Atlas Admin API reference. If you want to read and write your data directly over HTTPS, there is the Data API documentation, and for application services there is the App Services Admin API.
On APIs.io you will find the full MongoDB profile along with individual pages for the Atlas Data API, the Cloud Backups API, the Alerts API and the Access Tracking API.
Pick the one chore your team does by hand every week, whether that is the access review or the backup check, and hand that to the API first.
