What I want
- I have a python backend application, using a service account, running in docker.
- I have a cloud build trigger that is connected to a bitbucket repository. This trigger uses a webhook. For revision I use tags.
- I want to trigger this webhook with my backend application. I want to provide a specific tag (using a placeholder variable).
- I want the backend to give me a list of all available tags (like I get on the console.google.com frontend, see screenshot)

What I tried
I tried this API endpoint using a Bearer token (which works fine), but it doesn't provide me with a tag list: Source Repo API
curl https://sourcerepo.googleapis.com/v1/projects/<project>/repos/<repo>' --header "Authorization: Bearer $(gcloud auth print-access-token)" --header 'Accept: application/json'
Because it is possible to retrieve all tags in the cloud console, I used the developer tools to find the endpoint that provides me with all available tags:

https://console.cloud.google.com/m/source/repos/get?project=<project>&repo=<repo>
My issue here is that it takes cookies to authenticate, if I use the Bearer token it does not work.
Is it possible to authenticate my service account automatically against console.google.com to use this endpoint? Or is there another way to get a list of tags?