cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to get token via api https://accountName.saas.appdynamics.com/controller/api/oauth/access_token

Tran.Vinh
Creator

I follow up on this doc to generate tokens via API but I didn't receive any response from the server.
https://docs.appdynamics.com/appd/4.5.x/en/extend-appdynamics/appdynamics-apis/api-clients#APIClient...
the curl like below:

curl -X POST -H "Content-Type: application/vnd.appd.cntrl+protobuf;v=1" "https://(accountName).saas.appdynamics.com/controller/api/oauth/access_token" -d 'grant_type=client_credentials&client_id=(username)@(accountName)&client_secret=(clientsecret)'
Please help me!



31 REPLIES 31

Hi, is this a production instance or a trial?

I just used your exact curl command, and updated with my values and it works. Don't see an issue with the Command.

I believe there is a limitation on using the API if using a trial, but if it is not a trial, you need to contact AppD Support to have a look at your controller to see what the issue is.



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Learn more about me in the Community Member Spotlight Q & A

No it's not a trial. But it was working correctly so why would AppD devs ship out a breaking change without notifying us ? We haven't touched the controller in months