JIRA Marketplace REST API Token

Hello,

I have an atlassian vendor account and I’m currently trying to fetch the licenses for my vendor id with a third party application just as it is described here: https://developer.atlassian.com/platform/marketplace/rest/#api-vendors-vendorId-reporting-licenses-get

I’ve create an api token in my vendor profile but it doesn’t seem to work and I keep receiving the 401 http response. If I use instead of the api token my password, everything is ok.

So basically if I run curl like this it works:
curl --request GET --url "https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/reporting/licenses" --user "email:password" --header "Accept: application/json"

and if I run it with the api token it fails:

curl --request GET --url "https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/reporting/licenses" --user "email:api_token" --header "Accept: application/json"

Any ideas why?

Thank you

5 Likes

We are struggling with the same issue. We are using Gsuite.

Any update in this matter?

Looks like others have recommended Atlassian change it, but no apparent changes so far:
https://community.developer.atlassian.com/t/support-api-tokens-for-marketplace-rest-api-authentication/15737

1 Like