Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Jira Service Desk Rest API

Michael Yu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2021

Hi,

Trying to create a script using the REST API but each request keeps returning '401' response code.

Snippet:

url = f"https://{domain}.atlassian.net/rest/servicedeskapi/servicedesk"

headers = { "Accept": "application/json", "Authorization": f"Bearer {access_token}" }

response = requests.request( "GET", url, headers=headers )

 

The same authentication headers are working with Jira but not with the service desk. 

 

1 answer

0 votes
Ajay _view26_
Community Champion
September 26, 2021

Hi @Michael Yu 

 

It should work as there is no difference in the authentication scheme.

Have you looked the documentation below

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-get

 

Cheers

Ajay

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events