v50

latestOpenAPI 3.1.0raw.githubusercontent.com2025-06-09181183330.0 KB
admin

Authenticate as an App Services administrator

Authenticate as an App Services administrator using an Atlas programmatic API key pair. To learn more, see Get An Admin API Session Access Token.

post/auth/providers/mongodb-cloud/login

Request body

usernamestring required
apiKeystring required

Response

Authentication was successful.

access_tokenstring

An access token you may provide in the Authorization header of API requests. The App Services API Authentication section demonstrates how to use this token.

refresh_tokenstring

A refresh token you may provide in the Authorization header of POST auth/session to obtain a new access_token for the current user session.

user_idstring

The unique _id value of the MongoDB Cloud user.

device_idstring