Forums

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

Use a service account's token against Jira Cloud API

Jérôme Ducret
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 3, 2025

Hello,

 

We are trying to leverage the new `service account` feature on Jira Cloud in order to automate some flows.


We created the service account, created an API Token, granted the service account some permissions and tried a couple of curls, but it seems the authentication is failing.

 

http GET "https://xxx.atlassian.net/rest/api/3/myself" --auth service-account-xxxx@serviceaccount.atlassian.com

returns:

> Client must be authenticated to access this resource.

 

We noticed the following headers:

X-Seraph-Loginreason: AUTHENTICATED_FAILED

1 answer

1 accepted

1 vote
Answer accepted
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2025

Hey @Jérôme Ducret

Welcome to Atlassian Community!

Since the service accounts only use scoped API tokens, you'll have to use the modified endpoint format: {{https://api.atlassian.com/ex/jira/{cloudId}}

The details are available in this document: What are scopes for API tokens?

Thanks!

Jérôme Ducret
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 5, 2025

It worked, thanks a lot!

Suggest an answer

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

Atlassian Community Events