API gateway patterns
- Step 1 · Open your development environment
- Step 2 · Connect the existing system
- Step 3 · Create a security policy with three sign-in methods
- Step 4 · Set up the signature
- Step 5 · Create the API and attach the policy
- Step 6 · A proxy endpoint for the stock system
- Step 7 · Without signing in: refused
- Step 8 · With a signature: in
- Step 9 · The public description
The gateway is the one front door for every API your organisation offers — including systems you do not build yourself. You put an existing stock system behind a proxy endpoint, choose per API how consumers sign in (API key, OAuth 2.0, webhook signature), see a signed call get in and an unsigned one fail, and make the API's description public.
Connect the existing system
Under Connections you choose General HTTP API: base URL, key and what Flow may do with it. The key stays encrypted on the server and can never be read back. Read only means: Flow only does GET here.
Create a security policy with three sign-in methods
Under Security you create a policy. One method suffices for a consumer: a partner with an API key, an application with OAuth 2.0 (client credentials) or a webhook that signs its message with a shared secret (HMAC, like GitHub and Stripe). Public is off: every call should be traceable.
Set up the signature
Say in which header the sender puts its signature, with which prefix, and the shared secret. Flow recalculates the HMAC over the received body itself; if it does not match, the call does not get in.
Create the API and attach the policy
The policy hangs on the API, not on every endpoint: all endpoints inherit it and may only tighten it (fewer methods, more permissions, a lower limit). Also switch on Public documentation: then anyone can read the OpenAPI description, but nobody can call the API without signing in.
A proxy endpoint for the stock system
Not every endpoint needs a workflow. Forward to connection passes the request on to the existing system, with the key from the connection. The consumer sees your address and your security, never the key or the address of the system behind it.
This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).




































