A man using a tablet at a white table with a cup of coffee, banner image on the MongoDB: react to inserts, updates, replaces and deletes in a collection, database or cluster. page

Connector - Data

MongoDB: react to inserts, updates, replaces and deletes in a collection, database or cluster.

Document database - flexible schemas for fast-moving app data.

What MongoDB can do

Starts when

  • A document is inserted into a collection
  • A document is updated, with the full updated document if you want it
  • A document is replaced
  • A document is deleted
  • A collection is created, modified, renamed or dropped
  • A database is dropped

What it does

Ways teams use this connector.

Example 1

Collection growth anomalies alert on a schedule.

Example 2

New indexes from the profiler summarize for review.

Example 3

Document-schema drift reports compile monthly.

How connecting works

Access: MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write roles for data access - no consent screen involved. You create the credential once on the provider's side and paste it here; HiringsAI stores it against your account and disconnect from the same screen whenever you want. Source: official MongoDB documentation.

1You create it onceIn MongoDB Atlas's own settings - service account orprogrammatic API key.2The mechanism, exactlyAdministration API credentials manage the project; reading andwriting data uses a database user with read or write roles.3Token stored against your accountNothing reads or writes before you connect.4Disconnect anytimeFrom the same screen, whenever you want.How access works for this connector.

Free tools for this job

These free tools do part of the job in your browser, with no account: JSON Data Studio · Database Schema Designer · Weekly Report Compiler.

All connectors

How it works

Growth anomaly. Sample collection (example).

StepEventWhat happens (example)
1orders grows 40% in a dayAlert on the next scheduled check
2Profiler suggests index on customer_idSummarized for review
3Month endSchema drift report
4ReviewIndex decision

An example with sample numbers.

MongoDB Atlas Administration API limits

This field map explains Atlas Administration API rate limits and authentication behind the MongoDB connector. Each row names a value a run has to keep track of.

FieldMeaningHow to use it
service accountCredentialAtlas recommends service accounts: OAuth 2.0 with the client credentials flow, using a client ID and a rotatable secret to create access tokens.
access token1 hourA service account access token lasts 1 hour (3,600 seconds). It cannot be refreshed, so a run requests a new one near expiry and reuses the token meanwhile.
API keysLegacyAPI keys with HTTP Digest Authentication are a legacy method that Atlas still supports.
endpoint setLimit groupEach endpoint belongs to an endpoint set, a group sharing the same limits, and a scope of organization, project, user or IP address.
token bucketAlgorithmAtlas adds tokens at a fixed refill rate up to a capacity. When the bucket is empty it returns 429.
RateLimit-RemainingHeadersResponses may carry RateLimit-Limit, RateLimit-Remaining and Retry-After. Atlas says they may be missing, so a run cannot depend on them.
retry strategyBackoffWait at least the Retry-After time, then back off exponentially: 10 seconds, 20, 40 and so on, with jitter.
rateLimitsRead the limitsA GET request to the rateLimits resource lists the limits for every endpoint set and scope.

Example MongoDB Atlas tasks

Each example turns one use into inputs, expected results and checks. They show how the connector behaves.

List projects for an organization

Example input: a service account and a request to list organizations and their projects.

Expected result: a token requested once, reused, and each call watched for 429.

Check: the example 429 in Atlas’s docs shows a capacity of 10 and a refill of 5 per 60 seconds on one orgs endpoint, so the run does not assume more.

Recover from a 429

Example input: a 429 with Retry-After of 55 seconds.

Expected result: the run waits at least 55 seconds, and backs off further with jitter if the retry fails.

Check: Atlas says even waiting exactly Retry-After can be rate limited again when several clients retry together, which is why it recommends exponential delay with jitter.

Refresh a token near expiry

Example input: a run that lasts three hours.

Expected result: a new token at about the one-hour mark, not one token per request.

Check: tokens last 3,600 seconds and cannot be refreshed, only replaced.

Service accounts, scopes and rate limits

Atlas Administration API requests are authenticated with a service account access token or an API key. A service account or key must belong to the organization that holds the project the URL names. The connector uses the narrowest role that covers a task.

Limits differ by endpoint set and scope, and Atlas publishes them through the rateLimits resource. Atlas asks customers who need more to contact support.

Creating or terminating a cluster, or changing network access, is a real change that can cost money or cut off access. A run that does either waits for approval first.

Sources: Atlas Administration API rate limits, Atlas Administration API authentication.

Questions about this connector

Can I connect MongoDB?

Yes. Connect it from your HiringsAI account. Anything that changes data waits for your approval.

How does MongoDB sign-in work?

MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write roles for data access - no consent screen involved. You approve access once. HiringsAI stores the credential against your account, names what it holds, and lets you disconnect from the same screen.

What does it read and write?

No. Nothing reads or writes until you connect.

A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the MongoDB: react to inserts, updates, replaces and deletes in a collection, database or cluster. page

Find the connector you need.

Every connector page lists what it can do.

Starts whenA sample runA document is inserted into a collectionA document is updated, with the full updated document if you want itA document is replacedA document is deletedA collection is created, modified, renamed or droppedA database is droppedorders grows 40% in a dayProfiler suggests index on customer_idMonth endReviewservice accountaccess tokenStarts whenA sample runA document is inserted into a collectionA document is updated, with the full updated document if you want itA document is replacedA document is deletedA collection is created, modified, renamed or droppedA database is droppedorders grows 40% in a dayProfiler suggests index on customer_idMonth endReviewservice accountaccess token
01

What MongoDB can do

This page lists what the MongoDB connector can start from, do and find. Each section below takes one part and shows it step by step, from the connector's own feature list.

Starts when6 ways to start a run, such as: A document is inserted into a collection.
A sample runGrowth anomaly.
02

What starts a run in MongoDB

These are the events in MongoDB that can start a playbook.

A document is inserted into a collectionStarts a run in MongoDB.
A document is updated, with the full updated document if you want itStarts a run in MongoDB.
A document is replacedStarts a run in MongoDB.
A document is deletedStarts a run in MongoDB.
A collection is created, modified, renamed or droppedStarts a run in MongoDB.
A database is droppedStarts a run in MongoDB.
03

A sample run, step by step

Growth anomaly. The numbers are made up to show the shape of a run.

orders grows 40% in a dayAlert on the next scheduled check
Profiler suggests index on customer_idSummarized for review
Month endSchema drift report
ReviewIndex decision
Sample run (example data)
StepEventWhat happens (example)
1orders grows 40% in a dayAlert on the next scheduled check
2Profiler suggests index on customer_idSummarized for review
3Month endSchema drift report
4ReviewIndex decision
  1. Step 1orders grows 40% in a day: Alert on the next scheduled check
  2. Step 2Profiler suggests index on customer_id: Summarized for review
  3. Step 3Month end: Schema drift report
  4. Step 4Review: Index decision
04

MongoDB Atlas Administration API limits

This field map explains Atlas Administration API rate limits and authentication behind the MongoDB connector. Each row names a value a run has to keep track of.

service accountCredential: Atlas recommends service accounts: OAuth 2.0 with the client credentials flow, using a client ID and a rotatable secret to create access.
access token1 hour: A service account access token lasts 1 hour (3,600 seconds).
API keysLegacy: API keys with HTTP Digest Authentication are a legacy method that Atlas still supports.
endpoint setLimit group: Each endpoint belongs to an endpoint set, a group sharing the same limits, and a scope of organization, project, user or IP address.
token bucketAlgorithm: Atlas adds tokens at a fixed refill rate up to a capacity.
RateLimit-RemainingHeaders: Responses may carry RateLimit-Limit, RateLimit-Remaining and Retry-After.
MongoDB Atlas Administration API limits
FieldMeaningHow to use it
service accountCredentialAtlas recommends service accounts: OAuth 2.0 with the client credentials flow, using a client ID and a rotatable secret to create access tokens.
access token1 hourA service account access token lasts 1 hour (3,600 seconds). It cannot be refreshed, so a run requests a new one near expiry and reuses the token meanwhile.
API keysLegacyAPI keys with HTTP Digest Authentication are a legacy method that Atlas still supports.
endpoint setLimit groupEach endpoint belongs to an endpoint set, a group sharing the same limits, and a scope of organization, project, user or IP address.
token bucketAlgorithmAtlas adds tokens at a fixed refill rate up to a capacity. When the bucket is empty it returns 429.
RateLimit-RemainingHeadersResponses may carry RateLimit-Limit, RateLimit-Remaining and Retry-After. Atlas says they may be missing, so a run cannot depend on them.
retry strategyBackoffWait at least the Retry-After time, then back off exponentially: 10 seconds, 20, 40 and so on, with jitter.
rateLimitsRead the limitsA GET request to the rateLimits resource lists the limits for every endpoint set and scope.
05

List projects for an organization

Example input: a service account and a request to list organizations and their projects.

Expected resulta token requested once, reused, and each call watched for 429.
Checkthe example 429 in Atlas’s docs shows a capacity of 10 and a refill of 5 per 60 seconds on one orgs endpoint, so the run does not assume more.
Inputa service account and a request to list organizations and their projects.
  1. InputExample input: a service account and a request to list organizations and their projects.
  2. Expected resultExpected result: a token requested once, reused, and each call watched for 429.
  3. CheckCheck: the example 429 in Atlas’s docs shows a capacity of 10 and a refill of 5 per 60 seconds on one orgs endpoint, so the run does not assume more.
06

Recover from a 429

Example input: a 429 with Retry-After of 55 seconds.

Expected resultthe run waits at least 55 seconds, and backs off further with jitter if the retry fails.
CheckAtlas says even waiting exactly Retry-After can be rate limited again when several clients retry together, which is why it recommends exponential delay with jitter.
Inputa 429 with Retry-After of 55 seconds.
  1. InputExample input: a 429 with Retry-After of 55 seconds.
  2. Expected resultExpected result: the run waits at least 55 seconds, and backs off further with jitter if the retry fails.
  3. CheckCheck: Atlas says even waiting exactly Retry-After can be rate limited again when several clients retry together, which is why it recommends exponential delay with jitter.
07

Refresh a token near expiry

Example input: a run that lasts three hours.

Expected resulta new token at about the one-hour mark, not one token per request.
Checktokens last 3,600 seconds and cannot be refreshed, only replaced.
Inputa run that lasts three hours.
  1. InputExample input: a run that lasts three hours.
  2. Expected resultExpected result: a new token at about the one-hour mark, not one token per request.
  3. CheckCheck: tokens last 3,600 seconds and cannot be refreshed, only replaced.
08

Service accounts, scopes and rate limits

Atlas Administration API requests are authenticated with a service account access token or an API key. A service account or key must belong to the organization that holds the project the URL names. The connector uses the narrowest role that covers a task.

Limits differ by endpoint set and scopeLimits differ by endpoint set and scope, and Atlas publishes them through the rateLimits resource.
Creating or terminating a clusterCreating or terminating a cluster, or changing network access, is a real change that can cost money or cut off access.
SourcesSources: Atlas Administration API rate limits, Atlas Administration API authentication.
09

How connecting works

Access: MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write roles for data access - no consent screen involved. You create the credential once on the provider's side and paste it here; HiringsAI stores it against your account and disconnect from the same screen whenever you want. Source: official MongoDB documentation.

Can I connect MongoDB?Yes.
How does MongoDB sign-in work?MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write.
What does it read and write?No.
10

Free tools for this job

These free tools do part of the job in your browser, with no account.

JSON Data StudioOpens in your browser, no account.
Database Schema DesignerOpens in your browser, no account.
Weekly Report CompilerOpens in your browser, no account.
11

Ways teams use MongoDB

The uses this page lists for the MongoDB connector, one per example.

Example 1Collection growth anomalies alert on a schedule.
Example 2New indexes from the profiler summarize for review.
Example 3Document-schema drift reports compile monthly.
  1. Use 1Collection growth anomalies alert on a schedule.
  2. Use 2New indexes from the profiler summarize for review.
  3. Use 3Document-schema drift reports compile monthly.
12

Questions about MongoDB

The questions this page answers about the MongoDB connector.

Can I connect MongoDB?Yes.
How does MongoDB sign-in work?MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write.
What does it read and write?No.
Can I connect MongoDB?

Yes. Connect it from your HiringsAI account. Anything that changes data waits for your approval.

How does MongoDB sign-in work?

MongoDB Atlas credentials in two layers: a service account or programmatic API key for the Administration API, and a database user with read or write roles for data access - no consent screen involved. You approve access once. HiringsAI stores the credential against your account, names what it holds, and lets you disconnect from the same screen.

What does it read and write?

No. Nothing reads or writes until you connect.

13

Where to go next from MongoDB

These pages on this site help you check the details around the MongoDB connector before you build a playbook.

ConnectorsBrowse every connector and compare what each can start, do and find.
PricingSee what each plan includes.
TrustRead how data, access and security are handled.
ToolsTry the free tools that run in your browser.
  1. BrowseOpen the connectors list.
  2. CheckRead the pricing page.
  3. VerifyRead the trust page.
  4. TryOpen a free tool.

Back to MongoDB

Pick another connector or read this one again.

MongoDB connectorAll connectors