JIRA Marketplace REST API Token

marketplace-vendor

#1

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