Block 1 - Sticky Note - How It Works
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
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 Postma...
n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.webhook, n8n-nodes-base.stopanderror, n8n-nodes-base.if, n8n-nodes-base.gmail
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis 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, compares them using openapi-diff, then posts detected API changes directly to the GitHub Pull Request and emails the team. This helps engineering teams instantly validate API contract changes, catch breaking updates early and keep testers/mobile developers synced automatically.
/webhook/api-update.openapi-diff and POST results to /webhook/api-diff-result.Managing API changes across backend, QA, mobile and frontend teams can become messy when OpenAPI specs are updated manually. This workflow solves that by creating an automated pipeline between GitHub, Postman and your internal notification channels.
Whenever code or spec changes are pushed to the develop branch, the workflow first refreshes your Postman Mock Server so testers can immediately work with the latest API behavior. It then downloads both old and new API spec files.
Next, an external GitHub Actions process runs openapi-diff to compare the specs and sends the result back into n8n. If changes exist, the workflow cleans the output, posts it as a GitHub Pull Request comment and emails the summary to stakeholders.
/openapi_specs/openapi_old.yaml
/openapi_specs/openapi_new.yaml
GitHub Push Trigger
↓
Load Config
↓
Refresh Postman Mock
↓
Download Old Spec
↓
Download New Spec
↓
GitHub Actions runs openapi-diff
↓
Send Result to n8n Webhook
↓
If changes found:
├─ Comment on PR
└─ Send Email
Else:
└─ Stop execution
Upload the JSON file into n8n.
Connect:
Replace sample values with your real values:
postman.apiKeypostman.mockIdgithub.repogithub.tokengithub.prIdCreate webhook inside your repository:
POST https://your-n8n-domain/webhook/api-update
Trigger on:
Use Docker image for openapi-diff and POST response to:
https://your-n8n-domain/webhook/api-diff-result
Turn workflow ON and test with a sample OpenAPI change.
Use environment variables or credentials instead of plain text values.
Point to another mock server or workspace.
Customize PR comment format:
Send to:
Filter only:
Backend updates endpoints → mobile team receives diff instantly.
Tester receives changed API list before release testing.
Architecture team tracks breaking changes across repos.
Reviewers see API contract changes directly in GitHub comments.
Frontend, backend and product teams stay aligned.
There can be many more enterprise and SaaS use cases for this workflow.
| Issue | Possible Cause | Solution |
|---|---|---|
| Webhook not triggering | Wrong GitHub webhook URL | Recheck endpoint |
| No PR comment posted | Invalid GitHub token | Regenerate PAT |
| Mock not refreshed | Wrong Postman mock ID | Verify mock server ID |
| Email not sent | Gmail OAuth expired | Reconnect Gmail |
| No diff detected | Same specs or bad file path | Validate YAML files |
| Workflow stops early | Empty diff payload | Check GitHub Actions POST body |
Need help deploying or customizing this workflow for production use?
Our n8n workflow developers at WeblineIndia can help you with:
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Refresh API mocks and send OpenAPI diff alerts with GitHub and Postman |
|---|---|
| Complexity | advanced |
| Nodes | 23 |
| Categories | DevOps |
| Author | WeblineIndia |
| Published | 18 Apr 2026 |
Use the JSON export at /data/workflows/15123/15123.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 Postma...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.