Learn

Test a request

The Test a request page lets you describe a request and see what the gateway would do with it — without sending anything to a backend.

Test a request

What you can enter

  • Method: GET, POST, PUT, DELETE, …
  • Host: the host name in the request
  • Path: e.g. /api/users/123
  • Client address: an IP address (use this to test country and IP-based rules)
  • Headers: add request headers
  • Body: paste a request body (to test body inspection)
  • Location: simulate the client's country, region, network or proxy status (to test location-based rules)
  • Token: paste a JWT access token (to test token validation)
  • Browser check pass: simulate a browser that has already passed the check

What you see in the result

  • Route: which route matched (or "No route" if none did)
  • Decision: Allowed, Blocked, Rate limited, Challenged, or Needs sign-in
  • Which rule decided: the rule name and action
  • Attack findings: every finding with its score, the total score, the threshold and whether it would block
  • Token check: whether the token passes and why (if the route requires one)
  • GraphQL: whether the query passes the limits (if the route has GraphQL configured)
  • API contract: whether the request passes the contract (if the route has one)
  • Exclusions: which exclusions were applied

Example: checking that a new rule works

You added a rule to block requests from France (country FR). Before switching it to Enforce:

  1. Open Test a request.
  2. Enter your site's host, a path, and set Location → Country to FR.
  3. The result should show Blocked by your new rule.
  4. Set the country to BE. The result should show Allowed (or handled by your other rules).

Example: debugging a customer complaint

A customer says they cannot POST to /checkout. They see a "403 Forbidden".

  1. Open Test a request.
  2. Enter method POST, the customer's host and /checkout, and the customer's IP address.
  3. If the result shows Blocked by attack detection, the finding names the exact signature. Use this to decide whether to add an exclusion.