Enforce rules on incoming API requests — validating parameters and body structure before requests are forwarded to backend services.
Overview
A Request Validator Policy ensures incoming API requests conform to defined rules before they are forwarded to the backend. It validates request parameters (query, header, path) and optionally the request body against a JSON schema — preventing malformed or invalid requests from reaching backend systems and improving overall API reliability.


Field Reference
Field | Description |
|---|---|
Policy Name * | A unique identifier used across logs, dashboards, and API group configurations. |
Tags | Custom labels to organize and filter the policy by environment, team, or functionality. |
Protocols * | The request protocols this policy accepts (e.g., HTTP, HTTPS). Requests arriving over a protocol you do not select are rejected with 403. |
Allowed Content Types | Accepted Content-Type headers (e.g., application/json). Requests with unlisted content types are rejected. Include application/json to enable body schema validation. |
Parameter Validation Rules | Optional. Rules for validating query, header, or path parameters. Each rule specifies a Parameter Location, Field Name, and Data Type. |
Body Schema | A JSON schema used to validate the request body. Applies only when the request Content-Type is application/json. |
Parameter Validation Rule Fields
Sub-field | Description |
|---|---|
Parameter Location | Where the parameter appears: QUERY (query string), HEADER (HTTP headers), or PATH (URL path parameters). |
Field Name | The name of the parameter to validate. The parameter must be present: a request without it is rejected with 400. |
Data Type | The expected data type (e.g., string, number, boolean). Requests with mismatched types are rejected. |


How It Works
Request received — The gateway receives the incoming API request.
Protocol check — The request is validated against the configured protocols.
Content type validation — The Content-Type header is checked against the allowed types list.
Parameter validation — Each defined parameter rule is applied: location (query, header, path) and data type are checked.
Body validation — If a JSON schema is configured and the content type is application/json, the request body is validated against the schema.
Outcome — If all checks pass, the request is forwarded to the backend. Any failure returns an error response to the caller.
Attaching the policy
Once a Request Validator Policy is created, attach it from the policy settings of an API Group, an API, or a client's access profile. Policies run in this order: the caller's access profile first, then the API, then the API Group.
Notes
Request Validator is an inbound policy: it attaches at the access profile, API, and API Group levels, which always run in that fixed order. Within one level, you can drag it before or after other inbound policies, such as rate limiters, in that level's Policies section.
Add application/json to Allowed Content Types whenever you want to validate the request body against a schema.
Use Path parameter validation for APIs with parameterized URLs (e.g., /users/{id}) to enforce that id is a number before the request reaches the automation.
Requests that fail validation are rejected by the gateway with 403 (protocol) or 400 (content type, parameters or body), so your backing resource never sees them.