Not able to use CURL APIs to get the token

Options
yashshah130
yashshah130 Member, ALL USERS Posts: 2 New Contributor

I am using this curl API to get the auth token, but it is keep giving me error even after entering same username and password, which I have used to log-in into my Anaplan account, Please help here

 

CURL API -

 

curl -X POST --user {user}:'{password}' https://auth.anaplan.com/token/authenticate

 

Error -

 

{"status":"FAILURE_BAD_CREDENTIAL","statusMessage":"Authentication Failure. If you're unsuccessful after multiple attempts, your account may be locked. If you are using the Anaplan login page, click the 'Forgot Password' link. Otherwise, contact your Anaplan administrator or Anaplan Support."}