OAuth Token (postman)

I’m trying to get a response from the API

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

I am using postman, get a access token and then make the GET to this endpoint
I authorize and scope is set

Then get 401
Client must be authenticated to access this resource.

What am I missing to use OAuth2 (with postman) get the token (seems to be working fine) but when using that token I get a 401

Welcome to the Atlassian developer community @ScottAdamson,

Perhaps the JSM REST API reference docs don’t do as good a job as the Jira Platform reference in explaining the different URLs for different auth. So, maybe refer to the Jira Platform auth section, which applies to the JSM REST API as well. Specifically, I think you are constructing the request URL in the style of API Tokens & basic auth, which trying to use OAuth 2.0. For the endpoint you’re trying to call, that should look like this:


There are some more in-depth docs on our implementation of OAuth 2.0, including a section on finding the cloudId.