I'm trying to use Google Cloud Build's REST API: https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.triggers/list
I'm wondering if it's possible to authenticate with this API by using an API Key, I tried passing the key parameter:
GET https://cloudbuild.googleapis.com/v1/projects/<project>/builds?key=<key>
But this results in a 401 error message. Is there an extra step required? How do you authenticate with this API?
For context, I'm trying to use this API from a Cloud Function.