Forums

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

Getting always 401 while using Customer Service Management API

Christian Friede
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!
December 7, 2024

Hi, no matter what i try, nothing seems to work. For All APIs from Customer Service Management API I got a 401.

I use Basic Auth with <email>:<api key> Base64 encoded header

Other Service Management APIs just works fine with same credentials. Like i can create an Organization with: 

POST https://<my domain>.atlassian.net/rest/servicedeskapi/organization

 

But all request for i.e: 

https://api.atlassian.com/jsm/csm/cloudid/<my cloud id>/api/v1/organization/details

responds with 401.

Is there anything different from Authorization perspective for this API? What do I miss?

I'm getting My Cloud Id from here: https://<my domain>.atlassian.net/_edge/tenant_info

1 answer

0 votes
Jehan Bhathena
Community Champion
January 5, 2025

Hi @Christian Friede 

Welcome to the community!

Please can you share the API that was giving you the 401 error? Maybe that will help trying to isolate the behavior that you're facing,

Christian Friede
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!
January 6, 2025

Hi Jehan, I've documented in my post the API that gives me 401.

these are: 

https://api.atlassian.com/jsm/csm/cloudid/<my cloud id>/api/v1/organization/details

or

https://api.atlassian.com/jsm/csm/cloudid/<my cloud id>/api/v1/customer/details

We get it for all https://api.atlassian.com/jsm/csm/cloudid/<my cloud id>/api/v1/* enpoints.

 

Thanks for looking into it.

Christian

 

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