Forums

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

Use a service account to integrate with my product

Akash P
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 9, 2025

Hello, 

I have a device management solution (MDM). I want service requests to be created in Jira Service Management in response to critical incidents reported by my MDM. 

I believe creating a service account would be the best course of action as using a service account credentials will ensure that the integration keeps working irrespective of user scopes/status. 

I have created a service account, and I am trying to access the Jira Service Management APIs via the endpoint - https://[jsm].atlassian.net/rest/servicedeskapi authenticating via the API key for the service account.  

However, all responses are 401 unauthorized. I am not sure what I am doing wrong, or if there is a better way to do this. 

2 answers

3 votes
Dirk Ronsmans
Community Champion
September 9, 2025

@Akash P ,

I'd suggest starting with the documentation, especially https://support.atlassian.com/user-management/docs/manage-api-tokens-for-service-accounts/

On the page you can see a note that the service accounts are a little different from regular accounts where as they need to call the api.atlassian.com endpoints instead of the instance specific ones.

 

You need to call the Atlassian API to use API tokens with scopes for Jira {{https://api.atlassian.com/ex/jira/{cloudId}}
or Confluence {{https://api.atlassian.com/ex/confluence/{cloudId}}.
How to construct a request to call the API

Jira public API

Confluence public API

https://api.atlassian.com/ex/jira/<cloudId>/{api}  and not `https://your-domain.atlassian.net/{api}

https://api.atlassian.com/ex/confluence/{cloudid}/{api}  and not https://your-domain.atlassian.net/{api}

 

Beyond that, make sure to add the base64 encoded string of the service account email:token as an authorization header with basic authentication.

0 votes
Akash P
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 9, 2025

I see that I can maybe use Web Trigger for this. 

Suggest an answer

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

Atlassian Community Events