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
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!
It worked, thanks a lot!
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.