Im trying to fetch a raw VERSION file from a repository for a CD solution.
I created a Repository Access Token with Repository: Read permission, as documented here
Using cURL,
curl https://api.bitbucket.org/2.0/repositories/tests/sourcerepo/src/master/VERSION \
∙ -H "Authorization: Bearer $TOKEN" \
∙ -H "Accept: application/json"
{"type":"error","error":{"message":"You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated."}}
Using the same URL in Postman with Authorization set to Bearer with the access token, i get
{
"type": "error",
"error": {
"message": "Token is invalid or not supported for this endpoint."
}
}
I cant use username and password for this.