Anyone who wants a simple, secure way to call a Google Cloud Run endpoint from n8n—without exposing it publicly.
People who want a cheap/free-tier way to run custom API logic without hosting n8n or spinning up servers. Example: you’ve got scraping code that needs specific system/python libs—build it into a Dockerfile on Cloud Run, then call it as a secure endpoint from n8n.
This is a conjunctive workflow: the main workflow calls Service Auth (sub-workflow) to get a Google ID token, merges that auth with your context, then calls your Cloud Run URL with Authorization: Bearer <id_token>
. Works great for single calls or looping over items.
General instructions below—see my detailed guide for more info:
Build a Secure Google Cloud Run API, Then Call It from n8n (Free Tier)
Setup:
service_url
, optional service_path
).Change the HTTP method/path/body in Cloud Run Request, or drop the Service Auth (sub-workflow) into other workflows to reuse the same auth pattern.
Full write-up (minimal + modular flows), screenshots, and more:
Build a Secure Google Cloud Run API, Then Call It from n8n (Free Tier)
— by Marco Cassar