Authenticates a user with username and password and returns a JWT token pair.
POST
/auth/token
curl \
--request POST 'https://agentengine.mongodb.com/auth/token' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
Response examples (200)
{
"access_token": "string",
"refresh_token": "string",
"token_type": "string"
}
Response examples (400)
{}
Response examples (401)
{}
Response examples (500)
{}