Back to Blog
Eduard PiliposyanEduard Piliposyan·

Migrate your MongoDB Data API in 30 minutes

MongoDBMongoDB AtlasCloud Deployment
Migrate your MongoDB Data API in 30 minutes

Introduction

MongoDB has recently announced the deprecation of its Atlas Data API (as well as Custom HTTPS Endpoints) for Atlas App Services - set to become unavailable after September 30, 2025. This affects many developers and applications that rely on HTTP-based CRUD access to Atlas clusters.

Official MongoDB deprecation notice

What is MongoDB Data API?

The Data API provided a simple, RESTful HTTP interface directly to your MongoDB Atlas cluster - developers could perform CRUD operations via HTTP requests without needing a full backend or client driver. It was especially useful for serverless workflows, quick integrations, and frontend-only applications.

Who Used It - and What's Happening Now?

Many serverless apps, low-code tools, and rapid prototyping platforms relied heavily on the Data API. These users are now facing pending disruptions as MongoDB phases it out. On September 30, 2025, both the Data API and Custom HTTPS Endpoints are planned to be removed.

MongoDB has published documentation to help users migrate, recommending alternatives like Express + Drivers, Cloud Functions, and partner solutions. But for most teams, adopting these options means a complex setup process, significant time investment, and, in many cases, the added challenge of migrating data.

Introducing Modelence: Your Drop-in Replacement

Replacing the deprecated Data API is easy. With Modelence, you can provision a fully functional, production-ready MongoDB Data API replacement in about 30 minutes - no heavy backend work required.

Step-by-Step Migration with Modelence

  1. Create a new Modelence app and cloud environment by following the setup wizard. Register at cloud.modelence.com.
  2. Choose the data-api template from example apps.
  3. Copy the generated command and run it in your terminal to deploy data-api to your Modelence Cloud.
  4. In the Modelence Dashboard, view your app deployment status in the Deployments tab.
  5. Once it's deployed (which will take 5-10 minutes), navigate to Application → Custom Configuration section and set your Data API key and MongoDB URI. You can always change them, and we recommend rotating API keys periodically for security purposes.
  6. Your endpoint will have the following format: http://<your-app>.prod.modelence.app

Now you can use the following endpoints to invoke your Data API:

Login example: Use the API key configured in the previous step.

curl --location 'http://<your-app>.prod.modelence.app/auth/providers/api-key/login' \
  --header 'Content-Type: application/json' \
  --data '{ "key": "123" }'

This will return an access token, which should be used in all API calls as an authorization bearer.

Insert document example:

curl --location 'http://<your-app>.prod.modelence.app/data/v1/action/insertOne' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <access-token>' \
  --data '{
    "dataSource": "Cluster0",
    "database": "dataApi",
    "collection": "users",
    "document": { "name": "John Sample", "age": 42 }
  }'

For an interactive feel, use the Postman-like interface available at http://<your-app>.prod.modelence.app.

Available Endpoints in Modelence Data API

Just like MongoDB's original Data API, the Modelence replacement exposes all the essential CRUD endpoints - and even more.

  • Schema & Index Management: listCollections, createCollection, dropCollection …
  • Aggregate: Run MongoDB aggregations via aggregate
  • Delete: deleteOne, deleteMany
  • Update: updateOne, updateMany
  • Find: findOne, find, with full query operators
  • Insert: insertOne, insertMany
  • Authentication: API key login endpoint (/auth/providers/api-key/login)

These cover everything MongoDB Data API users are used to - meaning you can migrate your app with no feature gaps.

Try the Demo App Right Now

Want to play with the Data API replacement immediately? We've deployed a demo app you can try without setup:

https://data-api-demo.modelence.app/

This provides a Postman-like interface for experimenting with endpoints, so you can test queries and mutations before deploying your own.

Benefits in Just 30 Minutes

  • Monitor usage and performance in the Monitoring tab of Modelence Cloud.
  • Complete deployment with monitoring, auth, and configuration UI.
  • Fully working, production-ready Data API replacement.

If you expect high load on your MongoDB API, reach out to support@modelence.com for scaling options.

Final Thoughts

Modelence delivers a fast, reliable, and scalable way to replace MongoDB's deprecated Data API - keeping your apps running seamlessly and giving you greater visibility and control. Try it today and stay ahead of the September 2025 deprecation deadline.

Questions or feedback?

We're here to help at support@modelence.com, and you can also connect with us in our Discord channel for real-time discussions.