I was able to get all commits between 2 commit IDs from an existing branch. But for a new branch, the start commit is 0x0, and when using this API (https://developer.atlassian.com/server/bitbucket/rest/v900/api-group-repository/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-get), it says that start commit is invalid.