# Get current user **GET /api/v1/users/me** Returns the current user's profile information from the database. Requires a valid Bearer token. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ## Responses ### 406 Unsupported or malformed API version, an operation unavailable in the selected published contract, or an unacceptable representation (including unsupported media-type parameters or excluded SSE). Existing authentication, authorization, and rate-limit failures take precedence. #### Body: application/json (object) - **badRequestDetail** (object) Optional validation details defined by the standard error schema; API negotiation errors do not emit this field. - **detail** (string) Human-readable error details. - **error** (integer) HTTP status code. - **errorCode** (string) Machine-readable error code. - **parameters** (array[string]) Request parameter names associated with the error; omitted when none apply. - **reason** (string) HTTP status reason phrase. ### 200 OK #### Body: application/json (object) - **atlas_connection_required** (boolean) AtlasConnectionRequired is true when Atlas IAM delegation is on and no usable Atlas OAuth grant is available — including a recorded auth failure or circuit-open token. Federated login brokers a nested Atlas grant; password login may still auto-start GET /api/v1/oauth/atlas/initiate. - **atlas_iam_enabled** (boolean) AtlasIAMEnabled is true while Atlas IAM delegation is active for the user, independent of Atlas connection state (AtlasConnectionRequired flips off once a grant exists). The UI uses it to hide creation actions the Gateway rejects under delegation, such as creating Agent Engine organizations. - **email** (string) - **last_selected_org_id** (string) LastSelectedOrgID is the user's most recently selected organization ID in the UI. Hint only; callers re-validate against current memberships. Omitted when unset. - **last_selected_project_id** (string) LastSelectedProjectID is the user's most recently selected project ID in the UI. Hint only; callers re-validate against current memberships. Omitted when unset. - **name** (string) - **org_ids** (array[string]) - **role_assignments** (array[object]) - **user_id** (string) ### 401 Unauthorized #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 500 Internal Server Error #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) [Powered by Bump.sh](https://bump.sh)