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 Collection Level Metrics API

Returns, adds, and edits pinned namespaces for the specified cluster or process. Also returns collection level latency metric data.

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

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

This API exposes 9 operations across 7 paths, and defines 11 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.

9 operations 7 paths 11 schemas 6 GET2 PATCH1 PUT

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 Collection Level Metrics 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 9

Across 7 paths, the API surfaces 9 operations — 6 GET, 2 PATCH, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Collection Level Metrics 9

Returns, adds, and edits pinned namespaces for the specified cluster or process. Also returns collection level latency metric data.

GET
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/pinned
Return Pinned Namespaces
listGroupClusterCollStatPinnedNamespaces 3 params → 200400401403404429500
PATCH
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/pinned
Add Pinned Namespaces
updateGroupClusterCollStatPinnedNamespaces 3 params body → 200201400401403404429500
PUT
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/pinned
Pin Namespaces
pinGroupClusterCollStatPinnedNamespaces 3 params body → 200201400401403404429500
PATCH
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/unpin
Unpin Namespaces
unpinGroupClusterCollStatUnpinNamespaces 3 params body → 200400401403404429500
GET
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/collStats/namespaces
Return Ranked Namespaces from One Cluster
getGroupClusterCollStatNamespaces 7 params → 200401403404429500
GET
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/{databaseName}/{collectionName}/collStats/measurements
Return Cluster-Level Query Latency
listGroupClusterCollStatMeasurements 10 params → 200400401403404429500
GET
/api/atlas/v2/groups/{groupId}/collStats/metrics
Return All Metric Names
listGroupCollStatMetrics 2 params → 200400401403404429500
GET
/api/atlas/v2/groups/{groupId}/processes/{processId}/collStats/namespaces
Return Ranked Namespaces from One Host
getGroupProcessCollStatNamespaces 6 params → 200401403404429500
GET
/api/atlas/v2/groups/{groupId}/processes/{processId}/{databaseName}/{collectionName}/collStats/measurements
Return Host-Level Query Latency
listGroupProcessCollStatMeasurements 9 params → 200400401403404429500

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are MeasurementsCollStatsLatencyCluster (11 properties), MeasurementsCollStatsLatencyHost (9 properties), ApiError (6 properties), CollStatsRankedNamespacesView (3 properties). Each schema is shown below with its type and property counts.

ApiError
object
6 properties 2 required
Link
object
2 properties
FieldViolation
object
2 properties 2 required
MeasurementsCollStatsLatencyCluster
object
11 properties
PinnedNamespaces
object
Pinned namespaces view for cluster.
3 properties 1 required
MetricDataPoint
object
Value of, and metadata provided for, one data point generated at a particular moment in time. If no data point exists for a particular moment in time, the valu…
2 properties
CollStatsRankedNamespacesView
object
3 properties 1 required
BadRequestDetail
object
Bad request detail.
1 property
MetricsMeasurement
object
3 properties
NamespacesRequest
object
1 property
MeasurementsCollStatsLatencyHost
object
9 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mongodb-collection-level-metrics-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 Collection Level Metrics 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.