This API is in preview. Breaking changes might be introduced before it is released. Don't use preview APIs in production.
Creates an Atlas Ephemeral cluster and returns its connection and claim details.
An Ephemeral cluster is a temporary Free cluster that you can create and connect to without an Atlas account. Atlas pauses the cluster 2 days after creation and deletes it 7 days after creation unless you claim it to an Atlas account.
Claiming an Ephemeral cluster converts it into a standard Free cluster with no expiration date and moves it into a new or existing Atlas organization. Until you claim the cluster, you can read and write its data but can't perform administrative operations, such as scaling the cluster, adding database users, or changing network access.
Atlas deploys all Ephemeral clusters to AWS us-east-1 and allows connections from any IP address (0.0.0.0/0). To learn more about Ephemeral clusters, see Create an Atlas Ephemeral Cluster in the MongoDB Atlas documentation.
atlas api ephemeralClusters createEphemeralCluster --help
curl --include \
--header "Accept: application/vnd.atlas.preview+json" \
--header "Content-Type: application/json" \
-X POST "https://cloud.mongodb.com/api/atlas/v2/unauth/ephemeralClusters:create" \
-d '{ <Payload> }'
{
"clusterName": "string"
}
# Headers
# Payload
{
"claimUrl": "https://example.com",
"clusterId": "string",
"connectionString": "string",
"expiresAt": "2026-05-04T09:42:00Z",
"status": "ACTIVE",
"termsOfService": "string"
}
{
"detail": "(This is just an example, the exception may not be related to this endpoint) No provider AWS exists.",
"error": 400,
"errorCode": "VALIDATION_ERROR",
"reason": "Bad Request"
}
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 429,
"errorCode": "RATE_LIMITED",
"reason": "Too Many Requests"
}
{
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"error": 500,
"errorCode": "UNEXPECTED_ERROR",
"reason": "Internal Server Error"
}