Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Which bitbucket REST API to use for a company account hosted on a DataCenter? Edited


I am trying to integrate bitbucket with one of our applications and am confused on which API to use for it. At this point, I am trying to get a response from bitbucket being used in our organization and am using Personal Access token via Basic Auth 

When trying to use : 
I get a 401 unauthorized exception with Basic Auth and with No Auth , there is no exception response but there is no data returned.

Using :

https://bitbucket.<CompanyName>.com/rest/api/1.0/projects/re/repos/PROJ/ with Basic Auth (Personal Access token), I am able to get a response back from the server. I have not tried other APIs yet.

Which one of the above should I be using and is the latest API. (Though I am having trouble with 2.0) or maybe the URL for the 2.0 API (with company account ) is different than the above.

Can someone please point me in the right direction?
Going forward, I need to commit files , create branch, create pull requests etc .


Thank you



1 answer

I was able to find the answer to my question.  In case your company is using Bitbucket server or Data center , using https://bitbucket.<CompanyName>.com/rest/api/1.0/projects/re/repos/PROJ/  is the way to go.

2.0 API should be used  if the company bitbucket is hosted on cloud. (1.0 API for cloud has been deprecated but the bitbucket server Rest API still uses the above URL with 1.0 )

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

327 views 2 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you