I have created a service account.
I can see it in admin.atlassian.com under directory -> Service accounts.
I want to create an API token. The following happens:
The issue is that the generated token is not working (401 Unauthorized). But what is even more worrying is that the newly created credential is not visible in the list of credentials for the service account.
I asked another admin for a different site if she could create credentials and the credentials didn't show up for her either.
Are any of you able to create new credentials for your service account at the moment?
/Daniel
Hi @Daniel Hamngren ,
I would check two separate things here.
For the 401 Unauthorized, make sure the request is using the correct endpoint format for scoped service account API tokens. Atlassian’s docs say these tokens should be used through the Platform API Gateway, for example:
https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/...
instead of calling the site URL directly, such as:
https://your-site.atlassian.net/rest/api/3/...
Also check:
- the token has the required Jira scopes, for example read/write scopes depending on the endpoint
- the service account has app access
- the service account has the required Jira project permissions
- you are using the service account email/account with the token, not your personal user
The part that worries me more is the credential not appearing in the service account credentials list after creation. If the same behaviour happens across different sites/admins, that sounds less like a permission problem and more like a possible Atlassian-side issue or rollout problem.
As a quick test, I would try a simple GET request against:
https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/project/{projectKey}
If that fails with 401, it is likely endpoint/auth/scope/app access. If the token is created but not listed in Admin afterwards, I would raise it with Atlassian Support.
Hello @Daniel Hamngren
Please try first steps from here 401 Unauthorized error when service account accesses Jira or Confluence API | Atlassian Cloud | Atlassian Support
If that doesn’t help, please let us know.
Best,
Arkadiusz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I tried the steps. I am using the correct URL for api requests.
That didn't help.
And there are still no credentials in the list under my service account.
Are you able to create a service account credential?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll check that within the next 2-3 hours and let you know.🤠🤞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.