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

Does has api enabled?


I want to use to upload and retrieve files via the api. I seen that there is this this: which show some curl examples and i seen the login call 

curl -D- -u fred:fred -X GET -H "Content-Type: application/json" http://localhost:7990/rest/api/1.0/projects

i tried to use "curl -D- -u username:password -X GET -H "Content-Type: application/json" " and 2.0 to connect to instead but i get ssl error and answers i find online is to enable that on the server but it's the online free version.

So not sure if the api is actually enabled for the online service or it's only working with the server.

1 answer

0 votes
Ana Retamal Atlassian Team Jan 02, 2020

Hi @creatortag21 ,

You can also use the REST API with Bitbucket CLoud, but you need to look at the right documentation, as they do not necessarily work in the same way.

For Bitbucket Cloud, you can check the docs at About Bitbucket Cloud REST API .

If you're still having difficulties getting ti to work, let us know what are you trying to achieve so we have a bit of context, You can also jump in the Developer Community for more help.

Hope that helps!

Kind regards,


Hello i'm using that free version, i didn't buy any product. I was looking at that documentation and used this: 

curl -X POST -u "client_id:secret" \ \
  -d grant_type=authorization_code -d code={code}

 To connect. And i can only connect with a test ssl contract (?) i think, i'm using c# 

const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;
ServicePointManager.SecurityProtocol = Tls12;

 This is my test ssl but with this it looks like what ever i do it just answers with a success message.

What i'm trying to achieve is download and uploading files to my bitbucket.


curl -s -u evzijst -X POST -F files=@hello.txt


This is an example of what i want to achieve. I replace  "evzijst" with my repository name and the @hello.txt with my file. 

But it doesn't matter what the repository or the file is what ever i do it will say success. And i think that's because of my sslprotocol.


Looking in google i only find answers for activating ssl on my own bitbucket installation but this is not my own bitbucket this is the free online version that everyone can use


So that's my problem. If i remove my sslprotocol i can't connect using the auth curl command. Do you have any idea how could i solve this?

The request was aborted: Could not create SSL/TLS secure channel.

This is the error i have if i don't use that ssl i posted above.

Suggest an answer

Log in or Sign up to answer
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,787 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