Forums

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

Ad-hoc querys in JSM public APi

Deivid Araujo
Contributor
September 23, 2024

Hey all!

 

 

I was trying to make API calls to the set of public JSM APIs, and since I’m already familiar with using the Jira Cloud API, I found it strange that I couldn’t make the calls.

After looking at the documentation (https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/#authentication), I understand that it’s not possible to make ad-hoc calls to this set of APIs, and I should have an actual application running to authorize my app, since one of the requirements for the authentication to work is to provide an callback url

 

Is my understanding correct?

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
September 23, 2024

No, you do not need an app in order to call the JSM API, you can use Basic authentication the same way that you use for Jira, see https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/#authentication-for-rest-api-requests.

Mikael Sandberg
Community Champion
September 23, 2024

Here is an example from the Get info endpoint

curl --request GET \
--url 'https://your-domain.atlassian.net/rest/servicedeskapi/info' \
--header
'Authorization: Bearer <access_token>' \
--header
'Accept: application/json'

 

Like Deivid Araujo likes this
Deivid Araujo
Contributor
October 11, 2024

Curious.

In the JSM postman collection, the standard authentication configuration is Oauth 2 and for some reason, when I looked at the documentation, the "ad-hoc" section was missing🤔

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