Bitbucket: api for files