MongoDB Online Archive API

Returns, adds, edits, or removes an online archive.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives List online archives for a cluster · Return All Online Archives for One Cluster #
Ask an LLM
“Which online archives exist for a cluster in my project?”
“Can I see all archival jobs set up on one cluster?”
Tell an agent
List online archives for cluster {clusterName} in project {groupId}.
Show every archive on cluster {clusterName} in project {groupId}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives Create an online archive · Create One Online Archive #
Ask an LLM
“How do I archive old data from a collection into an online archive?”
“Can I set a data expiration rule when creating an online archive?”
Tell an agent
Create an online archive for collection {collName} in database {dbName} on cluster {clusterName} in project {groupId}.
Archive {collName} in {dbName} on {clusterName} with criteria {criteria}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/queryLogs.gz Download query logs from an online archive · Download Online Archive Query Logs #
Ask an LLM
“Can I download the query logs that were run against my online archive?”
“Can I restrict online archive query logs to the archive only?”
Tell an agent
Download query logs for cluster {clusterName} in project {groupId}.
Download {archiveOnly} online archive query logs for {clusterName} in {groupId} from {startDate} to {endDate}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/{archiveId} Remove an online archive · Remove One Online Archive #
Ask an LLM
“How do I delete an online archive?”
“Can I remove an archive from a cluster?”
Tell an agent destructive · confirm first
Delete online archive {archiveId} from cluster {clusterName} in project {groupId}.
Remove archive {archiveId} on {clusterName} in {groupId}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/{archiveId} Get one online archive · Return One Online Archive #
Ask an LLM
“What are the settings of a specific online archive?”
“Can I look up one archive by its ID?”
Tell an agent
Get online archive {archiveId} on cluster {clusterName} in project {groupId}.
Show the configuration of archive {archiveId} on {clusterName} in {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/{archiveId} Pause, resume or update an online archive · Update One Online Archive #
Ask an LLM
“Can I pause an online archive without deleting it?”
“How do I change the schedule of an existing archive?”
Tell an agent
Pause online archive {archiveId} on cluster {clusterName} in project {groupId}.
Resume archive {archiveId} on {clusterName} in {groupId} with schedule {schedule}.

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

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

mongodb-online-archive-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Online Archive API
  version: '2.0'
  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
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Online Archive across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (59 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-online-archive-api-openapi.yml