MongoDB Atlas Search API

Returns, adds, edits, and removes Atlas Search indexes for the specified cluster. Also returns and updates user-defined analyzers for the specified cluster.

GitHub OpenAPI

Operations 18

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

POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes Create a legacy full-text search index · Create One Atlas Search Index #
Ask an LLM
“How do I create a legacy full-text search index on a collection in a cluster?”
“Can I set the number of partitions on a legacy full-text index?”
Tell an agent
Create a legacy full-text index named {name} on {database}.{collection} in cluster {cluster} of project {group}.
Create legacy full-text index {name} on {database}.{collection} in {cluster} with {numPartitions} partitions.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{databaseName}/{collectionName} List legacy full-text search indexes on a collection · Return All Atlas Search Indexes for One Collection #
Ask an LLM
“What legacy full-text search indexes exist on a collection?”
“Can I see the status of each legacy full-text index?”
Tell an agent
List legacy full-text indexes on {database}.{collection} in cluster {cluster} of project {group}.
Show the status of every legacy full-text index on {database}.{collection} in {cluster}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId} Delete a legacy full-text search index · Remove One Atlas Search Index #
Ask an LLM
“How do I remove a legacy full-text search index?”
“Can I delete a legacy full-text index by its ID?”
Tell an agent destructive · confirm first
Delete legacy full-text index {index} in cluster {cluster} of project {group}.
Remove the legacy full-text index {index} from {cluster}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId} Get a legacy full-text search index · Return One Atlas Search Index #
Ask an LLM
“How do I look up one legacy full-text search index by ID?”
“What fields and analyzers does a legacy full-text index use?”
Tell an agent
Get legacy full-text index {index} in cluster {cluster} of project {group}.
Show the fields and analyzers of legacy full-text index {index} in {cluster}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId} Update an Atlas Search index by its ID · Update One Atlas Search Index #
Ask an LLM
“Can I rename or repartition an Atlas Search index I already created, using its index ID?”
“Which Atlas role do I need to modify a Search index by ID?”
Tell an agent
Update Atlas Search index {indexId} on cluster {clusterName} in project {groupId} to be named {name} on {database}.{collectionName}.
Set {numPartitions} partitions on Atlas Search index {indexId} in cluster {clusterName} of project {groupId}, keeping name {name} on {database}.{collectionName}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment Delete search nodes from a cluster · Delete Search Nodes #
Ask an LLM
“How do I remove search nodes from a cluster?”
“Can I delete the search nodes on a cluster?”
Tell an agent destructive · confirm first
Delete the search nodes on cluster {cluster} in project {group}.
Remove search nodes from {cluster}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment List search nodes on a cluster · Return All Search Nodes #
Ask an LLM
“Which search nodes are deployed on my cluster?”
“What search node specs does a cluster have?”
Tell an agent
List the search nodes on cluster {cluster} in project {group}.
Show the search node specs for {cluster}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment Update search nodes on a cluster · Update Search Nodes #
Ask an LLM
“Can I change the search node specs on a cluster?”
“How do I update search nodes with a new spec?”
Tell an agent
Update the search nodes on cluster {cluster} in project {group} to specs {specs}.
Change the search node specs on {cluster} to {specs}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/deployment Create search nodes on a cluster · Create Search Nodes #
Ask an LLM
“How do I add search nodes to a cluster?”
“Can I create search nodes with a given spec?”
Tell an agent
Create search nodes on cluster {cluster} in project {group} with specs {specs}.
Add search nodes to {cluster} using {specs}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes List all search indexes on a cluster · Return All Atlas Search Indexes for One Cluster #
Ask an LLM
“What Atlas Search indexes exist across a cluster?”
“Can I list every search index on a cluster?”
Tell an agent
List all search indexes on cluster {cluster} in project {group}.
Show every Atlas Search index across {cluster}.
POST /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes Create a Search index (v2) · Create One Atlas Search Index #
Ask an LLM
“How do I create a Search index on a collection with the v2 API?”
“What cluster versions support v2 Search indexes?”
Tell an agent
Create v2 Search index {name} on collection {collection} in database {database} on cluster {cluster} in project {project}.
Create v2 Search index {name} in {database}.{collection} on {cluster}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName} List search indexes on a collection · Return All Atlas Search Indexes for One Collection #
Ask an LLM
“What search indexes are on a collection?”
“Can I list the search indexes for one collection?”
Tell an agent
List search indexes on {database}.{collection} in cluster {cluster} of project {group}.
Show the search indexes for {database}.{collection} in {cluster}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}/{indexName} Delete a search index by name · Remove One Atlas Search Index by Name #
Ask an LLM
“How do I remove a search index by its name?”
“Can I delete a search index using its database, collection and name?”
Tell an agent destructive · confirm first
Delete search index {index} on {database}.{collection} in cluster {cluster} of project {group}.
Remove the search index {index} from {database}.{collection} in {cluster}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}/{indexName} Get a search index by name · Return One Atlas Search Index by Name #
Ask an LLM
“How do I look up a search index by its name?”
“What does a search index look like when I name it?”
Tell an agent
Get search index {index} on {database}.{collection} in cluster {cluster} of project {group}.
Show the definition of search index {index} on {database}.{collection} in {cluster}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}/{indexName} Update a search index by name · Update One Atlas Search Index by Name #
Ask an LLM
“Can I change a search index's definition by its name?”
“How do I edit a search index using its database, collection and name?”
Tell an agent
Update search index {index} on {database}.{collection} in cluster {cluster} of project {group} to {definition}.
Change the definition of search index {index} on {database}.{collection} in {cluster} to {definition}.
DELETE /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{indexId} Delete a Search index by ID (v2) · Remove One Atlas Search Index by ID #
Ask an LLM
“How do I delete an old Search index?”
“Is deleting a v2 Search index immediate?”
Tell an agent destructive · confirm first
Delete v2 Search index {index} on cluster {cluster} in project {project}.
Remove v2 Search index {index} from {cluster}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{indexId} Get a Search index by ID (v2) · Return One Atlas Search Index by ID #
Ask an LLM
“How do I see the fields and analyzer of one Search index?”
“Is the v2 Search index definition stored with the index?”
Tell an agent
Show v2 Search index {index} on cluster {cluster} in project {project}.
Fetch the v2 Search definition of index {index}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{indexId} Update a Search index by ID (v2) · Update One Atlas Search Index by ID #
Ask an LLM
“Can I change the definition of a Search index that already exists?”
“How do I update an existing v2 Search index?”
Tell an agent
Replace the definition of existing Search index {index} on cluster {cluster} in project {project}.
Update v2 Search index {index} using definition {definition}.

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-atlas-search-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-atlas-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Atlas Search 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 Atlas Search 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 (124 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-atlas-search-api-openapi.yml