# Login **POST /auth/token** Authenticates a user with username and password and returns a JWT token pair. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ### Body: application/x-www-form-urlencoded (string) Username | Password string ## Responses ### 200 OK #### Body: application/json (object) - **access_token** (string) - **refresh_token** (string) - **token_type** (string) ### 400 Bad Request #### Body: application/json (object) object ### 401 Unauthorized #### Body: application/json (object) object ### 500 Internal Server Error #### Body: application/json (object) object [Powered by Bump.sh](https://bump.sh)