I am sorry, but isn’t that excatly what I have done in my CURL command as shown below:
curl -X POST “https://XXX/api/account/authenticate” ^
-H “Content-Type: application/json” ^
-H “Accept: application/json” ^
-d “{ “TenancyName”: “XXX”, “UsernameOrEmailAddress”: “XXX”, “Password”: “XXX” }”