Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can I view/read a file from BitBucket using API?

I have a json file stored in BitBucket. My goal is to view the json file as a raw using Postman or invoking an HTTPS request.<repo>/<project>/raw/master/config_test.json?response=json

The URL above works fine when I view it from the browser, but now when I call it from postman. I even tried the but still not working.

I'm getting this error

    "error": {
        "message""Resource not found",
        "detail""There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at:"
I have already tried creating an app password and using Authorization: Bearer <token> but still unsuccessful.

1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 07, 2022

Requesting in your browser works because it is likely using your session cookie to authenticate.

For API authentication, here are some ideas of what to check.

1. Definitely use

2. The app password needs your username still, it is not a bearer token. e.g. you need to use curl -u my-username:my-app-password

This is the API you'll want to use to get a file: as the first "raw" URL you posted isn't an API resource.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events