Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing private repo using API

Sakshi Barnwal September 17, 2018

Need help in accessing private BitBucket Repo via API using basic auth.

2 answers

0 votes
novocien October 19, 2018

Hi Shakshi!
May you will find useful my example.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2018

Hi Sakshi,

Are you using Bitbucket Server or Cloud? Have you already checked our online documentation at Bitbucket Cloud REST API and Bitbucket Server REST API? Did you encounter any issues?

Let us know!

Ana

Sakshi Barnwal September 18, 2018

Hi Ana,

 

We are using Bitbucket Server and have checked the REST API , although it gives me code/files/commits list only for repositories I am owner of . So, for other repositories for which I have even admin access, it gives 404 error, with the give message:

{
"type": "error",
"error": {
"message": "Repository <username>/{repo slug} not found"
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events