Forums

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

API GET ZIPPED REPO

cedric
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2026

Good day,

 

I'am working on a project where we interact with Bitbucket api's.

The goal is to be able to download repositories in a zip format.
The end point fetched is the following: "https://api.bitbucket.org/2.0/repositories/workspaceName/repositoryName/downloads/main.zip"

 

I can reach the end point, but I get a 402 status code with the following message: "A workspace on a Free plan does not support uploading or downloading files. Upgrade to a Standard or Premium plan: https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Change-your-plan".

Can you confirm me that this action is not possible with a free plan ? And if it is the case, what would be the price ?

Thank you for the help,

Best regard,

Cédric S

2 answers

1 vote
Charlie Misonne
Community Champion
August 27, 2026

Hi @cedric 

Well I think the error confirms the limitation. I can not find this on the plan comparison page though.

I'm getting the same error as you on the free plan when making a request to https://api.bitbucket.org/2.0/repositories/<ws>/<repo>/downloads

Princing infomation is available at Bitbucket Pricing: Find the Right Plan for You | Atlassian

 

0 votes
Lucas Meier atlass
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2026

Yes, the 402 message is related to the workspace plan, not necessarily your API call. The Downloads endpoint isn’t available on the Free plan. If you just need the repository files as a ZIP, it may be worth checking the repository source/download options instead of using the Downloads API.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events