Unable to generate access token getting 401

Hapatil
Tera Contributor

Trying to get access token using command

curl -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&client_id=<client-id>&client_secret=<secrect>&username=<user>&password=<password>"  https://<instance>.service-now.com/oauth_token.do

 

but getting error 

{"error_description":"access_denied","error":"server_error"}

 

validated all the mentioned parameters in curl command but always getting same error

 

0 REPLIES 0