Forums

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

Do not send a request via the service account API

Varvara K_
Contributor
December 21, 2025

I created a service account and created credentials for it in the form of an API token. I'm testing it using Postman (https://api.atlassian.com/ex/jira/{cloudid}/rest/api/3/project/PROF). In the authorization settings, I specify the service account email and token. But I get an error. Although I checked using the Rights Assistant, the service account has rights for this project.Снимок экрана 2025-12-22 104218.png

2 answers

2 votes
Tomislav Tobijas
Community Champion
December 21, 2025

Hmm, following this 👀

What I only managed to find are these:

But they do not say much about that issue you're experiencing.

As you're using Postman, have you tried passing the token as a Bearer token in the authorization header?
I usually mix between the two (Basic and Bearer) when using Postman 😅

Cheers,
Tobi

Evgenii
Community Champion
December 22, 2025

Agree. According to documentation, Bearer token must be used. Basic type isn't used here.

Like # people like this
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 22, 2025

Bearer token must be used. Basic type isn't used here

Yep!

Like Tomislav Tobijas likes this
Varvara K_
Contributor
December 24, 2025

Ask, I have always used Basic, in order to use Bearer I need to transmit data in this format:
Bearer <Uncoded token>?

Varvara K_
Contributor
December 24, 2025

@Evgenii @Sunny Ape I use for auth Api token, maybe i must to use OAuth 2.0?

Evgenii
Community Champion
December 24, 2025

You can use OAuth 2.0, but this path will be more painful.
I tried request with API Token - it's working. I assume, you have 401 error. It can be due to wrong or missing scopes.
Here is example of Postman with request, made with API token,

Postman_241225_846.png

Like Tomislav Tobijas likes this
Varvara K_
Contributor
December 24, 2025

Снимок экрана 2025-12-24 100021.pngI just don’t know what to do anymore, since I’ve already given out all possible rights.

0 votes
Varvara K_
Contributor
December 24, 2025

@Evgenii Bearer doesn`t work. I have a error. After I got a Api token I insert itСнимок экрана 2025-12-24 125223.png

Evgenii
Community Champion
December 24, 2025

Try GET request to 
https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/myself

It's basic request, which can help to understand, is your service account/token working or not. It must return JSON array with data about your service account.


Postman_241225_853.png

Varvara K_
Contributor
December 24, 2025

which scopes your Api token have?Снимок экрана 2025-12-24 150250.png

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