Skip to content

Curl to url with google auth


Some services like Cloud Functions and Cloud Run expose a URL that you need authentication to make a reques to


Requires you to have the below installed

  • curl
  • gcloud cli
curl -H \
"Authorization: Bearer $(gcloud auth print-identity-token)" \

Want to make this site better? Open a PR or help fund hosting costs