Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

Facing issue with AppDynamics API REST call authentication


Facing issue with AppDynamics API REST call authentication

Hi ,
I am unable to access AppDynamics REST API.
If I write a sample code using the python client

from appd.request import AppDynamicsClient
c = AppDynamicsClient('URL','group','appd@123')
for app in c.get_applications():

It works fine .

But if I do a simple REST call like the following
I get the following response

import requests
usr =<uid>
pwd =<pwd>
url =''
response = requests.get(url,auth=(usr,pwd))
print 'response',response

response <Response [401]>
Am I doing anything wrong here ? In case anybody has faced such issue please let me know 

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Facing issue with AppDynamics API REST call authentication
AppDynamics Team

Hi Ayan,


Could you please  verify the password is correct by login in to the controller with the credentials. As  401 Unauthorized

Error means the page you were trying to see needs valid user ID and password.



Atyuha Pal

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