The bitbucket cloud app allows to use the API by using a JWT token. That would then be another way to authenticate for making API calls.
Bitbucket documentation: https://developer.atlassian.com/cloud/bitbucket/authentication-for-apps/
Using the JWT would just add a header in the request such as "Authorization": "<insert jwt-token here>"