Templates / Refresh API mocks and send OpenAPI diff alerts with GitHub and Postman

Refresh API mocks and send OpenAPI diff alerts with GitHub and Postman

Ready for 3.0

by WeblineIndia ✓ · 45 views · created 2026-04-18 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Set: Config (Edit Fields (Set)): sets or maps fields
  2. Check If data is not empty (If): checks a condition and branches into true / false
  3. Update Postman Mock (HTTP Request): calls an HTTP API
  4. Get Fields (Edit Fields (Set)): sets 3 fields: repo, pr, diff
  5. Stop and Error: stops the run with an error
  6. Download OLD OpenAPI Spec (HTTP Request): calls an HTTP API
  7. Comment to PR (HTTP Request): calls an HTTP API
  8. Download NEW OpenAPI Spec (HTTP Request): calls an HTTP API
  9. Send Summary Email (Gmail): uses Gmail

Services it uses

Gmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

API Mock Auto-Refresh with GitHub, Postman & OpenAPI Diff Alerts This n8n workflow automates the full API specification update lifecycle whenever changes are pushed to GitHub. It refreshes a Postman mock server, downloads the old and new OpenAPI specs,…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.