Is there any API to create branch in repository and commit changes or add files to repository.
Yes, you can create a branch using API 2.0 as following
https://api.bitbucket.org/2.0/repositories/{repo_slug}/src/ --F "parents={parent_hash}" --F "branch={branch_name}"
Here is the documentation of API
It looks like you're new here. Sign in or register to get started.