What will be the URL to access the API of a custom Bitbucket domain of any company? Edited

Hi Team,

I need to find the url for the custom bitbucket domain of my company. For example, to get the information of comments on a ceratin pull request from one's own bitbucket account, we can access as this from this url:

https://api.bitbucket.org/2.0/repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments

Let's say for ABC organization, the bitbucket domain is https://bitbucket.dev.ABC.com

In this case, how can I access its API to get the information of pull requests of a certain project under this domain.

Kindly revert.

Thanks & Regards.

2 answers

1 accepted

0 vote

Those are two completely separate products, and many places only use one of them. If your organization uses Bitbucket Server, then you will need to talk to somebody in the organization to find out what the hostname is- that information does not exist on Bitbucket Cloud.

Thank you James. I would contact some one in my organization for the same.

0 vote

I think you're confusing Bitbucket Cloud (hosted at bitbucket.org, no matter what the company) and Bitbucket Server (hosted at some other name, just not "*.bitbucket.org", "*.bitbucket.com", or "*.bitbucket.io"). They're different products, with similar but different APIs.

Hi James,

Thanks for your reply. Kindly look into the screenshots attached and provide your inputs. ownRepo.JPG

This above screenshot states my private account of bitbucket whose status code is 200 OK.

Please suggest the URL of API for the following screenshot which states my professional account. 

workRepo.JPG

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

25,674 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you