Flow.Documentation

A security policy on an API

6 steps± 4 minVideoVerified 22 Oct 2026
  1. Step 1 · Open your development environment
  2. Step 2 · Create a policy
  3. Step 3 · Demand a permission and a network
  4. Step 4 · Hang the policy on the API
  5. Step 5 · See where the policy applies
  6. Step 6 · Webhooks with a signature

A security policy says who gets into an API: with which sign-in method, with which permission and from which network. You create it once and hang it on one or more APIs. Every endpoint of those APIs inherits it and may only make it stricter.

Watch the whole guide as a video6 steps in one film
Step 1 / 6

Open your development environment

In the portal, under Environments, click Development, and there Open. Flow opens in a new tab and you are signed in straight away.

  1. Click Development
Open your development environment · Click Development
  1. Click Open ↗
Open your development environment · Click Open ↗
Step 2 / 6

Create a policy

Click Security in the bar on the left and + next to Security policies. A new policy lets consumers in with an API key. Give it a name that says what it is for.

  1. Click Security
Create a policy · Click Security
  1. Click New security policy
Create a policy · Click New security policy
  1. In Name, type Workshop network only
Create a policy · In Name, type Workshop network only
Step 3 / 6

Demand a permission and a network

Under Required scopes you put the permission every key must have. Under IP allowlist you put the networks calls may come from; empty means from anywhere. At the top Flow reads the policy back in plain language. Save it.

  1. In Required scopes, type parts:read
  2. In IP allowlist (CIDR), type 10.20.0.0/16
Demand a permission and a network · In Required scopes, type parts:read; In IP allowlist (CIDR), type 10.20.0.0/16
  1. Click Save policy
Demand a permission and a network · Click Save policy
Demand a permission and a network · In plain language: in with an API key, with the permission parts:read, only from 10.20.0.0/16.
Step 4 / 6

Hang the policy on the API

Open the API in the explorer. Under Security policy choose the new policy and save the API. The API's explanation now says that a consumer needs an API key and the permission.

  1. Click the API
Hang the policy on the API · Click the API
  1. In Security policy, choose Workshop network only
Hang the policy on the API · In Security policy, choose Workshop network only
  1. Click Save API
Hang the policy on the API · Click Save API
Hang the policy on the API · The API's explanation names the permission.
Step 5 / 6

See where the policy applies

With Open ↗ next to the policy you go back to the policy. At the top it now says which APIs it belongs to. If you change the policy, the change applies to all those APIs straight away.

  1. Click Open ↗
See where the policy applies · Click Open ↗
See where the policy applies · ‘Used by 1 API’, with the API Parts.
Step 6 / 6

Webhooks with a signature

When another system sends webhooks, it signs every call with a shared secret. Create a policy with Webhook signature for it, fill in the header and type the secret, or choose one From the vault. Flow keeps a typed value as a named secret; the policy only remembers that name and shows which version it uses. A new version in Secrets applies at the next call. The same field appears under External JWT when the identity provider signs tokens with a shared secret. When Flow checks tokens with the identity provider's keys (JWKS), issuer and audience are required: the same keys also sign the tokens of other organisations, and without those two the policy lets nobody in.

  1. Click Security
Webhooks with a signature · Click Security
  1. Click New security policy
Webhooks with a signature · Click New security policy
  1. In Name, type Supplier webhooks
Webhooks with a signature · In Name, type Supplier webhooks
  1. Click Webhook signature
Webhooks with a signature · Click Webhook signature
  1. Click API key off
Webhooks with a signature · Click API key off
  1. In Signature header, type X-Hub-Signature-256
  2. In the shared secret, type ••••••••
Webhooks with a signature · In Signature header, type X-Hub-Signature-256; In the shared secret, type ••••••••
  1. Click Save policy
Webhooks with a signature · Click Save policy
Webhooks with a signature · ‘Uses secret supplier-webhooks-hmac (version 1)’, with Open in Secrets.

This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).