Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

service desk python atlassian api rights issues Edited



I created an api key and I use 

sd = ServiceDesk(

the code to authenticate. In browser I use the same email and my own password

I then try and call these 3 calls

1. print(sd.get_info())
2. print(sd.get_service_desks())
3. print(sd.get_service_desk_by_id('1111111')) 


getting back 

1. {'version': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'platformVersion': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'buildDate': {'iso8601': '2019-09-12T16:00:57+1000', 'jira': '2019-09-12T07:00:57.000+0100', 'friendly': 'Yesterday 4:00 PM', 'epochMillis': 1568268057000}, 'buildChangeSet': '971389ce99a7c7673bf7b9fe2a7083d9109e34c2', 'isLicensedForUse': True, '_links': {'self': ''}}
2. None
3. {'message': 'Client must be authenticated to access this resource.', 'status-code': 401}

 In the browser calling the end point for service desks with same email and password i.e. 

GET /rest/servicedeskapi/servicedesk I see all the services desks

Can anyone help with this? ie the discrepency and/or rights issues

2 answers

1 accepted

0 votes
Answer accepted

Hi In the end it was my token which was bad. I regenerated and it works meaning that the API does work for jira cloud

I believe that the python packages you are using works only on server versions. I might be wrong.


Btw even though you put xxxx in your url. Link still points to your site. Thought you might want to update it.

thanks if someone can confirm that this is right will mark as accepted answer and thanks for pointing out on the url. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

231 views 3 5
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you