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

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

What is the API URL for bitbucket servers with alternate basenames?

I need to do some simple API queries on a few open source projects. This is quite straightforward for projects hosted at, with the API for a given project looking like:<REPO>/<PROJECT>

But I need to access the API for a project with a custom/business base url like:

I haven't been able to find any documentation on this and my various permutations on api as part of the basename (or adding it to the path) haven't turned up anything either. I assume/hope the API is still available for repos with this configuration, but I would very much appreciate some direction.

1 answer

1 accepted

1 vote
Answer accepted

Hello and welcome to the community!<REPO>/<PROJECT> can be used for Bitbucket Cloud repos, hosted on

An instance with a URL like is a Bitbucket Server instance (self-hosted) and the API is different.

The following documentation has a list of REST resources for Bitbucket Server (version 7.7.0):

Kind regards,

Thanks! That did the trick. If anyone else finds this thread the solution for the repo in question looks like:


But the REST documentation makes it pretty clear what's worth trying if a repo's API URL doesn't exactly conform to that pattern.

Like Theodora Boudale likes this

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...

3,784 views 10 16
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