System Routes
| Route | Access | Answer |
|---|---|---|
GET /version | public | name, version, build date of the server; since 2.8 also core: { name, version }, the server core that runs (the name and version above are the ones of the application) |
GET /system/capabilities | logged in | features, limits and the denied aggregation operators |
GET /system/info | admin | MongoDB version (cached for an hour) |
GET /system/stats | admin | uptime, connections, operation counters, replica set |
GET /system/settings | admin | settings overview |
GET /system/configurations, PATCH .../{key}, DELETE .../{key} (2.6) | admin | configuration |
GET /system/cluster | admin | this process (there is no cluster) |
/system/jobs/* | admin | jobs |
/system/monitoring/* | admin | metrics, with the feature metrics() (404 without) |
DELETE /system | admin | stops the standalone server. An embedded server answers 400 |
GET /docs/docs.yaml | public | the OpenAPI spec with the name, version and path of this server (DOCS_OPENAPI) |
GET /docs | public | Scalar API reference (DOCS_SWAGGER) |
Capabilities
A client can adapt to the server it talks to:
{
"serverVersion": "2.0.0",
"mongoDbMajor": 7,
"features": ["permissions", "count", "searchInBody", "export", "import", "..."],
"limits": {
"importMaxBytes": 1073741824, "bodyMaxBytes": 67108864, "pagingMaxRows": 0,
"exportMaxDocuments": 0, "gridfsUploadMaxBytes": 0, "grantDeniedStatus": 403
},
"aggregationStagesDenied": ["$accumulator", "$function", "$out"]
}limits (2.6: all of them, for every user; 0 is no limit) are the limits of the server. features lists the features of this version: permissions, count, searchInBody, manyFilter, aggregateFilter, insertManyUnordered, collectionsInfo, collectionsInfoDatabase, fieldsDetail, indexDetails, indexOrderedCreate, collectionRename, collectionCopy, extendedJsonWrite, extendedJsonRead, export, import, systemInfo, systemStats and capabilities. A server without the route (404) is older. The opt-in auth features are listed only when they are on: authSessions (3.0, AUTH_SESSIONS), and since 3.1.0 authRegistration:open or authRegistration:invite (AUTH_REGISTRATION), authRequireVerifiedEmail, authPasswordReset and authPasswordless — a UI shows the matching forms without guessing.
Statistics
{
"uptimeSeconds": 86400,
"connections": { "current": 12, "available": 838848, "totalCreated": 340 },
"opcounters": { "insert": 10, "query": 200, "update": 5, "delete": 1, "getmore": 0, "command": 4000 },
"partial": false
}The operation counters are totals since the database server started, so compute rates from two reads. Members of a replica set also get replicaSet (name, state, memberCount, healthyMembers). If the database user may not read the server status (it needs clusterMonitor), the answer is partial: true without these numbers.
