n8n API Gateway for Users, Orders, Products, and AIn8n API Gateway for Users, Orders, Products, and AI
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Problem: Apps need a secure, organized backend to handle users, orders, products and AI features.
Solution: Built a centralized API Gateway (BFF) in n8n Cloud. One webhook handles validation, API key security and rate limiting, then routes to sub-workflows: Users (register/login), Orders (stock check, totals, status), Products (search), and AI (OpenAI chat, recommendations, review summaries). Supabase is the database.
Tools: n8n, Supabase, OpenAI API, Webhooks
Self-initiated demo project.
Kapil's avatar
I'd test authorization separately for each sub-workflow, especially Orders. Does the gateway pass a verified user identity through, or does the Orders workflow check that the caller can access each order?
Sadia's avatar
Good question. The gateway looks up the API key in the users table and passes the resolved userId down to the sub-workflows, so the identity comes from the database, not from the request body.
Orders then enforces ownership itself: listing filters by user_id, and the status...
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started