AutomationMart
Home/Browse/Securely call Google Cloud Run APIs with service account auth (main-workflow)
n8n

Securely call Google Cloud Run APIs with service account auth (main-workflow)

n8nn8n10 modulesv1.0

Who it’s for? 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. How it works This is a conjunctive workflow: the main workflow calls Service Auth (sub-workflow) to get a G

At a glance

Securely call Google Cloud Run APIs with service account auth (main-workflow) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Modules
10
Price
Free
Version
v1.0
Securely call Google Cloud Run APIs with service account auth (main-workflow) workflow diagram

About this workflow

Who it’s for? 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. How it works 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 <idtoken>. Works great for single calls or looping over items. How to set up 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: 1. Create a Cloud Run service and enable Require authentication (Cloud IAM). 2. Create a Google Service Account and grant Cloud Run Invoker on that service. 3. In n8n, import the workflows and update the Vars node (serviceurl, optional servicepath). 4. Create a JWT (PEM) credential from your service account key, then run. 5. Make sure to read the sticky notes in the workflows—they contain helpful pointers and optional configurations. Requirements - Cloud Run service URL (auth required) - Google Service Account with Cloud Run Invoker - Private key JSON fields downloaded from Service Account | needed to generate JWT credentials How to customize 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. More details 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

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Export Cloudflare domains with DNS records and settings to Google Sheets

How it works This workflow simply exports all your CloudFlare domains to Google Sheet to get high overview of all of your settings. This could help for easy debugging, searching or similar needs. In flow simple pagging nodes are used to iterate over all your domains, because this list could be huge. For each host we are merging DNS & Settings and transforming them into columns for all our domains. Requirements For storing and processing of data in this flow you will need: - CloudFlare.com API

Free

Evaluate automotive component compliance with OpenAI GPT-4.1 and regulatory APIs

How It Works This workflow automates automotive regulatory compliance evaluation by intelligently routing assessments through parallel evaluation paths based on component type. Designed for automotive compliance officers, quality assurance teams, and regulatory affairs managers, it solves the complex challenge of ensuring vehicle components meet diverse regulatory standards across safety, emissions, and performance requirements. The system receives compliance evaluation requests via webhook, det

Free

AI secretary for scheduling with WhatsApp and Telegram

AI secretary for scheduling with WhatsApp and Telegram &gt; ⚠️ Community Disclaimer &gt; This workflow is community-maintained and self-hosted. &gt; It is not officially affiliated with or supported by n8n GmbH, OpenAI, or Google. &gt; Users are responsible for their own configuration, security, and data compliance (e.g., HIPAA, LGPD, GDPR). &gt; Always secure API keys and ensure compliance with your local privacy regulations. --- 🧠 Description This template deploys an AI-powered virtual med

Free

Automated Instagram comment response with DMs & Google Sheets tracking

Description This automation template is designed for Instagram marketers, influencers, and businesses looking to supercharge their Instagram engagement strategy. It automatically monitors Instagram post comments and sends personalized direct messages (DMs) to new commenters, while maintaining a smart tracking system to prevent duplicate messages. The workflow runs continuously, checking for new comments every 15 minutes and responding instantly to maintain high engagement rates. Note: This workf

Free

Automated restaurant call handling & table booking system with VAPI and PostgreSQL

Acts as a virtual receptionist for the restaurant, handling incoming calls via VAPI without human intervention. It collects user details (name, booking time, number of people) for table bookings, checks availability in a PostgreSQL database using n8n, books the table if available, and sends confirmation. It also provides restaurant details to users, mimicking a human receptionist. Key Insights 1. VAPI must be configured to accurately capture user input for bookings and inquiries. 2. Postgr

Free

Get real-time NFT Marketplace insights with OpenSea Marketplace Agent Tool

Track NFT listings, offers, orders, and trait-based pricing in real time! This workflow integrates OpenSea API, AI-powered analytics (GPT-4o-mini), and n8n automation to provide instant insights into NFT trading activity. Ideal for NFT traders, collectors, and investors looking to monitor the market and identify profitable opportunities. How It Works 1. A user submits a query about NFT listings, offers, or order history. 2. The OpenSea Marketplace Agent determines the correct API tool: - Re

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free