Getting 401 errors for Atlassian pricing APIs

Abbas Ismail December 7, 2023

Trying to import pricing from public with query filter.
It was working fine till 2023-11-30.

https://www.atlassian.com/hamlet/1.0/public/pricing/query

We were using it without Auth as it seems to be a public endpoint. 
It recently stopped working and receiving 401 (unauthorized)  errors now.

4 answers

1 accepted

0 votes
Answer accepted
Artem Grotskyi December 22, 2023

@Abbas Ismail,

You should add the second "public" in the URL (between "pricing" and "query").
I can't post the URL here, unfortunately.

Screenshot 2023-12-22 at 13.38.50.png

David Bakkers
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 Leaders.
December 22, 2023

Hello @Artem Grotskyi 

Where is the documentation for how to use that endpoint? What authentication methods does it support? What are the parameters that are passed to it?

When I query that endpoint with no authentication, it just returns an empty products array:

GET https://www.atlassian.com/hamlet/1.0/public/pricing/public/query

returns:

{"products":[],"currency":"USD"}

 

Abbas Ismail December 24, 2023

@Artem Grotskyi - Yep this this one working as expected, guess just an endpoint path change by Atlassian.

Like Artem Grotskyi likes this
David Bakkers
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 Leaders.
December 25, 2023

Hello @Abbas Ismail 

Can you please provide a complete example of how you are making a request to that 'working as expected' endpoint, including any language / tool being used, auth method, request parameters, and a complete copy / screen grab of the response of that request.

Again, to a request with no auth or parameters, all I get is a response with a single empty array.

Artem Grotskyi December 31, 2023

@David Bakkers ,

Sorry, I'm not aware of the documentation.
I'd suggest reaching out to the Atlassian support team and asking them if they have anything that they can share.

It doesn't require any authentication method, though.
I use it to get information about specific Atlassian products, e.g.:


query?currency=USD&licenseType=ACADEMIC&licenseType=COMMERCIAL&licenseType=STARTER&requestingApplication=WAC&productKey=com.atlassian.bitbucket&productKey=pricingplan.stash-data-center
0 votes
Artem Grotskyi December 21, 2023

Hi @Abbas Ismail ,

Were you able to find a solution? 

0 votes
Marc - Devoteam
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 Leaders.
December 8, 2023

Hi @Abbas Ismail 

Welcome to the community.

I never heard of this before.

I suggest to raise an issue via Atlassian Support as this seems to be an Atlassian functionality

0 votes
David Bakkers
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 Leaders.
December 7, 2023

Hello @Abbas Ismail 

I've never heard of this 'pricing API' before.

Can you provide a link to the location of the documentation for it that describes what it is used for and how it's accessed (authentication methods and parameters etc).

Abbas Ismail December 8, 2023

Hello @David Bakkers

Here is the URL endpoint for the API (public)

https://www.atlassian.com/hamlet/1.0/public/pricing/query

It was supposed to be No Auth endpoint, but it's responding with 401 errors

David Bakkers
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 Leaders.
December 8, 2023

All you have provided is the path to the endpoint, again. You didn't provide the location of the documentation about this endpoint that says you're allowed to use it and that says you don't need authentication.

I get a feeling you're just randomly querying one of Atlassian's internal APIs that provides functionality to its public websites. Atlassian probably don't want people querying that endpoint directly, so they've now added authentication to prevent public access to it.

Abbas Ismail December 8, 2023

Yes @David Bakkers

I wasn’t able to find any documentation around this endpoint path.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events