# Complete hosted platform OAuth callback **GET /auth/oauth/callback** Public browser callback for PLATFORM_OAUTH_REDIRECT_URI. Validates state and browser-binding cookie, exchanges the code, reconciles Atlas roles when applicable, and either resumes Agent Engine OIDC login or redirects to the in-app next path. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ### Query parameters - **state** (string) Opaque pending-grant state - **code** (string) Authorization code - **error** (string) Authorization-server error - **error_description** (string) Authorization-server error description ## Responses ### 302 Redirect to Agent Engine OTC callback, in-app next, or coarse error destination #### Body: application/json (string) string ### 409 Authorization or login finalization already in progress #### Body: application/json (string) string ### 503 Platform OAuth not configured #### Body: application/json (string) string [Powered by Bump.sh](https://bump.sh)