Create
cancel
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

Get all Repos from Workspace from Bitbucket API

Hey,

I have a little issue to get all repos from a workspace in bitbucketAPI, I only receive with status 200 this:

{ "pagelen": 10, "values": [], "page": 1, "size": 0}

The endpoint that I used is /repositories/{username} 

for authentication I created a OAUTH ID/Secrent in my settings 

 

thanks for your help

3 answers

1 accepted

0 votes
Answer accepted

Thanks everyone for your help, was a authentication issue only, we need to create token in this url>

https://bitbucket.org/site/oauth2/authorize?client_id=Client-ID-HERE&response_type=token

0 votes
Hana Kučerová Community Leader Oct 16, 2019

Hi,

this endpoint returns a paginated list of all repositories owned by the user with username from the url. Is your user really an owner of all the repositories?

0 votes
seanaty Atlassian Team Oct 16, 2019

It's likely that the way you're authenticating isn't working or you're authenticating as someone who doesn't have access to view the repositories you're requesting.

Since repositories can be public or private, you can view the repository list of any user (even without authentication) but the items in the list depend on your access. If you don't have access to view any of a workspace's repositories then you'll see an empty list.

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,826 views 0 7
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