MongoDB Resources

MongoDB is a source-available cross-platform document-oriented database program for high-volume storage. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.

Additional Tools for MongoDB Managed Databases

The DigitalOcean API

The DigitalOcean API lets you manage DigitalOcean resources programmatically using conventional HTTP requests. All the functionality available in the DigitalOcean Control Panel is also available through the API.

By sending requests to the API’s /v2/databases endpoint, can create, manage, and destroy MongoDB clusters using the DigitalOcean API.

All applicable endpoints and request body structures are identical to the other database engines we provide. To create or manage your MongoDB database using the API, use the mongodb value in any request body that requires the engine field.

For example, to create a MongoDB cluster using the API, pass a POST request to the endpoint with the following request body:

  "name": "backend",
  "engine": "mongodb",
  "version": "4",
  "region": "nyc3",
  "size": "db-s-2vcpu-4gb",
  "num_nodes": 1,
  "tags": [

View the database section of the DigitalOcean API Reference

See the API documentation on databases for more information.

The DigitalOcean Command Line Client, doctl

doctl is a command-line interface for the DigitalOcean API and supports many of the same actions.

doctl supports managing database clusters, database pools, replicas, and users, and more. Use doctl databases help for more information.

More Information

Official MongoDB Documentation